ArtPoon / gotoh2

Lightweight and customizable Python/C extension for pairwise alignment of genetic sequences using the Gotoh algorithm
GNU Affero General Public License v3.0
5 stars 2 forks source link

Can't load module from package root #4

Closed ArtPoon closed 6 years ago

ArtPoon commented 7 years ago

If I launch the Python interpreter from ~/git/gotoh2, I get the following result:

>>> from gotoh2 import aligner
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "gotoh2/aligner.py", line 1, in <module>
    import Cgotoh2
ImportError: No module named Cgotoh2

However, the test script works fine, and if I launch the interpreter elsewhere things seem to be fine. I must be doing something dumb with the setup script...

ArtPoon commented 7 years ago

I think this is caused by having a subdirectory named gotoh2. Need to look into how modules are supposed to be structured...

ArtPoon commented 6 years ago

Still running into problems loading module, now on Ubuntu 16.04 from anywhere in file system parent directory ~/git with different error message.