llSourcell / AI_Composer

AI Composer for Machine Learning for Hackers #2
297 stars 133 forks source link

Models.rnn not found #20

Open Memes1 opened 7 years ago

Memes1 commented 7 years ago

i was trying this out and i got this im not good with code what am i doing wrong? Traceback (most recent call last): File "main.py", line 4, in import rnn File "/home/parrot/Documents/AI_Composer-master/rnn.py", line 16, in from model import Model, NottinghamModel File "/home/parrot/Documents/AI_Composer-master/model.py", line 5, in from tensorflow.models.rnn import rnn_cell ImportError: No module named models.rnn

huabawa commented 7 years ago

I have the same issue

FinlayDaG33k commented 7 years ago

Also having this issue.
By the looks of it they moved some stuff around in the new TensorFlow versions. Still looking for a solution, will report back IF I find something...

Memes1 commented 7 years ago

@FinlayDaG33k ok thank you again as I said I don't really know code but I hope you figure this out

FinlayDaG33k commented 7 years ago

Yea, I'm not good at code either. I did find a solution however. If you are on Linux (most likely you are using Ubuntu?) you need to run these commands in your Terminal: sudo pip uninstall tensorflow (just uninstalling your current TF version) sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

After that, try running the script again

Memes1 commented 7 years ago

@FinlayDaG33k ok I will try this in the morning Ty and I'm using kali

FinlayDaG33k commented 7 years ago

Kali and Ubuntu are pretty much the same (both Debian-based stuff blablabla), so it should work just fine.

quintendewilde commented 7 years ago

I've followed your steps and got following errors.

quinten@quinten:~/Documents/AI_Composer$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
Collecting tensorflow==0.8.0 from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
  Using cached https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
Collecting six>=1.10.0 (from tensorflow==0.8.0)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting numpy>=1.8.2 (from tensorflow==0.8.0)
  Using cached numpy-1.13.3-cp27-cp27mu-manylinux1_x86_64.whl
Collecting protobuf==3.0.0b2 (from tensorflow==0.8.0)
  Using cached protobuf-3.0.0b2-py2.py3-none-any.whl
Collecting wheel (from tensorflow==0.8.0)
  Using cached wheel-0.30.0-py2.py3-none-any.whl
Collecting setuptools (from protobuf==3.0.0b2->tensorflow==0.8.0)
  Using cached setuptools-36.6.0-py2.py3-none-any.whl
Installing collected packages: six, numpy, setuptools, protobuf, wheel, tensorflow
Successfully installed numpy-1.13.3 protobuf-3.4.0 setuptools-36.6.0 six-1.11.0 tensorflow-0.8.0 wheel-0.30.0
quinten@quinten:~/Documents/AI_Composer$ 
quinten@quinten:~/Documents/AI_Composer$ python main.py
[libprotobuf FATAL google/protobuf/src/google/protobuf/stubs/common.cc:67] This program requires version 3.4.0 of the Protocol Buffer runtime library, but the installed version is 3.0.0.  Please update your library.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "google/protobuf/descriptor.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  This program requires version 3.4.0 of the Protocol Buffer runtime library, but the installed version is 3.0.0.  Please update your library.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "google/protobuf/descriptor.pb.cc".)
Aborted (core dumped)
quinten@quinten:~/Documents/AI_Composer$ 
quintendewilde commented 7 years ago

uninstalling pip protobuf and uninstalling conda protobuf did the trick!

sreekanth3333 commented 6 years ago

install new python environment with tensorflow 0.8 version instead of other versions