alexstaj / cutadapt

Automatically exported from code.google.com/p/cutadapt
0 stars 0 forks source link

ImportError: No module named cutadapt.scripts #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to install cutadapt in my home directory on a shared computing 
environment. I'm having trouble compiling cutadapt, though. I've done 

python setup.py build
python setup.py install --prefix=~/local

I've also tried using 

python setup.py build_ext -i
python setup.py install --prefix=~/local

In every case, I get a cutadapt in my ~/local/bin directory that gives the 
following error:

 Traceback (most recent call last):
   File "/home/user/local/bin/cutadapt", line 9, in <module>
     from cutadapt.scripts import cutadapt
 ImportError: No module named cutadapt.scripts

It seems to run ok out of the source directory, but copying it out of the 
cutadapt-1.6/bin directory gives the above error.

Can you help me out? I've got Python 2.6.6 and cython 0.20.1

Original issue reported on code.google.com by cpa...@gmail.com on 20 Oct 2014 at 8:35

GoogleCodeExporter commented 9 years ago
Could you try to run 'python setup.py install --user' instead? If you use 
--prefix=~/local, you also need to adjust your PYTHONPATH, but that is quite 
fragile and may interfere with other Python programs. The --user option uses 
the ~/.local directory (the binary is ~/.local/bin/cutadapt).

Original comment by marcel.m...@tu-dortmund.de on 20 Oct 2014 at 8:57

GoogleCodeExporter commented 9 years ago
Yep. That works. Thank you

Original comment by cpa...@gmail.com on 20 Oct 2014 at 9:32

GoogleCodeExporter commented 9 years ago
Great! Please open a new issue or write an e-mail if you find anything else.

Original comment by marcel.m...@tu-dortmund.de on 21 Oct 2014 at 6:17