bstriner / keras-adversarial

Keras Generative Adversarial Networks
MIT License
867 stars 231 forks source link

example_gan.py: module 'pandas.core.computation' has no attribute 'expressions' #57

Open xjdeng opened 6 years ago

xjdeng commented 6 years ago

So I ran your commands for cloning and installing your code and immediately switched to the examples directory and tried running the example_gan.py program and got this error:

D:\JJ\python\keras_adversarial\examples>python example_gan.py
D:\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Traceback (most recent call last):
  File "example_gan.py", line 13, in <module>
    from keras_adversarial.image_grid_callback import ImageGridCallback
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "D:\Anaconda3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adversarial\__init__.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "D:\Anaconda3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adversarial\adversarial_model.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "D:\Anaconda3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adversarial\adversarial_utils.py", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "D:\Anaconda3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adversarial\backend\__init__.py", line 4, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "D:\Anaconda3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adversarial\backend\tensorflow_backend.py", line 3, in <module>
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\__init__.py", line 22, in <module>
    from tensorflow.contrib import bayesflow
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\bayesflow\__init__.py", line 28, in <module>
    from tensorflow.contrib.bayesflow.python.ops import layers
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\bayesflow\python\ops\layers.py", line 26, in <module>
    from tensorflow.contrib.bayesflow.python.ops.layers_dense_variational_impl import *
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\bayesflow\python\ops\layers_dense_variational_impl.py", line 30, in <module>
    from tensorflow.contrib.distributions.python.ops import deterministic as deterministic_lib
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\distributions\__init__.py", line 37, in <module>
    from tensorflow.contrib.distributions.python.ops.estimator import *
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\distributions\python\ops\estimator.py", line 21, in <module>
    from tensorflow.contrib.learn.python.learn.estimators.head import _compute_weighted_loss
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\__init__.py", line 92, in <module>
    from tensorflow.contrib.learn.python.learn import *
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\__init__.py", line 23, in <module>
    from tensorflow.contrib.learn.python.learn import *
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\__init__.py", line 25, in <module>
    from tensorflow.contrib.learn.python.learn import estimators
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\__init__.py", line 297, in <module>
    from tensorflow.contrib.learn.python.learn.estimators.dnn import DNNClassifier
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\dnn.py", line 30, in <module>
    from tensorflow.contrib.learn.python.learn.estimators import dnn_linear_combined
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\dnn_linear_combined.py", line 31, in <module>
    from tensorflow.contrib.learn.python.learn.estimators import estimator
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 48, in <module>
    from tensorflow.contrib.learn.python.learn.learn_io import data_feeder
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\learn_io\__init__.py", line 21, in <module>
    from tensorflow.contrib.learn.python.learn.learn_io.dask_io import extract_dask_data
  File "D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\learn_io\dask_io.py", line 26, in <module>
    import dask.dataframe as dd
  File "D:\Anaconda3\lib\site-packages\dask\dataframe\__init__.py", line 3, in <module>
    from .core import (DataFrame, Series, Index, _Frame, map_partitions,
  File "D:\Anaconda3\lib\site-packages\dask\dataframe\core.py", line 40, in <module>
    pd.core.computation.expressions.set_use_numexpr(False)
AttributeError: module 'pandas.core.computation' has no attribute 'expressions'

D:\JJ\python\keras_adversarial\examples>python
Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> pd.__version__
'0.22.0'
>>> import tensorflow as tf
D:\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
>>> import keras
Using TensorFlow backend.
>>> tf.__version__
'1.5.0'
>>> keras.__version__
'2.1.5'
>>>