-
Notifications
You must be signed in to change notification settings - Fork 394
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
basemap with mac m2 issues #574
Comments
Hi @swiftienimbus! Can you provide the whole traceback that you get when trying to install Note that we do not have Since you are using a brand new computer, I would also recommend that you try to use a newer Python version (3.8+). Python 3.7 will be EOL this June 2023, Python 3.5 has been EOL for almost 3 years. |
Thank you for your reply so I installed python 3.5 in an environment because I thought maybe this way basemap would be installed with less issues. I tried to use the following: pip3 install basemap ERROR: Command errored out with exit status 1:
|
From your traceback, the issue is coming from the missing GEOS library. In the precompiled wheels, a copy of GEOS is bundled for GEOS should be easily installable on MacOS, e.g. through Homebrew. Once you have it, you will need to find out its root installation folder, and define the |
I already followed your instructions and these ones: #539 I installed as well freetype and other packages but I am still gettint this error: distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('numpy>=1.10.0')
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/gm/t4q3k1t913b67p1g_j4_gp840000gn/T/pip-build-a38hjr4_/matplotlib/ Should I change another file? or is it because the python version is not compatible ? |
The problem that you are getting here is different and caused by your Python 3.5 installation. In your last message, you are using Python 3.5 and not Python 3.9 (from your traceback). The support for Python 3.5 in I would recommend that you recheck your environment and ensure that you are using Python 3.9 as in your previous message that had the |
Yes thanks, I already did those steps, I checked the version in my current environment and is Do you suggest changing to the python 3.9 version? ![]() ![]() I am tryint to track that file that shows the error to maybe modify it but I can't find it, maybe I'll create a new environment with a higher python version but just want to make sure is because of the python version. The complete message is here: I ran: Processing /Users/chateau/basemap/packages/basemap
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/gm/t4q3k1t913b67p1g_j4_gp840000gn/T/pip-build-5r6kd3th/matplotlib/ |
Unless you have a real reason to use Python 3.5, better switch to at least Python 3.9. Otherwise you will have to face these problems not only with Once you have switched to at least Python 3.9, you can try again what you already tried for Python 3.5 and, if the problem persists, feel free to copy the traceback here and I will try to help you. |
Hi @swiftienimbus! For the problem with Spyder and Jupyter notebooks I cannot provide much help because I do not use them regularly. Normally I play around directly using IPython in my console or by running scripts without interaction. From what you describe, since your Using |
Unless you really know what you are doing, strongly recommend you install Python and Python packages with mamba/conda. You are mixing up versions - basemap has not been an mpl_toolkit for over 10 years. Mamba/conda are not perfect but they take most of the pain out of doing this sort of thing away, particularly for a package like basemap that depends on external C or FORTRAN libraries. |
Hello again @molinav Is there a way to call the basemap installation or folders somehow to the python environment I created with conda ? sorry for my (maybe) obvious questions, i am a bit new on this stuff |
hello @jklymak I tried to do that with conda actually, but i got errors since i think those libraries are depracted since years ago, that's why I tried with pyenv but somehow this is giving me more issues :/, I tried to create a new environment with conda with python 3.9 but I got the same message when I try to install basemap, that can't find packages compatible: and then when i try to do it with pip install, somehow pyenv complains about it :/ |
Sorry I guess I should have checked before posting. If I do:
I indeed get:
It looks like the recipe is not working on condo-forge. |
For From your last tracebacks, your system seems to be quite messed up (your mamba/conda installation should also provide |
@jklymak This is true, Still, as long as @swiftienimbus has GEOS and a C compiler, it should be possible to install python -m pip install basemap in case that @swiftienimbus is using a system Python or pyenv Python, or with python -m pip install --no-deps basemap if using a |
This is indeed unexpected behaviour, |
Yes, I got it to work with:
I think that doesn't require a working compiler, but I could be mistaken. |
@jklymak The |
@jklymak On my Windows x64,
|
OK I have a c compiler, though I'm not sure at which step the c compiler was called ;-) |
@molinav so I tried to do this to just work with conda: ![]() I tried to track what is missing in the init.py but i am not sure if i should modify this or not and I couldn't find the path to the mpl_toolkits , its a bit late here so maybe I am missing something ?:( thanks again ! |
Did you do |
No, I tried in the main environment with python -m pip install --no-deps basemap |
you need to install baseman-data, which you have not done because you are using --no-deps. |
If you are working in the After installing https://github.com/matplotlib/basemap/blob/v1.3.7/packages/basemap/requirements.txt So in summary, you still need:
|
Bravisimo! sorry for too much obvious questions, it was long time since I didn't install everything from scratch in mac, |
Nice to hear that! Hopefully in the mid future I will add support for MacOS ARM64 and it will be less painful to install |
@ocefpaf, Is making a conda-forge recipe for basemap on MacOS ARM64 something you can help with? |
@efiring @ocefpaf For your information, the main issue with the MacOS ARM64 pipeline in Azure is coming from the lack of MacOS ARM64 runners, so the conda package must be built through cross-compilation, and I always end up with "bad architecture type" error messages. The rest of the pipelines that use normal compilation (Windows, GNU/Linux and MacOS x64) are working fine. |
Any updates on getting conda-forge recipes for MacOS arm64? When I try to install via conda-forge, I get the error appended to this post. It's singularly uninformative, telling me that packages are incompatible with each other, and then not listing which packages are incompatible. This is in a conda environment with Python 3.11. I have been able to install basemap from the anaconda channel in a python 3.10 environment, but that's causing me problems for a code with a basemap dependency for other reasons likely unrelated to this package. Regardless, it would be really handy if it worked on conda-forge again. conda install basemap UnsatisfiableError: The following specifications were found to be incompatible with each other: Output in format: Requested package -> Available versions |
@mpanning Today I have finished updating the
A simple test printing the
I am not an expert on Miniforge/Anaconda, but while testing I realised that it is very important for |
I am closing the issue, because with the upcoming release 1.4.0 (in a couple of days) I will be uploading MacOS wheels to PyPI manually, and since release 1.3.9 we already have MacOS arm64 packages in the Feel free to reopen the issue if any of the problems persists. |
Hello I am not an expert in programming so I am kindly asking for some help. I just purchased a new laptop (Macbook pro chip M2 pro). I want to install all the programs and packages I used to work with my old macbook air. So I am trying to install basemap (I already tried to install python 3.5 and is already installed in an environment) but i am still getting this error:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/gm/t4q3k1t913b67p1g_j4_gp840000gn/T/pip-build-ain2mraz/matplotlib/
Can I get some help? I have no idea how to solve it, i already installed as well cython but still I don't get any success to install basemap. I want to work with this new laptop to finalize a paper and I really need this package!
Thanks in advance
The text was updated successfully, but these errors were encountered: