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

Conflict with competing GitHub Python glmnet implementation... #41

Open
michaelcoconnor opened this issue May 21, 2019 · 0 comments
Open

Comments

@michaelcoconnor
Copy link

So this project is glmnet_python which pip-installs into a directory by the same name. But then there's also the python-glmnet project which pip-installs into a glmnet directory.

Installing the latter causes my glmnet_python runs to crash with an error about not being able to import with from glmnet import glmnet which is in cvglmnet.py. In other words, glmnet is now an installed package and the from glmnet import glmnet looks into it for glmnet but it isn't there.

My solution was to go into cvglmnet.py and put a dot in front of glmnet so that the import now reads from .glmnet import glmnet. That works.

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

1 participant