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

Error using pip requirements installation #19

Open
rtrepos opened this issue Dec 11, 2018 · 3 comments
Open

Error using pip requirements installation #19

rtrepos opened this issue Dec 11, 2018 · 3 comments

Comments

@rtrepos
Copy link

rtrepos commented Dec 11, 2018

Hello,
I am trying to install pDSSAT and I have an error that occurs at the very beginning when I try to install requirements : 'pip install -r requirements.txt'
I am using Ubintu 16.04.
Any help is welcome. Below you will find the traceback of the call.
Best regards
Ronan

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-RjdBTr/Rtree/setup.py", line 4, in
import rtree
File "rtree/init.py", line 1, in
from .index import Rtree
File "rtree/index.py", line 6, in
from . import core
File "rtree/core.py", line 110, in
rt.Error_GetLastErrorNum.restype = ctypes.c_int
File "/usr/lib/python2.7/ctypes/init.py", line 375, in getattr
func = self.getitem(name)
File "/usr/lib/python2.7/ctypes/init.py", line 380, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/bin/python: undefined symbol: Error_GetLastErrorNum

@DavidKelly-Praedictus
Copy link

Hello there. If rtree is giving you issues, you can safely remove it from requirements.txt. It's only used in one of the adjacent utilities we use, not in psims itself.

@rtrepos
Copy link
Author

rtrepos commented Dec 11, 2018

Hi David and thank you for the answer, it worked !
Now, I am trying to compile dssat-csm using the Makefile.
But the Intel fortran compiler (ifort) is required and I don't have it. Is it possible to use the gfortan compiler instead ? I have already succeeded to install DSSAT 4.7.2 using gfortran (outside the pSIMS framework)

When I try to use gfortran instead of ifort in the pSIMS ramework, I have to remove the '--fixed' option and I have an error (see below). Any idea ?
Thanks
Ronan

--
gfortran -c ModuleDefs.for
ModuleDefs.for:433:1:

D STDPATH = 'D:\DSSAT46'
1
Error: Non-numeric character in statement label at (1)
ModuleDefs.for:521:9:

   USE ModuleDefs
     1

Fatal Error: Can't open module file ‘moduledefs.mod’ for reading at (1): Aucun fichier ou dossier de ce type
compilation terminated.

@DavidKelly-Praedictus
Copy link

DavidKelly-Praedictus commented Dec 11, 2018

I know some people have successfully used gfortran to compile dssat, but I've never been able to get that to work so I'm not sure what's involved. You could try reaching out to the dssat group and see if they have any advice on how to do that. Another option would be to download and install a trial version of ifort, compile dssat, then uninstall ifort when the trial expires.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants