tensorlayer / seq2seq-chatbot

Chatbot in 200 lines of code using TensorLayer
https://github.com/tensorlayer/tensorlayer
836 stars 316 forks source link

Can't import data #7

Closed georgexli closed 6 years ago

georgexli commented 6 years ago

ModuleNotFoundError Traceback (most recent call last)

in () 8 9 ###============= prepare data ---> 10 from data.twitter import data 11 metadata, idx_q, idx_a = data.load_data(PATH='data/twitter/') # Twitter 12 # from data.cornell_corpus import data ModuleNotFoundError: No module named 'data.twitter'
zsdonghao commented 6 years ago

https://github.com/tensorlayer/seq2seq-chatbot/tree/master/data

JDSlimz commented 6 years ago

Simply commenting a link to the directory fixes nothing. Your users (including myself) are getting an error generated by your code.

Traceback (most recent call last):
  File "main.py", line 20, in <module>
    from data.twitter import data
ImportError: No module named twitter

So is this a module that needs to be installed? Are you calling it improperly? How do your users fix this?

It appears that you need to make sure you are using python3. By default, Ubuntu runs python v2 when you just call python. To get this app to run correctly, try python3.