-
Notifications
You must be signed in to change notification settings - Fork 8
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
Platform tests #4
Comments
I am trying to install SpFeas on Linux (Ubuntu 17.04). I have installed GDAL using the command below and it is imported in Python OK. |
Can you provide the import error? |
In file included from /usr/include/python2.7/Python.h:133:0, Failed building wheel for gdal |
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-RlLinO/gdal/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-0R5N38-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-RlLinO/gdal/ I have already installed GDAL, but somehow, when running SpFeas installation, it'll check for GDAL again and simple installation using pip install GDAL does not work. |
In case it helps, I've had good luck installing GDAL through anaconda.
Mike
On Mon, Jul 31, 2017 at 11:34 AM Qin Yu ***@***.***> wrote:
Command "/usr/bin/python -u -c "import setuptools, tokenize;*file*='/tmp/pip-build-RlLinO/gdal/setup.py';f=getattr(tokenize,
'open', open)(*file*);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, *file*, 'exec'))" install --record
/tmp/pip-0R5N38-record/install-record.txt
--single-version-externally-managed --compile --user --prefix=" failed with
error code 1 in /tmp/pip-build-RlLinO/gdal/
I have already installed GDAL, but somehow, when running SpFeas
installation, it'll check for GDAL again and simple installation using pip
install GDAL does not work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAkYgN1jyj1tsnQMNCvF_HgrBwyrO26Aks5sTfQMgaJpZM4N7_g2>
.
--
Michael Gechter, Ph.D.
Assistant Professor of Economics
The Pennsylvania State University
michaelgechter.com
(617) 775-4059
|
Thank you for the advice. I don't know if I want to install anaconda since I just use linuxbrew to manage everything. My GDAL is installed, I can import GDAL and MpGlue in python all right. But just can't get through to have SpFeas installed successfully due to the command in the installation file that checks for GDAL again. |
Qin, I don't see any trace of SpFeas in the errors that you pasted. What do you get when you run the following lines in the terminal?
|
Because that error happened during the installation of SpFeas. Here is what I got using the above four commands: qyu@ubuntu: |
Oh, I see. How are you installing SpFeas? Are you pulling the latest version from GitHub and building? |
Also, which version of GDAL did you install? gdalinfo --version |
qyu@ubuntu:~$ gdalinfo --version Right, I was pulling the latest version from GitHub and building. |
why the second command is not equivalent to the first? |
You have to type gdal.version with 2 underscores between 'version' (Markdown turned them into italics). |
But, the two commands are still not the same. The first one checks which version of the GDAL binaries you installed. The second line checks which version of the GDAL Python bindings you installed. You don't need the latter to run the former. |
qyu@ubuntu:~/Downloads$ python -c 'from osgeo import gdal;print(gdal.version)' |
It seems that I have gdal. What should the next step be in order to install SpFeas? |
Can you paste the entire installation error traceback? |
qyu@ubuntu:~/Downloads$ ./INSTALL_OSX.sh Pip and setuptools have been installed. To update them You can install Python packages with They will install into the site-package directory See: http://docs.brew.sh/Homebrew-and-Python.html Python modules have been installed and Homebrew's site-packages is not Unfortunately =========================================
|
Okay, a few things...
Since you are running on Linux and already successfully installed GDAL, I would just pull and build as shown in the README.
|
You should also be able to: pip install git+https://github.com/jgrss/mpglue.git |
Thanks for testing the OSX installer on Linux, Qin. I will make some updates to it, particularly to update Python packages rather than install them from scratch. |
git clone https://github.com/jgrss/spfeas.git somehow: pip install git+https://github.com/jgrss/spfeas.git did not work, it checked for GDAL |
Okay, good to know. I will see if I can produce the same error on our Linux system. I updated the OSX bash installer, so you can use it as long as you are using Homebrew or Linuxbrew. And it should now support updating libraries and packages rather than assuming that a fresh install is needed. It should be the best way to keep everything updated. |
Hello, I'm building and installing SpFeas (and MpGlue) on a Windows 10 machine for Python 3.5. I'm cloning the git repo and building and installing via I pre-installed cython and numpy as you recommend in the readme. The build and install works fine, however, the dependent packages are not installed at that time and so
Will dependent packages be installed if this is changed to: Thanks |
We had Windows compiling issues with these libraries when using |
SpFeas 0.2.0b
against Windows, OSX, and Linux.The text was updated successfully, but these errors were encountered: