alexstaj / cutadapt

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

problem on installation #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Cannot run cutadapt1.0..

I used the installation instructions with both python2.6.5 and python3.1.2.  I 
am getting the following error when running cutadapt-1.0/cutadapt:

b2a:cutadapt-1.0] ./cutadapt
  File "./cutadapt", line 99
    print("length", "count", sep="\t")
                                ^
SyntaxError: invalid syntax

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by jbreic...@gmail.com on 19 Mar 2012 at 6:49

GoogleCodeExporter commented 9 years ago
If you run cutadapt by giving its absolute or relative path (./cutadapt in your 
case) on the command line, then installation is not required (the installed 
version is not even used in this case). 

The SyntaxError is a bit strange. I think it occurs when a Python 3 program is 
run under Python 2. Please try to specify the Python interpreter explicitly by 
running cutadapt like this:

python2.6 cutadapt

What does the command

python -V 

say?

Original comment by marcel.m...@tu-dortmund.de on 27 Mar 2012 at 12:35

GoogleCodeExporter commented 9 years ago
Hi, any news on this? I'm willing to fix this, but since I've never encountered 
the problem, I'd need your help.

Original comment by marcel.m...@tu-dortmund.de on 3 Apr 2012 at 6:28

GoogleCodeExporter commented 9 years ago

Original comment by marcel.m...@tu-dortmund.de on 17 Apr 2012 at 7:53

GoogleCodeExporter commented 9 years ago
I was getting the exact same error until I realized it was a python version 
issue since our default python installation is v2.4.3.  I followed your 
instructions, using v2.6.4:

/apps/python-2.6.4/bin/python2.6 setup.py build_ext -i

Then I called  ./cutadapt and got the error above.  Of course the correct 
command is:

/apps/python-2.6.4/bin/python2.6 ./cutadapt --help

Seems to work fine...

Original comment by syo...@gmail.com on 17 Apr 2012 at 3:08

GoogleCodeExporter commented 9 years ago
Thanks, I have updated the FAQ and the README to help others who have the same 
problem.

Original comment by marcel.m...@tu-dortmund.de on 18 Apr 2012 at 4:40