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

IndexError #1

Open
JonSim495 opened this issue Oct 18, 2018 · 1 comment
Open

IndexError #1

JonSim495 opened this issue Oct 18, 2018 · 1 comment

Comments

@JonSim495
Copy link

Traceback (most recent call last):
File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 2729, in size
return a.shape[axis]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test.py", line 48, in
height = np.size(Frame,0)
File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 2731, in size
return asarray(a).shape[axis]
IndexError: tuple index out of range

I receive this code when running in the virtual environment, can inform what is the problem?

@phfbertoleti
Copy link
Owner

Hi JonSim495.

It's odd. When I developed this project, I used Python 2.7 (and without virtual environment). I don't think the virtual environment can cause this, but different Python versions can. Please, try running this using Python 2.7 instead of 3.5.

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