Comments (13)
That curses are not supported is just a warning. It appears for every Windows user. The main error is the last line (ImportError).
I'd suggest you to check if TensorFlow and TFlearn are on latest version :)
from pygta5.
Using TensorFlow 1.2 TFlearn 3.2
Tried on both Python 3.5.4 & 3.6.2,
still, it's not working.
import tflearn
Traceback (most recent call last):
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\layers\recurrent.py", line 9, in <module>
from tensorflow.python.ops.rnn import rnn_cell_impl as _rnn_cell, dynamic_rnn as _drnn, static_rnn as _rnn, bidirectional_dynamic_rnn as _brnn
ImportError: cannot import name 'rnn_cell_impl'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
import tflearn
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\__init__.py", line 21, in <module>
from .layers import normalization
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\layers\__init__.py", line 11, in <module>
from .recurrent import lstm, gru, simple_rnn, bidirectional_rnn, \
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\layers\recurrent.py", line 13, in <module>
from tensorflow.contrib.rnn.python.ops.core_rnn import static_rnn as _rnn, static_bidirectional_rnn as _brnn
ImportError: No module named 'tensorflow.contrib.rnn.python.ops.core_rnn'
from pygta5.
Seems like you need to have the bleeding edge version of TFlearn, the stable isn't compatible with all TensorFlow 1.2 features. Try pip install git+https://github.com/tflearn/tflearn.git
from pygta5.
Ok, I solved the version compatibility problem.
Python 3.5.4 TensorFlow 1.2 TFlearn 2.1
but got a new problem again while running trainingdata.py
`Traceback (most recent call last):
File "C:\Users\asus\python code\gta5\train_model.py", line 4, in <module>
from alexnet import alexnet
File "C:\Users\asus\python code\gta5\alexnet.py", line 11, in <module>
import tflearn
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\__init__.py", line 8, in <module>
from . import models
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\models\__init__.py", line 2, in <module>
from .dnn import DNN
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\models\dnn.py", line 5, in <module>
from ..helpers.trainer import Trainer
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\helpers\__init__.py", line 2, in <module>
from .evaluator import Evaluator
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\helpers\evaluator.py", line 9, in <module>
from .trainer import evaluate_flow
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\helpers\trainer.py", line 9, in <module>
from .. import callbacks
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\site-packages\tflearn\callbacks.py", line 3, in <module>
import sys, curses
File "C:\Users\asus\AppData\Local\Programs\Python\Python35\lib\curses\__init__.py", line 13, in <module>
from _curses import *
ImportError: No module named '_curses'`
from pygta5.
try to upgrade tensorflow & tflearn using the following...
pip3 install --upgrade tensorflow --user
pip install --upgrade tflearn
this works for me...
from pygta5.
import tflearn
curses is not supported on this machine (please install/reinstall curses for an optimal experience)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\VaruN\Desktop\tflearn-master\tflearn_init_.py", line 62, in
from . import datasets
File "C:\Users\VaruN\Desktop\tflearn-master\tflearn\datasets_init_.py", line 1, in
from . import cifar10
File "C:\Users\VaruN\Desktop\tflearn-master\tflearn\datasets\cifar10.py", line 16, in
from ..data_utils import to_categorical
File "C:\Users\VaruN\Desktop\tflearn-master\tflearn\data_utils.py", line 7, in
from PIL import Image
File "C:\Users\VaruN\Anaconda3\lib\site-packages\PIL\Image.py", line 60, in
from . import _imaging as core
ImportError: DLL load failed: The specified module could not be found.
from pygta5.
I have upgraded all the llibraries to their stable versions. I am using 3.7 version of Python. Please tell me the solution for the above problem.
from pygta5.
I have upgraded all the llibraries to their stable versions. I am using 3.7 version of Python. Please tell me the solution for the above problem.
Is tensorflow and all other basic libraries like pandas ,numpy working fine for python3.7
from pygta5.
I have upgraded all the llibraries to their stable versions. I am using 3.7 version of Python. Please tell me the solution for the above problem.
Is tensorflow and all other basic libraries like pandas ,numpy working fine for python3.7
Yes, all the other libraries are working fine.
from pygta5.
did you find solution
from pygta5.
If you are using windows , then just install windows-curses using pip.
pip install windows-curses
from pygta5.
If you are using windows , then just install windows-curses using pip.
pip install windows-curses
If you are using windows , then just install windows-curses using pip.
pip install windows-curses
It happened worse than old. there is no any action after wrote code
from pygta5.
use python 3.6.4 64bit , this resolved my issue of import error
from pygta5.
Related Issues (20)
- what is FILE_I_END in trainmodel.py HOT 1
- About multiclass classification
- gta5 models HOT 1
- ModuleNotFoundError: No module named 'tensorflow.contrib' HOT 7
- Expected shape of ndim=4, got ndim=3, test_model.py HOT 3
- is it possible to upload a pretrained model? HOT 1
- saves trained data as events.out.tfevents.1591947296.PREDATOR
- ValueError: Cannot feed value of shape (64, 4) for Tensor 'targets/Y:0', which has shape '(?, 3)' HOT 2
- "Failed to interpret file %s as a pickle" % repr(file)) HOT 3
- ModuleNotFoundError: No module named 'tflearn'
- Can someone share the trained data? Thank you HOT 2
- There is no such a thing as BalanceData.py ? HOT 2
- tensorflow/core/framework/op_kernel.cc:1763] OP_REQUIRES failed at conv_grad_filter_ops.cc:1095 : Not found: No algorithm worked!
- Can someone upload the trained model for Googlenet? HOT 4
- Keystrokes not resigtering in another game. HOT 2
- Input/output error & Duplicate node name in graph'Accuracy'
- Any HOT 1
- Create data set not working
- Audio issues while switching cameras - help needed
- ModuleNotFoundError: No module named 'alexnet' on part 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygta5.