-
Notifications
You must be signed in to change notification settings - Fork 20
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
No module named 'db' #6
Comments
Hello!
What version of python are you using? It sounds like maybe you’re using
Python < 3 and the system is not seeing the /db/ folder as a module.
On October 8, 2018 at 2:58:42 AM, raspberian1234 ([email protected]) wrote:
(yourenvname) C:\Users\User>english2cypher-master\e2c\predict.py
Traceback (most recent call last):
File "C:\Users\User\english2cypher-master\e2c\predict.py", line 23, in
from db import *
ModuleNotFoundError: No module named 'db'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOUFIsyK6xtsJ85ssfEKVShag-NQGt59ks5uiyHRgaJpZM4XMm2U>
.
|
i am using python 3.6.4 |
Weird - what command line are you executing the app with?
python -m e2c.predict I /believe/ is the right incarnation
On October 8, 2018 at 8:44:05 AM, raspberian1234 ([email protected]) wrote:
i am using python 3.6.4
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOUFIk84iuArFJ4rXNxMYN6xp750iLjSks5ui3LFgaJpZM4XMm2U>
.
|
i am using anaconda terminal and doing in virtual environment C:\Users\User>english2cypher-master\english2cypher-master\e2c\predict.py |
Ah - the problem is how you invoke the script. Don’t directly run
predict.py.
Check README.md for all the details, but basically you need to invoke
`python -m e2c.predict` to get the module environment correct
On October 8, 2018 at 9:14:08 AM, raspberian1234 ([email protected]) wrote:
i am using anaconda and doing in virtual environment
i downloaded file and copied in home directory
C:\Users\User>english2cypher-master\english2cypher-master\e2c\predict.py
Traceback (most recent call last):
File "english2cypher-master\english2cypher-master\e2c\predict.py", line 23,
in
from db import *
ModuleNotFoundError: No module named 'db'
got this problem
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOUFIgfj1sWPnJBpYM_rQqeVcqE5Tr03ks5ui3nQgaJpZM4XMm2U>
.
|
hi (english2cypher) C:\Users\User>git clone https://github.com/Octavian-ai/english2cypher.git (english2cypher) C:\Users\User>python -m e2c.predict (english2cypher) C:\Users\User> |
Try cd into “english2cypher” directory, then run the python command
On October 9, 2018 at 12:19:48 AM, raspberian1234 ([email protected]) wrote:
hi
(english2cypher) C:\Users\User>git clone
https://github.com/Octavian-ai/english2cypher.git
Cloning into 'english2cypher'...
remote: Enumerating objects: 437, done.
remote: Total 437 (delta 0), reused 0 (delta 0), pack-reused 437
Receiving objects: 100% (437/437), 10.70 MiB | 591.00 KiB/s, done.
Resolving deltas: 100% (300/300), done.
(english2cypher) C:\Users\User>python -m e2c.predict
C:\Users\User\Anaconda3\envs\english2cypher\python.exe: Error while finding
module specification for 'e2c.predict' (ModuleNotFoundError: No module
named 'e2c')
(english2cypher) C:\Users\User>
this is the problem i am facing
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOUFIkQyOIzr5vBl-AncmZzSsnJeLcJ_ks5ujE4DgaJpZM4XMm2U>
.
|
C:\Users\User>cd C:\Users\User\english2cypher C:\Users\User\english2cypher>python -m e2c.predict i am not sure python -m e2c.predict is not python command |
Weird, I’m not familiar with running this on Windows, so sorry to not be
more helpful.
Here’s my osx (e.g. Linux) workflow:
I’m running Python 3.6.2
On October 9, 2018 at 6:25:49 AM, raspberian1234 ([email protected]) wrote:
C:\Users\User>cd C:\Users\User\english2cypher
C:\Users\User\english2cypher>python -m e2c.predict
C:\Users\User\Anaconda3\python.exe: No module named e2c.predict
i am not sure python -m e2c.predict is not python command
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOUFIgo0QlsnwTORftkkiEwIQWhu8UqAks5ujKPYgaJpZM4XMm2U>
.
|
|
(yourenvname) C:\Users\User>english2cypher-master\e2c\predict.py
Traceback (most recent call last):
File "C:\Users\User\english2cypher-master\e2c\predict.py", line 23, in
from db import *
ModuleNotFoundError: No module named 'db'
The text was updated successfully, but these errors were encountered: