Closed Palaeocortex closed 2 years ago
Dear Cristian,
we tested the install via setup.py and pip on different machines running Python3 on Mac OSX (Mojave), Linux and Windows and it works for us.
Please check that you actually have a Python3 environment installed and linked as the standard Python interpreter on your system.
Cheers, Jonathan
Am 10.04.2019 um 00:21 schrieb Cristian Tatarau notifications@github.com:
I can't install the newest release 0.6.0.post1 with Python3:
File "./setup.py", line 22 f'pyunicorn.{pkg}._ext.numerics', ^ SyntaxError: invalid syntax The command is sudo python3 ./setup.py install The same error occurs with pip.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pik-copan/pyunicorn/issues/122, or mute the thread https://github.com/notifications/unsubscribe-auth/ADCbe65VBxq5ZBGh2XI4Dvp8vgIhSuDTks5vfRJrgaJpZM4clvHZ.
We have tracked down the bug. What you can do now is download the latest development version at: https://github.com/pik-copan/pyunicorn/archive/master.zip https://github.com/pik-copan/pyunicorn/archive/master.zip
Then install cython and then install pyunicorn via setup.py which will compile the C extensions on your machine.
Am 10.04.2019 um 09:55 schrieb Jonathan F. Donges jonathan.donges@gmail.com:
Dear Cristian,
we tested the install via setup.py and pip on different machines running Python3 on Mac OSX (Mojave), Linux and Windows and it works for us.
Please check that you actually have a Python3 environment installed and linked as the standard Python interpreter on your system.
Cheers, Jonathan
Am 10.04.2019 um 00:21 schrieb Cristian Tatarau <notifications@github.com mailto:notifications@github.com>:
I can't install the newest release 0.6.0.post1 with Python3:
File "./setup.py", line 22 f'pyunicorn.{pkg}._ext.numerics', ^ SyntaxError: invalid syntax The command is sudo python3 ./setup.py install The same error occurs with pip.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pik-copan/pyunicorn/issues/122, or mute the thread https://github.com/notifications/unsubscribe-auth/ADCbe65VBxq5ZBGh2XI4Dvp8vgIhSuDTks5vfRJrgaJpZM4clvHZ.
Dear Jonathan, Thanks a lot for debugging! I am still getting the same error message:
File "setup.py", line 34
f'pyunicorn.{pkg}._ext.numerics',
^
SyntaxError: invalid syntax
Am I doing something wrong? Python3, cython and all dependencies are installed (otherwise it would complain at an earlier line). Against what is this line linking? I am not familiar with installation scripts.
@jdonges This seems to be a different problem.
@Palaeocortex These lines are defining the Cython
extensions.
The only simple explanation for this error message that I can think of is that setup.py
is in fact being executed by Python 2
, and therefore the Python 3
string formatting syntax f"{}"
is seen as invalid. This might be caused by any number of environment configuration issues on your machine. Please falsify by adding the following lines to the beginning of setup.py
:
import sys
print(sys.version)
Dear Jonathan, I tried to install Pyunicorn in python3. but, mpl_toolkits.basemap is in python2. what should I do for installing this package? thanks for any suggestion.
Basemap is an optional dependency. Hence, you don't need it for running most of pyunicorn's functions.
Am 18.04.2019 um 21:22 schrieb nseyyednejad notifications@github.com:
Dear Jonathan, I tried to install Pyunicorn in python3. but, mpl_toolkits.basemap is in python2. what should I do for installing this package? thanks for any suggestion.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Thank you for reporting this issue, and please accept our apologies for our delay in providing a rigorous solution. This set of problems should be fully resolved with the commit linked above, which will be reflected in an upcoming new release including official wheels. I'm tentatively closing this ticket, but please let us know in case you have any trouble installing pyunicorn
from the current master
branch, in which case we will attempt to find a solution as quickly as possible.
Cython is now declared as a build dependency, which means that your Python package manager (e.g., pip
) is responsible for automatically providing the Cython compiler without any user intervention. After the package installation process is completed, Cython is not required as a runtime dependency. The version information is now retrieved via importlib.metadata
from the Python standard library.
I can't install the newest release 0.6.0.post1 with Python3:
The command is sudo python3 ./setup.py install The same error occurs with pip.