Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't execute gist.py #1

Open
clwen opened this issue Sep 6, 2013 · 2 comments
Open

Can't execute gist.py #1

clwen opened this issue Sep 6, 2013 · 2 comments

Comments

@clwen
Copy link

clwen commented Sep 6, 2013

Hi there,

I've downloaded the code and replace the img_path to my own image. However, it gives me an error that:
NameError: global name 'img' is not defined

Apparently it's because img has been commented out in the test function. And I saw that the first argument in gist function is image_path so I changed print gist(img) function call to print gist(img_path) but it still give me an error at line items *= arr.shape[ax]: IndexError: tuple index out of range. I've attached the stack trace as image.

I'm kind of stucked here. Any thought?

Thank you very much for the great library BTW.

screen shot 2013-09-06 at 11 11 09 am

@memimo
Copy link
Owner

memimo commented Sep 6, 2013

I pushed a fix for the test function. It should be working now.

@clwen
Copy link
Author

clwen commented Sep 6, 2013

Hey, thanks for replying. I'm still getting the same error (tuple index out of range as previous screenshot). What version of numpy you're using? I'm using numpy 1.8.0 on Mac OSX. Or can you upload the sea.jpg so that I can have the same data with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants