Requires: python(abi) = 3.6 on Centos 7 when installing iRedMail - python-3.x

Hello to all the community.
I am currently installing an email system on our online cloud server using the iRedMail solution.
I followed the official procedure via the ./iRedMail.sh file. The problem is that some packages require a dollar which it cannot find. Python verion 3.6 (abi) it seems.
Here is the error message:
--> Finished Dependency Resolution Error: Package: python36-sqlalchemy-1.1.3-3.el7.x86_64 (epel)
Requires: python(abi) = 3.6
Installed: python-2.7.5-68.el7.x86_64 (installed)
Details about my centos distribution :
I think we should install python (abi) 3.6 but I am wondering the correct procedure to point the installation to the new python (3.6) library for installation.
Thank you to all of you...

The capability python(abi) = 3.6 is provided by python3 package from the base CentOS 7 repository.
In all likelihood, you have disabled it.
The following should work:
yum install python3
If it cannot locate package, investigate repo configurations under /etc/yum.repos.d/ and enable the base repo.

Related

No local packages or working download links found for SIP, in the Appveyor Windows Containers, when testing python 3.5

For continuous integrations, we test our scripts for Windows OS with appveyor, as usual after each push in GitHub. The tests are launched for python 3.5, 3.6 and 3.7. For 3.6 and 3.7 all is working fine. For 3.5, the test falls due to no SIP package found:
searching for SIP
Reading https://pypi.python.org/simple/SIP/
No local packages or working download links found for SIP
error: Could not find suitable distribution for Requirement.parse('SIP')
Command exited with code 1
It is strange because:
For python 3.6 the return is:
Searching for SIP
Reading https://pypi.org/simple/SIP/
Downloading https://files.pythonhosted.org/packages/7a/49/67cc7955baf2ec5b67e141da2ab2a436cbf0f8d7c9fcab54e35df21d056b/sip-4.19.8-cp36-none-win32.whl#sha256=74da4ddd20c5b35c19cda753ce1e8e1f71616931391caeac2de7a1715945c679
Best match: sip 4.19.8
Processing sip-4.19.8-cp36-none-win32.whl
Installing sip-4.19.8-cp36-none-win32.whl to c:\python36\lib\site-packages
Adding sip 4.19.8 to easy-install.pth file
For python 3.7 the return is:
Searching for SIP
Reading https://pypi.org/simple/SIP/
Downloading https://files.pythonhosted.org/packages/89/34/056db01926839dd05f80a08a579ee2f4f6625913b0620580ee580fa05fbf/sip-4.19.8-cp37-none-win32.whl#sha256=1bb10aac55bd5ab0e2ee74b3047aa2016cfa7932077c73f602a6f6541af8cd51
Best match: sip 4.19.8
Processing sip-4.19.8-cp37-none-win32.whl
Installing sip-4.19.8-cp37-none-win32.whl to c:\python37\lib\site-packages
Adding sip 4.19.8 to easy-install.pth file
So for python 3.5 we can think that the good target is sip-4.19.8-cp35-none-win32.whl, and by inspecting https://pypi.python.org/simple/SIP/ it seems that it is existing!
It seems that the issues comes from a difference in processing between the pip install ... command and the setup (install_requires=...) method used with the python setup.py install command.
Since I edited the appveyor.yml file to install all the necessaries packages with pip just before the python setup.py install installation command, it is working fine.
It's quick and dirty (I am sure that it is possible to do more elegant and skilled by configuring better), but it works!
The setup.py file.
The info.py file.
The former appveyor.yml file.
The new appveyor.yml file.
EDIT:
May be quicker and cleaner. Starting from the difference observed beetween pip and setuptools I observed that the build started with a very old setuptools version:
pip list
Package Version
---------- -------
pip 19.1
setuptools 28.8.0
virtualenv 15.0.1
So I just made an update of setuptools:
pip install --upgrade -vv setuptools
and now all is working fine, without adding twice the requested repositories in install_requires.
The former appveyor.yml file.
The new appveyor.yml file.

Issue Installing scikit image in python 3

I am having issues installing scikit-image for use with python3
I have it installed for python version 2.7 using pip install. I am now trying to install it in my folder for python3 and am getting this issue
Obtaining file:///usr/lib/python3/dist-packages/scikit-image
Collecting numpy>=1.11 (from scikit-image==0.14.dev0)
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement numpy>=1.11 (from scikit-image==0.14.dev0) (from versions: )
No matching distribution found for numpy>=1.11 (from scikit-image==0.14.dev0)
I am navigating to the source folder and using
sudo pip install -e . as per the documentation. I have also tried sudo pip3 install -e . http://scikit-image.org/docs/dev/install.html
I am new to Ubuntu/programming so don't understand the issue; looking at the error it talks about numpy version 1.11. I do have this installed in my python3 folder so I don't understand the issue. The only way I have been able to install skimage for python3 is by using synaptic package manager, unfortunately, the only version available is version 0.10.1

Can't install PyQt4

I'm trying to install the latest version of PyQt4 for windows. Riverbank doesn't provide binary installer anymore. I downloaded the source package and when I try to follow the instructions by running python configure.py I get an error message that I need SIP 4.18 or later version to be installed. I try to install sip using pip3 install sip (as it's explained here: https://pypi.python.org/pypi/SIP/4.19), but it fails to install.
Would you please help me in this?

Version of libjpeg while using other package

I would like to visualize weather data, which are under the format .grb2. Therefore I need the library pygrib for python. I've already install grib-api and pygrib, as explained on the installation notes of pygrib (http://jswhit.github.io/pygrib/docs/). I'm using python 3.5 installed with anaconda. I ran
brew install grib-api
pip install pygrib
However when I try to import pygrib in a python script I always get the same error message :
import pygrib
--> ImportError: dlopen(/Users/Marguerite/anaconda/lib/python3.5/sitepackages/pygrib.cpyton-35m-darwin.so, 2): Library not loaded: #rpath/libjpeg.9.dylib
Referenced from: /Users/Marguerite/anaconda/lib//libgrib_api.dylib
Reason: Incompatible library version: libgrib_api.dylib requires version 12.0.0 or later, but libjpeg.9.dylib provides version 11.0.0
I've tried several times to uninstall/reinstall jpeg libraries, or install libjpeg with macports, nothing seems to do the trick ... Also I can't find the library libjpeg when I run "conda list". It seems it is included into some other library (jpeg of libjpeg-turbo), but again updating those libraries didn't improve results.
I would appreciate really any help or thoughts !
Thanks,
Marguerite
Actually I found a solution. Libjpeg is updated with conda update jpeg, but not to the latest version.
The trick that worked for me is to install a bigger package, which automatically update libjpeg. Just run :
conda install -c conda-forge jasper
After that it worked fine for me :)

Installing application and requires python-tornado 2.2.0

I'm trying to install an rpm package.
It keeps saying Requires: python-tornado >= 2.2.0
I have installed tornado 3.2 but the problem still exist.
How can I resolve this issue?
python-tornado is the correct RPM for the tornado web framework written in Python.
Did you install tornado 3.2 with pip or with an rpm? RPM doesn't know about things installed with pip, so you'll need an RPM version of tornado to use with this rpm (or install whatever you're trying to install here with pip instead of rpm)

Resources