Package installation from github / import fails
Closed this issue · 1 comments
lgeistlinger commented
I was able to successfully install the package from github via:
pip3 install git+https://github.com/ccb-hms/BioPlexPy.git#egg=BioPlexPy
However, importing the package throws a Module not found
error:
ludwig@Ludwigs-MacBook-Pro ~ % ipython
Python 3.9.5 (default, May 4 2021, 03:36:27)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import BioPlexPy
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Input In [1], in <module>
----> 1 import BioPlexPy
File /usr/local/lib/python3.9/site-packages/BioPlexPy/__init__.py:1, in <module>
----> 1 from helper_funcs import getBioPlex
2 from helper_funcs import getGSE122425
3 from helper_funcs import bioplex2graph
ModuleNotFoundError: No module named 'helper_funcs'
I believe this can be fixed by specifying (note the dot in front of helper_funcs
):
from .helper_funcs import getBioPlex
in your init.py file.
vargasr39 commented
fixed, added a "." before each func name in the init file