I'm trying to install GeoDjango, it looks like I need PostGis. I got PostGis install fine on my mac, but I can't get it install on Centos 6.
Following this here: https://gis.stackexchange.com/questions/211962/yum-install-postgis-on-centos-7
I get stuck on:
yum install gdal-devel.x86_64
Here's what I get for errors
--> Finished Dependency Resolution
Error: Package: gpsbabel-1.5.0-3.el6.x86_64 (epel)
Requires: libQtCore.so.4()(64bit)
Error: Package: gdal-1.9.2-4.el6.x86_64 (elgis)
Requires: libpoppler.so.5()(64bit)
Error: Package: gdal-libs-1.9.2-4.el6.x86_64 (elgis)
Requires: libpoppler.so.5()(64bit)
Error: Package: gdal-java-1.9.2-4.el6.x86_64 (elgis)
Requires: libpoppler.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Related
The error happens at the import line in the Python code.
sys.path.append("/usr/local/Cellar/mariadb-connector-c/3.3.3")
sys.path.append("/usr/local/Cellar/mariadb-connector-c")
import mariadb
I already have the mariadb and mariadb-1.1.5.post3.dist-info added to the sys.path, I can see it when I do a print (sys.path)
The error message I am getting is : Exception has occurred: ModuleNotFoundError No module named 'mariadb._mariadb'
pip show mariadb returns:
Name: mariadb
Version: 1.1.5.post3
Summary: Python MariaDB extension
Home-page: https://www.github.com/mariadb-corporation/mariadb-connector-python
Author: Georg Richter
Author-email:
License: LGPL 2.1
Location: /Users/melinda.walker/GitHub/bi-ingestion-scripts/venv/lib/python3.9/site-packages
Requires: packaging
Required-by:
I am also using a virtual environment.
My python --version is : Python 3.9.16
I used brew install mariadb-connector-c to install mariadb-connector-c.
It is similar to issues: Installing mariadb 1.1.3 package on Python and Python import Mariadb: 'ModuleNotFoundError'.
I tried what Georg suggested: pip3 uninstall mariadb and pip3 install --no-cache mariadb but I am still getting that error.
I am running Python 3.8.5 on Mac OS Big sur.
The issue originates from my attempt to use the python library speech_recognition.
From https://github.com/Uberi/speech_recognition, an example of code contains the following, which results in the RequestError, which is an import error.
try:
print("Sphinx thinks you said " + r.recognize_sphinx(audio, language = 'it_IT'))
except sr.UnknownValueError:
print("Sphinx could not understand audio")
except sr.RequestError as e:
print("Sphinx error; {0}".format(e))
Attempting to install the module pocketsphinx with pip, I get two large bodies of errors, but at the end of the first block there is this:
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pocketsphinx
Any search on the internet will lead to this solution (github: https://github.com/deanmalmgren/textract/issues/209, stack overflow: ERROR: Failed building wheel for pocketsphinx while trying to install pocketsphinx with pip):
sudo apt-get install -y python python-dev python-pip build-essential swig git libpulse-dev
pip install pocketsphinx
Now, it is my understanding that apt-get is not available on Mac OS X. Instead, you can use brew. But almost none of these can be installed with brew.
I tried to run:
brew install pocketsphinx
And it installed cmu-pocketsphinx, but this doesn't help me in using pocketsphinx in python.
I also tried all the instructions in the "Install development version" on https://pypi.org/project/pocketsphinx/.
I even tried modifying 2 lines of c code as per instructions here, but to no avail:
https://github.com/MycroftAI/mycroft-precise/issues/75
Without pocketsphinx, it's impossible to use, among others, speech_recognition, so my question is how can you install pocketsphinx for python?
I try to build docker-compose from source with setuptools like this
python setup.py develop
But I get the follwoing error:
error: requests 2.11.1 is installed but requests!=2.18.0,>=2.14.2 is required by set(['docker'])
but running
pip show requests
gives the following result:
Name: requests
Version: 2.18.4
Summary: Python HTTP for Humans.
Home-page: http://python-requests.org
Author: Kenneth Reitz
Author-email: me#kennethreitz.org
License: Apache 2.0
Location: /home/florian/.local/lib/python2.7/site-packages
Requires: certifi, chardet, idna, urllib3
Is there anything cached by setuptools or something similar?
try
sudo pip install --upgrade docker-compose
There was an issue in the git repo source code, that blocked me from building.
It's possible I should just open this is an issue on the Enchant package, but it could definitely be something I'm missing too. I'm using El Capitan and python 2.7. I tried a few things:
pip install penchant seems to successfully install pyenchant-1.6.6, but when I try to import enchant I get the error ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI. I followed the advice here and upgraded pip.
I followed the advice here and started with brew install enchant, but that gave the error
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "glib--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/af332f42fae80c570a77/raw/7b5fd0d2e6554e9b770729fddacaa2d648327644/glib-hardcoded-paths.diff
I also downloaded the wheel here (second-to-last link) and tried to pip install it, but got the error that it is not a supported wheel on this platform.
Thoughts? Thanks.
bash-4.1# yum install python-devel
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Loading mirror speeds from cached hostfile
* rpmforge: mirror.smartmedia.net.id
* webtatic-el5: uk.repo.webtatic.com
http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-devel.x86_64 0:2.6.6-36.el6 will be installed
--> Processing Dependency: python(x86-64) = 2.6.6-36.el6 for package: python-devel-2.6.6-36.el6.x86_64
--> Finished Dependency Resolution
Error: Package: python-devel-2.6.6-36.el6.x86_64 (centos64-x86_64)
Requires: python(x86-64) = 2.6.6-36.el6
Installed: python-2.6.6-37.el6_4.x86_64 (#centos64-updates-x86_64)
python(x86-64) = 2.6.6-37.el6_4
Available: python-2.6.6-36.el6.x86_64 (centos64-x86_64)
python(x86-64) = 2.6.6-36.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Can somebody help me with above error , I am getting.
Just to let everybody know I am trying to install cx_Oracle on my CentOS system (CentOS release 6.4) and I got this error:-
error: command 'gcc' failed with exit status 1
So, I searched and found out to install python-devel and to do that I am getting the above error.
You have a newer version of python installed than the corresponding source package you're trying to install.
You have python 2.6.6-37 installed but the latest available source package from your repos (that you can successfully connect to) is 2.6.6-36.
But it looks like the python you have installed came from your "updates" repo,
http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml which isn't working at t he moment.
If that repo also had the corresponding python-devel-2.6.6-37 package, and it worked, (didn't throw a PYCURL error) you'd be fine, yum would find that and use it.
So your first step should be fixing your LAN repo / mirror.