Please login or register. October 21, 2017, 03:59:28 PM

Author Topic: Cython cannot be installed with python 3.5  (Read 1964 times)

0 Members and 1 Guest are viewing this topic.

sunaus

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Cython cannot be installed with python 3.5
« on: November 15, 2016, 09:59:35 PM »
I installed aixtools.python.rte 3.5.1.1 on AIX 7.2, and I want to install Cython as well, but got the following error,

    xlc -DNDEBUG -O -I/opt/include -O2 -I/opt/buildaix/includes -I/opt/include/python3.5m -c /tmp/pip-build-bgsjy04v/Cython/Cython/Plex/Scanners.c -o build/temp.aix-7.2-3.5/tmp/pip-build-bgsjy04v/Cython/Cython/Plex/Scanners.o
    "/opt/include/python3.5m/pyport.h", line 811.2: 1506-205 (S) #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
    error: command 'xlc' failed with exit status 1

Anyone knows the solution? Thanks,

sunaus

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #1 on: November 16, 2016, 12:29:26 AM »
I tried to install aixtools.python.cython.0.24.1.0.I, but it is for Python 2.7 not Python 3.5

Do you have cython for python 3.5?

Thanks,

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #2 on: November 16, 2016, 06:16:09 AM »
Another reason to repack python-3.* as python3-3.* (just as the command becomes python3, pip3, etc..

I won't have that all in an hour, but will try to have it ready in 24.

Michael

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #3 on: November 16, 2016, 06:18:29 AM »
p.s. the solution here:

aixtools.python is packaged as a 64-bit application. You need to add the environment variable

OBJECT_MODE=64

and it will, or should, build fine.

sunaus

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #4 on: November 16, 2016, 08:07:28 AM »
Thanks for your response.

Still does not work with "OBJECT_MODE=64". Will wait for your package of python3-3.* and python3.cython

Cheers

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #5 on: November 16, 2016, 08:22:15 PM »
I see that there is a bug in "make install" for python3 - it does not include ld_so_aix in the "install" result - unlike python2 (which worked fine, even with the newer code - Cython-0.25.1)

I have downloaded the latest python3-3.5.2 to see if that works better. Will be posting/updating a bug-report/issue if this is still not working.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #6 on: November 16, 2016, 09:14:40 PM »
Still not working - from source - properly for python3-3.5.X. Please follow http://bugs.python.org/issue18235 for the latest details (e.g., perhaps register and drop a note that you are impacted by this issue).

I shall look for a solution.

sunaus

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #7 on: November 16, 2016, 10:05:54 PM »
Thanks so much for your quick response. Appreciate it.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #8 on: November 16, 2016, 10:13:08 PM »
Just posted a "patched" version 3.5.2, and self-build now works: see: http://www.aixtools.net/index.php/python3


+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        aixtools.python3.rte 3.5.2.0

Restoring files, please wait.
4250 files restored.
Finished processing all filesets.  (Total time:  1 mins 1 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
aixtools.python3.rte        3.5.2.0         USR         APPLY       SUCCESS

root@x064:[/data/prj/python3/python3-3.5.2]export OBJECT_MODE=64

root@x064:[/data/prj/python3/python3-3.5.2]pip3 install cython
Collecting cython
  Using cached Cython-0.25.1.tar.gz
Installing collected packages: cython
  Running setup.py install for cython ... done
Successfully installed cython-0.25.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


I will be adding an aixtools.python3.cython - asap - but you should be able to build it yourself now.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #9 on: November 16, 2016, 10:36:50 PM »
And the pre-built python3.cython is also available via http://www.aixtools.net/index.php/python3

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #10 on: November 17, 2016, 12:44:29 PM »
And - have you had a moment to verify it is working now?

sunaus

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #11 on: November 17, 2016, 09:15:37 PM »
HI Michael,

Sorry for late feedbak. I was busy for recovery of my nim server. I use aix base media to update TL of NIM itself, but I wrongly choosed "Install All" other than "Update All" with "smitty install", and then have to recover nim from mksysb, and then reconfigure everything.

As for cython, it is working! thanks so much.

Little bit trick for cython, both package of python.cython and python3.cython include /opt/bin/cython, if installing both python.cython and python3.cython, the latest installed package will overwrite the existing one. Just let you know this, although it is not problem to me.

Appreciate you quick response.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Cython cannot be installed with python 3.5
« Reply #12 on: November 18, 2016, 10:45:01 AM »
I'll look into that. Sounds like a "issue" - that cython should follow the convention that both python and pip are following - to call it cython3.

Update: I opened an issue on github: add your 'comments' to assist with relative importance. See: https://github.com/cython/cython/issues/1528

p.s. - you could look at this page of my "howto to install nim" article. See http://www.rootvg.net/content/view/431/309/1/7/

I used to have this (the savevg data) on a USB stick for a quick install with customers.
« Last Edit: November 18, 2016, 10:59:33 AM by Michael »