GithubHelp home page GithubHelp logo

Comments (13)

m4r1vs avatar m4r1vs commented on July 24, 2024

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.

tshrwbl avatar tshrwbl commented on July 24, 2024

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.

m4r1vs avatar m4r1vs commented on July 24, 2024

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.

tshrwbl avatar tshrwbl commented on July 24, 2024

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.

rahulvansh66 avatar rahulvansh66 commented on July 24, 2024

try to upgrade tensorflow & tflearn using the following...
pip3 install --upgrade tensorflow --user
pip install --upgrade tflearn
this works for me...

from pygta5.

varuntotakura avatar varuntotakura commented on July 24, 2024

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.

varuntotakura avatar varuntotakura commented on July 24, 2024

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.

b121 avatar b121 commented on July 24, 2024

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.

varuntotakura avatar varuntotakura commented on July 24, 2024

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.

ashReal avatar ashReal commented on July 24, 2024

did you find solution

from pygta5.

utshomax-zz avatar utshomax-zz commented on July 24, 2024

If you are using windows , then just install windows-curses using pip.
pip install windows-curses

from pygta5.

cagridz avatar cagridz commented on July 24, 2024

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.

rahul-s20 avatar rahul-s20 commented on July 24, 2024

use python 3.6.4 64bit , this resolved my issue of import error

from pygta5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.