hnolCol / ComplexFinder

Finds complexes from Blue-Native and SEC Fractionation Complexome Profiling Data. Each fraction is usually analysed by Liquid Chromatography coupled to Mass Spectrometry. (LC-MS/MS)
MIT License
7 stars 3 forks source link

Unable to use ComplexFinder #4

Closed svalvaro closed 2 years ago

svalvaro commented 2 years ago

Hi @hnolCol,

I would like to try this software, though I haven't succeeded in using it (Linux machine).

I did this part without problems:

#create virt env
python3 -m venv env
#activate
source env/bin/activate
#install packages from req file
pip install -r requirements.txt

Then after entering in the folder, importing the library returns the error:

from .src.main import ComplexFinder

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: attempted relative import with no known parent package

Am I doing something wrong?

Best,

lukebotticelli commented 2 years ago

How did you fix this? I am new to python and having the same problem

svalvaro commented 2 years ago

Hi @lukebotticelli,

The simplest way to make it work is to open the /src/main.py file and run your code from there.