You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: