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

Can't start it -- multiple import errors #9

Open
kirdin opened this issue Jan 15, 2018 · 2 comments
Open

Can't start it -- multiple import errors #9

kirdin opened this issue Jan 15, 2018 · 2 comments

Comments

@kirdin
Copy link

kirdin commented Jan 15, 2018

Hi,

thank you for your tool.
I'm trying to train model, but I didn't manage to do it -- with both default and non-default configs.
I'm using python 3.6 and the latest commit into master branch.

First I get

    from configurable import Configurable
ModuleNotFoundError: No module named 'configurable'

then

    from index_vocab import IndexVocab, DepVocab, HeadVocab
ModuleNotFoundError: No module named 'index_vocab'

and so on -- nn, sgd_optimizer, radam and so on.

Has anyone dealt with this?

Thank you in advance!

@nelson-liu
Copy link

Python 3 changed the relative import syntax (see here for more details).

I am using python 2.7 instead and it works.

@wwentland
Copy link

wwentland commented Apr 11, 2018

There is an underlying issue in that parser in this package shadows the parser found in the standard library. This makes it quite hard to use this parser as a module from other code. It could be easily addressed by renaming parser to unstableparser.

The fact that the codebase is using from __future__ import absolute_imports throughout, but not in parser/__init__.py hints at this problem and is something that should be addressed.

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