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

Train1.py : AttributeError: 'numpy.ufunc' object has no attribute '__module__' #102

Closed
sallyjoy opened this issue Apr 8, 2019 · 1 comment

Comments

@sallyjoy
Copy link

sallyjoy commented Apr 8, 2019

Help! How to solve this?

Traceback (most recent call last):
File "train1.py", line 10, in
from tensorpack.callbacks.saver import ModelSaver
File "/usr/local/lib/python2.7/dist-packages/tensorpack/init.py", line 17, in
from tensorpack.models import *
File "/usr/local/lib/python2.7/dist-packages/tensorpack/models/init.py", line 48, in
_global_import(module_name)
File "/usr/local/lib/python2.7/dist-packages/tensorpack/models/init.py", line 29, in _global_import
p = import(name, globals(), locals(), level=1)
File "/usr/local/lib/python2.7/dist-packages/tensorpack/models/regularize.py", line 25, in
l2_regularizer = tf.contrib.layers.l2_regularizer
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/lazy_loader.py", line 53, in getattr
module = self._load()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/lazy_loader.py", line 42, in _load
module = importlib.import_module(self.name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/init.py", line 31, in
from tensorflow.contrib import factorization
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/factorization/init.py", line 24, in
from tensorflow.contrib.factorization.python.ops.gmm import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/factorization/python/ops/gmm.py", line 27, in
from tensorflow.contrib.learn.python.learn.estimators import estimator
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/init.py", line 88, in
from tensorflow.contrib.learn.python.learn import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/init.py", line 23, in
from tensorflow.contrib.learn.python.learn import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/init.py", line 25, in
from tensorflow.contrib.learn.python.learn import estimators
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/estimators/init.py", line 297, in
from tensorflow.contrib.learn.python.learn.estimators.dnn import DNNClassifier
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/estimators/dnn.py", line 30, in
from tensorflow.contrib.learn.python.learn.estimators import dnn_linear_combined
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/estimators/dnn_linear_combined.py", line 31, in
from tensorflow.contrib.learn.python.learn.estimators import estimator
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 49, in
from tensorflow.contrib.learn.python.learn.learn_io import data_feeder
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/learn_io/init.py", line 21, in
from tensorflow.contrib.learn.python.learn.learn_io.dask_io import extract_dask_data
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/learn_io/dask_io.py", line 26, in
import dask.dataframe as dd
File "/usr/local/lib/python2.7/dist-packages/dask/dataframe/init.py", line 4, in
from .core import (DataFrame, Series, Index, _Frame, map_partitions,
File "/usr/local/lib/python2.7/dist-packages/dask/dataframe/core.py", line 19, in
from .. import array as da
File "/usr/local/lib/python2.7/dist-packages/dask/array/init.py", line 9, in
from .routines import (take, choose, argwhere, where, coarsen, insert,
File "/usr/local/lib/python2.7/dist-packages/dask/array/routines.py", line 256, in
@wraps(np.matmul)
File "/usr/lib/python2.7/functools.py", line 33, in update_wrapper
setattr(wrapper, attr, getattr(wrapped, attr))
AttributeError: 'numpy.ufunc' object has no attribute 'module'

@sallyjoy sallyjoy changed the title train1 error : AttributeError: 'numpy.ufunc' object has no attribute '__module__' Train1.py : AttributeError: 'numpy.ufunc' object has no attribute '__module__' Apr 8, 2019
@sallyjoy sallyjoy closed this as completed Apr 9, 2019
@oguzzkck
Copy link

How to solve 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

2 participants