Skip to content
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

ModuleNotFoundError #12

Open
kmein opened this issue Oct 13, 2018 · 3 comments
Open

ModuleNotFoundError #12

kmein opened this issue Oct 13, 2018 · 3 comments

Comments

@kmein
Copy link

kmein commented Oct 13, 2018

When I run gdom I get this output:

Traceback (most recent call last):
  File "/home/kfm/.local/bin/gdom", line 7, in <module>
    from gdom.cmd import main
  File "/home/kfm/.local/lib/python3.6/site-packages/gdom/cmd.py", line 9, in <module>
    from schema import schema
ModuleNotFoundError: No module named 'schema'

It seems to be a problem with gdom itself, somehow not finding its own schema.py. Any idea what's going wrong there and how to fix this?

@babakness
Copy link

same

@babakness
Copy link

I'm not really a python guy but a simple hack is to change the cmd.py file. Instead of

from schema import schema

do

from gdom.schema import schema

I believe some kind of environment issue caused by how the /usr/bin/local/gdom file is written.

@wis
Copy link

wis commented May 16, 2019

can also confirm, when installing with pip and --user and with pipenv. and @babakness's solution fixed the issue when I modified ~/.local/share/virtualenvs/testgdom/lib/python3.7/sites-packages/gdom/cmd.py (testgdom is the name of the project/pipenv directory)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants