Skip to content

Instantly share code, notes, and snippets.

@xiaofanglegoc
Created June 24, 2016 12:55
Show Gist options
  • Save xiaofanglegoc/ce026717e76201a09b5179d4e9bb8ca0 to your computer and use it in GitHub Desktop.
Save xiaofanglegoc/ce026717e76201a09b5179d4e9bb8ca0 to your computer and use it in GitHub Desktop.
# install
## issu
1, TypeError: <method 'max' of 'numpy.ndarray' objects> is not a Python function
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 23, in <module>
from tensorflow.python import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 62, in <module>
import tensorflow.contrib as contrib
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/__init__.py", line 26, in <module>
from tensorflow.contrib import learn
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/__init__.py", line 20, in <module>
from tensorflow.contrib.learn.python.learn import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/__init__.py", line 20, in <module>
from tensorflow.contrib.learn.python.learn import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/__init__.py", line 22, in <module>
from tensorflow.contrib.learn.python.learn.io import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/io/__init__.py", line 20, in <module>
from tensorflow.contrib.learn.python.learn.io.dask_io import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/io/dask_io.py", line 23, in <module>
import dask.dataframe as dd
File "/usr/local/lib/python2.7/dist-packages/dask/dataframe/__init__.py", line 1, in <module>
from .core import (DataFrame, Series, Index, _Frame, map_partitions,
File "/usr/local/lib/python2.7/dist-packages/dask/dataframe/core.py", line 1233, in <module>
class Index(Series):
File "/usr/local/lib/python2.7/dist-packages/dask/dataframe/core.py", line 1250, in Index
@derived_from(pd.Index)
File "/usr/local/lib/python2.7/dist-packages/dask/utils.py", line 526, in wrapper
original_args = getargspec(original_method).args
File "/usr/local/lib/python2.7/dist-packages/dask/compatibility.py", line 181, in getargspec
return _getargspec(func)
File "/usr/local/lib/python2.7/dist-packages/dask/compatibility.py", line 55, in _getargspec
return inspect.getargspec(func)
File "/usr/lib/python2.7/inspect.py", line 816, in getargspec
raise TypeError('{!r} is not a Python function'.format(func))
TypeError: <method 'max' of 'numpy.ndarray' objects> is not a Python function
---
1,SOLUTION:
sodu uninstall dask
Per @jreback, if you are using dask you should have a relatively recent version of pandas, say >= 0.17.0 (even better is 0.18.0); certain older versions will work, but may cause unexpected things.
@meanmee @liuyifly06 @byungjo @ruilog @jessebett
Uninstall dask if you don't intend to use it. If you need to use it, use newer versions of pandas and dask.
2, ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory
2.SOLUTION: export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
sudo pip install --upgrade $TF_BINARY_URL
printenv LD_LIBRARY_PATH
/usr/local/cuda-7.5/lib64:/usr/local/cuda-7.5/lib64::/usr/local/cuda/lib64:/usr/local/cuda/lib64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment