bbalasub1 / glmnet_python

GNU General Public License v3.0
200 stars 95 forks source link

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

Open michaelcoconnor opened 5 years ago

michaelcoconnor commented 5 years ago

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.