Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem on installation #49

Closed
marcelm opened this issue Mar 13, 2015 · 5 comments
Closed

problem on installation #49

marcelm opened this issue Mar 13, 2015 · 5 comments

Comments

@marcelm
Copy link
Owner

marcelm commented Mar 13, 2015

From jbreic...@gmail.com on March 19, 2012 19:49:17

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: http://code.google.com/p/cutadapt/issues/detail?id=39

@marcelm
Copy link
Owner Author

marcelm commented Mar 13, 2015

From marcel.m...@tu-dortmund.de on March 27, 2012 05:35:58

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?

@marcelm
Copy link
Owner Author

marcelm commented Mar 13, 2015

From marcel.m...@tu-dortmund.de on April 02, 2012 23:28:41

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

@marcelm
Copy link
Owner Author

marcelm commented Mar 13, 2015

From marcel.m...@tu-dortmund.de on April 17, 2012 00:53:21

Status: Invalid

@marcelm
Copy link
Owner Author

marcelm commented Mar 13, 2015

From syo...@gmail.com on April 17, 2012 08:08:59

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...

@marcelm
Copy link
Owner Author

marcelm commented Mar 13, 2015

From marcel.m...@tu-dortmund.de on April 18, 2012 09:40:31

Thanks, I have updated the FAQ and the README to help others who have the same problem.

@marcelm marcelm closed this as completed Mar 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant