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

Error "'module' object has no attribute 'byte'" on mnist example #181

Open
user400479 opened this issue Nov 14, 2018 · 0 comments
Open

Error "'module' object has no attribute 'byte'" on mnist example #181

user400479 opened this issue Nov 14, 2018 · 0 comments

Comments

@user400479
Copy link

I just tried the mnist example (using the command ./convert.py examples/mnist/lenet.prototxt --code-output-path=mynet.py) and I'm getting the error below:

Traceback (most recent call last):
File "./convert.py", line 5, in
import numpy as np
File "/usr/lib/python2.7/dist-packages/numpy/init.py", line 153, in
from . import add_newdocs
File "/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "/usr/lib/python2.7/dist-packages/numpy/lib/init.py", line 22, in
from .npyio import *
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 4, in
from . import format
File "/usr/lib/python2.7/dist-packages/numpy/lib/format.py", line 141, in
import io
File "/home/legup/caffe/python/caffe/io.py", line 2, in
import skimage.io
File "/usr/local/lib/python2.7/dist-packages/skimage/init.py", line 167, in
from .util.dtype import (img_as_float32,
File "/usr/local/lib/python2.7/dist-packages/skimage/util/init.py", line 1, in
from .dtype import (img_as_float32, img_as_float64, img_as_float,
File "/usr/local/lib/python2.7/dist-packages/skimage/util/dtype.py", line 19, in
_integer_types = (np.byte, np.ubyte, # 8 bits
AttributeError: 'module' object has no attribute 'byte'

The installed version of numpy on my system is 1:1.8.2-0ubuntu0.1 (i.e. the python-numpy package in Ubuntu 14.04)

How can I fix this?

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

1 participant