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

ImportError: cannot import name 'slice_X' #4

Open
alphaaurigae opened this issue Dec 21, 2018 · 1 comment
Open

ImportError: cannot import name 'slice_X' #4

alphaaurigae opened this issue Dec 21, 2018 · 1 comment

Comments

@alphaaurigae
Copy link

alphaaurigae commented Dec 21, 2018

Ubuntu 18.04 | keras 2.2.4


~/bitcoin-rnn [master|✚ 1] 
03:32 $ python3 gru-addr2priv.py 
Using TensorFlow backend.
Traceback (most recent call last):
  File "gru-addr2priv.py", line 23, in <module>
    from keras.engine.training import slice_X
ImportError: cannot import name 'slice_X'

when i change the source of according to this https://stackoverflow.com/questions/42852495/where-did-keras-function-slice-x-go

https://pastebin.com/cLA5PAev

i end up with

~/bitcoin-rnn [master|✔] 
03:39 $ python3 gru-addr2priv.py 
Using TensorFlow backend.
Reading privaddr-pair.txt Lines 71

Generating data...
Traceback (most recent call last):
  File "gru-addr2priv.py", line 126, in <module>
    q = contents[i] # remove char > MAXLEN
IndexError: list index out of range

any suggestion how to fix this?

@aiyulu1
Copy link

aiyulu1 commented Apr 26, 2022

you need python2.7 and keras==1.2.2 and tensorflow / tensorflow-gpu 1.x version
you can here find https://github.com/fo40225/tensorflow-windows-wheel

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