GLIBC_2.14 Error Message when Installing Pygrib - python

Trying to install pygrib via Anaconda package to a remote server. Instillation seems to have worked fine and all supporting libraries have been installed. But when I try to "import pygrib" I receive this message:
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /lustre/gporter/anaconda2/lib/python2.7/site-packages/../../libgrib_api-1.10.4.so)
I attempted to update GLIBC to the newest version, but I suspect the problem is hardwired in somewhere.

I attempted to update GLIBC to the newest version
What version did you end up with after the update?
Chances are, it's a version older than 2.14 (or you wouldn't be having this problem).
Note that in general a given distribution, e.g. Ubuntu-14.10, will not update the version of GLIBC ever. This is because GLIBC has a potential to break applications, and the distribution doesn't want to re-test all applications that ever shipped for it.
What you must do is either find a package for your distribution, or update the entire OS.
It's also possible to install newer GLIBC in non-default location, but this is not trivial, as this answer explains.

Related

Scipy not installing on Pycharm

I have been trying to install SciPy from PyCharm for some time. I have tried using the in-built package installer, however it would fail. Also I tried installing as a .whl and running as
Pip install scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
and that would fail too. Currently unsure where to move forward from here. I use Windows 10 and am currently using Python version 3.10 64 bit. The error message that is coming up is
ERROR: scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl is not a supported wheel on this platform.
This may be caused because Scipy is not supporting Python 3.10 (yet). scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl is the first wheel that appears on PyPI. I suppose that PyCharm got confused, and tried to find a compatible wheel.
You have to wait for a compatible release from the Scipy developers (seems like they are waiting for some issues to be resolved). In the meantime, you can try a lower Python version (what about Python 3.9?)

Why do I keep getting errors when I try to install PySide6 on windows PC?

I have been trying to install PySide6 on my PC (Windows 10 64bits) with Python 3.9.0 installed, but I keep getting errors every time.
I used the command pip install PySide6 It is not working for me.
Any help will be appreciated.
Error:
ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none) ERROR: No matching distribution found for pyside2
Check if you Python installation is 64 bit and not 32 bit. It has an impact on compatible and thus available binaries.
At the time of writing:
The problem is that most of the binaries are not yet compatible and are not yet compiled for Python 3.9 at the time of writing. If you want the best compatibility, use Python 3.7 or Python 3.8. Most of the packages have been compiled for Python 3.8 but not many for Python 3.9.
For the future people that come here:
I would recommend you to keep one minor version behind the current stable release to not face dependency problems as the above section explains.
For Example:
If current stable release is Python 3.12 then you should install Python 3.11 or Python 3.10. Just one or two versions behind the current stable release.

Can't install Matplotlib on macOS Big Sur

Since I've upgraded my MacOs to Big Sur I'm having some trouble with my data science libraries. I was able to install the numpy and pandas (even though it took an unusual amount of time as stated at this topic). But can't manage to install the Matplotlib.
I've tried three things...
First with the default MacOs embedded Phyton 3.8.2 .
Reinstalled numpy, upgraded pip, but when I've tried to install Matplotlib. I've got the following error:
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
Later, I've seen some suggestions here at stackoverflow for similar problems, one suggested to use homebrew, so I've installed Python 3.9.0 through brew. However, when I've tried to install Matplotlib, still got a giant error, when it was trying to install Pillow:
(.......) The headers or library files could not be found for jpeg,a required dependency when compiling
Pillow from source.Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
ERROR: Command errored out with exit status 1: /usr/local/opt/python#3.9/bin/python3.9 (...)
To finish (in almost despair) I've tried to create a virtual environment using venv (& Python 3.8.2) and was able to install NumPy successfully, however, I've got the following error trying to install Matplotlib:
(...... long line of code....) The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
Really don't know what to do... Is it impossible to use Matplotlib with a clean install on BigSur? hahaha =(
I did it!!! I fix it!!
For this error :
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend.
If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
I fixed installing an older numpy version.
pip3 install --force-reinstall numpy\<1.19
It did the job.
For the second error:
(.......) The headers or library files could not be found for jpeg,a required dependency when compiling
Pillow from source.Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html
ERROR: Command errored out with exit status 1: /usr/local/opt/python#3.9/bin/python3.9 (...)
It was the missing JPEG library. I do recommend you guys install homebrew.
Solved this problem with:
brew install libjpeg
your easy_install is outdated.so just update your setup_tools by excuting following command:
pip install setuptools==51
then
easy_install --version
make sure your easy_install's version is above 51.

Stable version of gevent?

There appears to be a stable and unstable version here: https://pypi.python.org/pypi/gevent#downloads
It's not entirely clear to me what the distinctions are. I'm guessing there's a stable version on pip, described under the heading "Get gevent", and there's a separate unstable version on github under the heading "Development".
I simply want to install the stable version for production usage. pip install gevent doesn't seem to be the proper way to do this, since it installs something that has a syntax error in line 289 of hub.py, and looking in there I realized that it's a completely different version of gevent from the most up-to-date version on Github.
How do I install gevent?
It looks like the current version on pypi is a release candidate and partially supports Python 3. If you want a stable version (that doesn't support python 3.x) you could try specifying the specific version when you invoke pip
pip install gevent==1.0.2
Alternately, you can install the version based on a specific commit on Github
pip install git+git://github.com/gevent/gevent.git#egg=gevent
This is what they are referring to as the development version. This means that you will be running the code as it exists on Github which could potentially be buggy but will include all latest changes to the codebase.
As a sidenote, if you're having issues with the version currently on pypi, you can see if the issues are reproducible using the most recent Github changes and submit a bug report to the developers.

Scipy installation problems (no blas or lapack)

I tried to update the scipy library, but it failed. Then, I tried to uninstall and reinstall it. Removing the old version was simple, but the pip tool would not let me install the new version. The error message said that the blas and lapack packages were missing. I guess that this is required, but I was able to use scipy until now.
I checked the distributors' websites, but there is no simple way to install lapack or blas. I am not very experienced with manual setups, and I can't find enough information on installing it on my system. I am running 64-bit Windows 8 with Python 2.7 (from Anaconda).
P.S. There may be a simple solution or something obvious that I missed, so please be patient.

Categories