-
Notifications
You must be signed in to change notification settings - Fork 392
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
Import fails due to "is_scalar" error (fresh installation) #439
Comments
It looks like you have an older version of basemap. This has already been fixed and is in the released version v1.2.0. Some notes: basemap is considered deprecated in favor of the cartopy package. Please learn cartopy instead. Second, the preferred method of installing basemap (or cartopy) is through conda-forge due to its complex build process and dependencies. |
I downloaded the latest version of the website today so if that's the case the page needs ot be updated. I did ultimately get it going using conda. I will looking into Cartopy as well so thanks for that! |
Oh! you are right! The download page still points to sourceforge. That is
years out of date and I never noticed. I will fix that right away!
…On Wed, Nov 7, 2018 at 7:35 PM paullb514 ***@***.***> wrote:
I downloaded the latest version of the website today so if that's the case
the page needs ot be updated.
I did ultimately get it going using conda. I will looking into Cartopy as
well so thanks for that!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#439 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-Cr8tKJZpo9RZDp89M0H-9UowsqPks5us3xdgaJpZM4YRufU>
.
|
Had the same issue, resolved by upgrading basemap: |
I just ran into this as well, even though I was using the latest version on PyPI (which is 1.0.7), see https://pypi.org/project/basemap/#history . Any reason why the latest |
I'm unable to resolve this issue, even though I'm using the version v1.2.0. I'm using Ubuntu 18.04, python 3.6. |
Wher do you find the platform.h? |
I managed to solve this "is_scalar" problem by doing what suggested by @samfway, but when running Any clue on how to solve this? |
@goyal-vi The error is due to your environment being incompatible (too new) with the old GEOS version. A workaround is to issue the following command before running configure, export CXX="g++ -std=c++98" @davide-p The error message simply states that the GEOS library cannot be found. Assuming that you have already compiled it as per the instructions, i.e. with GEOS_DIR=/usr/local, it should be sufficient to modify your LD_LIBRARY_PATH as follows, export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib |
The source link is still pointing to 1.1.0 on the https://matplotlib.org/basemap/users/installing.html page |
Installing matplotlib in 2.2.0 will work |
Maybe I must have missed something? However, I've downloaded Anaconda and setup a virtual python environment specifically to install matplotlib (I tried both versions; 3.1.1 and 2.2.0) as well as basemap v1.2.0 and I am still getting the "cannot import is_scalar" error. |
Referencing the link comments above (i.e. WeatherGod and dbpodrasky), the download link [https://matplotlib.org/basemap/users/download.html] is still pointing to v1.1.0. That link for basemap is still causing installation issues. samfway's solution above works if you end up on this page. |
This worked for me:
|
Python verison 3.6.4
mathplotlib verison 3.0.1
Simpletest.py test script fails with the following error after compiling from source as per the instructions:
The text was updated successfully, but these errors were encountered: