neupy icon indicating copy to clipboard operation
neupy copied to clipboard

ImportError: cannot import name 'reproducible' from 'neupy.utils'

Open alu0101124896 opened this issue 4 years ago • 1 comments

Hello, I'm having the following problem:

>>> from neupy.utils import reproducible
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'reproducible' from 'neupy.utils' (/home/sergio/.local/lib/python3.9/site-packages/neupy/utils.py)

I'm using Python 3.9.3 and I have installed the NeuPy package using pip install neupy.

In the case that this helps, I also have seen that in the master branch of this repository you have the 'reproducible' method inside neupy/utils/misc.py but the package that I have installed only has the neupy/utils.py file that doesn't have the mentioned method inside it.

Edit: The default NeuPy version when using pip seems to be the 0.6.5 instead of the 0.8.2 which is the latest.

Edit 2: When trying to install the 0.8.2 version I get the following error:

ERROR: Could not find a version that satisfies the requirement tensorflow<1.14.0,>=1.10.1 (from neupy)
ERROR: No matching distribution found for tensorflow<1.14.0,>=1.10.1

alu0101124896 avatar May 06 '21 16:05 alu0101124896

Thank you for reporting the issue. It happens because of the bug that I didn't have time to fix yet. As a temporary workaround can you try the same solution as in this ticket: https://github.com/itdxer/neupy/issues/273

itdxer avatar May 06 '21 18:05 itdxer