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: No module named 'sng_parser' #10

Closed
skasai5296 opened this issue Aug 22, 2019 · 1 comment · Fixed by #11
Closed

ModuleNotFoundError: No module named 'sng_parser' #10

skasai5296 opened this issue Aug 22, 2019 · 1 comment · Fixed by #11

Comments

@skasai5296
Copy link
Contributor

skasai5296 commented Aug 22, 2019

Hi @vacancy,

I tried to use this parser to duplicate results from your CVPR 2019 paper,
but couldn't import from out of this repo's directory.
Is there a way I can?

error details are as follows:

from SceneGraphParser import sng_parser
graph = sng_parser.parse("some random sentence")

File "ScenegraphParser/sng_parser/backends/spacy_parser.py", line 12, in
import sng_parser.database as database
ModuleNotFoundError: No module named 'sng_parser'

it works perfectly good inside the repo.

@skasai5296
Copy link
Contributor Author

I made a workaround by editing sng_parser/backends/spacy_parser.py
before:

import sng_parser.database as database
from sng_parser.parser import Parser

after:

from .. import database
from ..parser import Parser

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

Successfully merging a pull request may close this issue.

1 participant