koeken intall problem
1
0
Entering edit mode
6.4 years ago
Giffredo ▴ 10

I would like to installa koeken for LefSE on macqiime.

$ pip3 install https://github.com/twbattaglia/koeken/zipball/master

Collecting https://github.com/twbattaglia/koeken/zipball/master
  Downloading https://github.com/twbattaglia/koeken/zipball/master (44kB)
    100% |████████████████████████████████| 51kB 220kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/r0/pz5bqg7d7j7fr1dcg8slw2l80000gn/T/pip-tsggsgao-build/setup.py", line 11
        print "Attempting to install R packages...Please wait."
                                                              ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "Attempting to install R packages...Please wait.")?

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/r0/pz5bqg7d7j7fr1dcg8slw2l80000gn/T/pip-tsggsgao-build/
software error • 1.7k views
ADD COMMENT
0
Entering edit mode

I added markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:

101010 Button

ADD REPLY
0
Entering edit mode

If you have MacQIIME installed, you must first initialize it before installing Koeken. If you do not have macqiime installed, you can still run koeken as long as you have the scripts available in your path.

Did you follow these instructions?

ADD REPLY
0
Entering edit mode

i use macqiime and I enter there before installation.

ADD REPLY
0
Entering edit mode
 MacQIIME iMac-GG:~ $ pip2 install https://github.com/twbattaglia/koeken/zipball/master

Collecting https://github.com/twbattaglia/koeken/zipball/master
  Downloading https://github.com/twbattaglia/koeken/zipball/master (44kB)
    100% |████████████████████████████████| 51kB 262kB/s 
Collecting rpy2 (from koeken==0.2.6)
  Using cached rpy2-2.9.1.tar.gz
    Complete output from command python setup.py egg_info:
    rpy2 is no longer supporting Python < 3. Consider using an older rpy2 release when using an older Python release.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-LY74pm/rpy2/`enter code here`

doesn't work with python 2.7 ....

ADD REPLY
0
Entering edit mode

Would be better if you react to my post to keep the logic of this thread easy to follow.

Anyway, looks like the authors of koeken have to translate their code to py3. And so should all projects, actually.

ADD REPLY
1
Entering edit mode
6.4 years ago

The setup.py is made for python2. pip3 uses python3.

The fix might be easy (adapting the setup.py) but it's likely that there are more incompatibilities and you are better off using a Python2.7 installation or virtual environment.

ADD COMMENT

Login before adding your answer.

Traffic: 1614 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6