I am trying to install ZeroC Ice but am getting the following errors.
vagrant#marvin:~$ sudo apt-get install zeroc-ice34
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
zeroc-ice34 : Depends: php-zeroc-ice (>= 3.4.2-4ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Any ideas or help on how to resolve this?
Related
I was installing firebase-admin using pip on my raspberry pi 3b+ using the following command:
pip3 install firebase-admin
However it always ends with an error saying "Error building wheel for cryptography"
Here is the full error message:
/tmp/pip-build-env-k7qo7p54/overlay/lib/python3.7/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in packages.
!!
############################
# Package would be ignored #
############################
Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation/ for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq/
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation/#rust
Python: 3.7.3
platform: Linux-5.10.103-v7+-armv7l-with-debian-10.13
pip: n/a
setuptools: 67.0.0
setuptools_rust: 1.5.2
rustc: n/a
=============================DEBUG ASSISTANCE=============================
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
This package requires Rust >=1.48.0.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
I have tried different commands like:
pip3 install firebase-admin
or
python -m pip install firebase-admin
I have upgraded pip and tried again, but still it didn't work
I faced a similar problem long time ago and solved by installing openssl. Tried it this time, it didn't work
Also tried installing rust compiler and using it but it didn't work
I am using Raspbian OS Buster on my Raspberry Pi 3
I have tried fresh installs of the OS
Still the same problem occurs
I'm trying to install an exp17 on raspberry pi. For this, I need the library in python eyes17, but I am not successful when installing it. The error is as follows:
sudo apt install eyes17
Reading package list... Done
Building dependency tree... Done
Reading status information... Done
Do not can instal some pack. This may mean that
you asked for an impossible situation or, if you are using the distribution
unstable, that some required packages have not yet been created or are
have taken from «Incoming».
The following information may help resolve the situation:
The following packages have unmet dependencies:
eyes17 : Depends: python3-pyqt5.qtwebengine but not installable
Recommends: fonts-lohit-mlym but it won't install
Recommends: libreoffice but it won't install
E: The problems could not be corrected, you have held broken packets.
I am trying to install Tensorrt GA 5.1.5 from the nv-tensorrt-repo-ubuntu1604-cuda10.0-trt5.1.5.0-ga-20190427_1-1_amd64.deb file on an EC2 instance. I have the following configuration
- Ubuntu 16.04
- Tensorflow 1.14
- Python 3.6
- CUDA 10
- CuDNN 7.5.1
I also face this error while executing the following command
~/software1$ sudo apt-get install tensorrt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
tensorrt : Depends: libnvinfer5 (= 5.1.5-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-dev (= 5.1.5-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-samples (>= 5.1.0-1+cuda10.0) but it is not going to be installed
Depends: libnvinfer-samples (<= 5.2.0-1+cuda10.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages
When I try an installation with the tar file (TensorRT-5.1.5.0.Ubuntu-16.04.5.x86_64-gnu.cuda-10.0.cudnn7.5.tar.gz),
I get the error file tensorrt-5.1.5.0-cp36-none-linux_x86_64.whl is not a supported wheel on this platform
How do I resolve this error? I am following the official documentation for TensorRT 5.1.5
I'm trying to install the QGIS on my Ubuntu 16, but I'm not able to do it.
First, I've tried to uninstall any QGIS version on my Ubuntu, such as described here and here
After that, I tried to follow the QGIS Documentation and some other pages like here in order to install the QGIS, but to no avail. The console raises the following error:
$ sudo apt-get install qgis python-qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-qgis is already the newest version (1:3.4.4+24xenial-ubuntugis-1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
qgis-plugin-grass : Depends: grass760 but it is not installable
E: Unable to correct problems, you have held broken packages.
Then I tried the following this solution, but the console raises the following error:
$ sudo aptitude install qgis python-qgis qgis-plugin-grass
python-qgis is already installed at the requested version (1:3.4.4+24xenial-ubuntugis-1)
python-qgis is already installed at the requested version (1:3.4.4+24xenial-ubuntugis-1)
The following NEW packages will be installed:
libjs-leaflet{a} libqgis-app3.4.4{a} libqgisgrass7-3.4.4{a} qgis qgis-common{a} qgis-plugin-grass{b} qgis-plugin-grass-common{a} qgis-provider-grass{a}
qgis-providers{a} qgis-providers-common{a}
0 packages upgraded, 10 newly installed, 0 to remove and 1 not upgraded.
Need to get 38,2 MB of archives. After unpacking 130 MB will be used.
The following packages have unmet dependencies:
qgis-plugin-grass : Depends: grass760 which is a virtual package and is not provided by any available package.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) qgis-plugin-grass [Not Installed]
Leave the following dependencies unresolved:
2) qgis recommends qgis-plugin-grass
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Install the following packages:
1) libqgis-analysis3.4.6 [3.4.6+dfsg-1~xenial1 (xenial)]
2) libqgis-app3.4.6 [3.4.6+dfsg-1~xenial1 (xenial)]
3) libqgis-core3.4.6 [3.4.6+dfsg-1~xenial1 (xenial)]
4) libqgis-gui3.4.6 [3.4.6+dfsg-1~xenial1 (xenial)]
5) libqgis-native3.4.6 [3.4.6+dfsg-1~xenial1 (xenial)]
6) libqgis-server3.4.6 [3.4.6+dfsg-1~xenial1 (xenial)]
7) libqgisgrass7-3.4.6 [3.4.6+dfsg-1~xenial1 (xenial)]
8) libqgispython3.4.6 [3.4.6+dfsg-1~xenial1 (xenial)]
9) python3-qgis [3.4.6+dfsg-1~xenial1 (xenial)]
10) python3-qgis-common [3.4.6+dfsg-1~xenial1 (xenial)]
11) qgis [3.4.6+dfsg-1~xenial1 (xenial)]
12) qgis-common [3.4.6+dfsg-1~xenial1 (xenial)]
13) qgis-plugin-grass [3.4.6+dfsg-1~xenial1 (xenial)]
14) qgis-plugin-grass-common [3.4.6+dfsg-1~xenial1 (xenial)]
15) qgis-provider-grass [3.4.6+dfsg-1~xenial1 (xenial)]
16) qgis-providers [3.4.6+dfsg-1~xenial1 (xenial)]
17) qgis-providers-common [3.4.6+dfsg-1~xenial1 (xenial)]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
libjs-leaflet{a} libqgis-analysis3.4.6{a} libqgis-app3.4.6{a} libqgis-core3.4.6{a} libqgis-gui3.4.6{a} libqgis-native3.4.6{a} libqgis-server3.4.6{a}
libqgisgrass7-3.4.6{a} libqgispython3.4.6{a} python3-qgis{a} python3-qgis-common{a} qgis qgis-common{a} qgis-plugin-grass qgis-plugin-grass-common{a}
qgis-provider-grass{a} qgis-providers{a} qgis-providers-common{a}
0 packages upgraded, 18 newly installed, 0 to remove and 1 not upgraded.
Need to get 70,6 MB of archives. After unpacking 236 MB will be used.
Do you want to continue? [Y/n/?] y
[...]
Preparing to unpack .../python3-qgis-common_3.4.6+dfsg-1~xenial1_all.deb ...
Unpacking python3-qgis-common (3.4.6+dfsg-1~xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-qgis-common_3.4.6+dfsg-1~xenial1_all.deb (--unpack):
trying to overwrite '/usr/lib/python3/dist-packages/PyQt5/uic/widget-plugins/qgis_customwidgets.py', which is also in package python-qgis-common 1:3.4.4+24xenial-ubuntugis-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../python3-qgis_3.4.6+dfsg-1~xenial1_amd64.deb ...
Unpacking python3-qgis (3.4.6+dfsg-1~xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-qgis_3.4.6+dfsg-1~xenial1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3/dist-packages/qgis/__init__.py', which is also in package python-qgis 1:3.4.4+24xenial-ubuntugis-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
[...]
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Errors were encountered while processing:
/var/cache/apt/archives/python3-qgis-common_3.4.6+dfsg-1~xenial1_all.deb
/var/cache/apt/archives/python3-qgis_3.4.6+dfsg-1~xenial1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
dpkg: dependency problems prevent configuration of qgis:
qgis depends on python3-qgis (= 3.4.6+dfsg-1~xenial1); however:
Package python3-qgis is not installed.
dpkg: error processing package qgis (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis-plugin-grass:
qgis-plugin-grass depends on qgis (= 3.4.6+dfsg-1~xenial1); however:
Package qgis is not configured yet.
dpkg: error processing package qgis-plugin-grass (--configure):
dependency problems - leaving unconfigured
[...]
Errors were encountered while processing:
qgis
qgis-plugin-grass
Current status: 1 (+1) broken.
And now on Ubuntu top menu shows the following error message: Error: BrokenCount > 0 and unmet dependencies
After that, I've tried to fix with this solution, but when I try to use the sudo apt-get install qgis python-qgis qgis-plugin-grass command again, the same error occurs, unfortunately (i.e. qgis-plugin-grass : Depends: grass760 but it is not installable).
Then, I tried to add the python3-qgis, but an error occurs as well:
$ sudo apt-get install python3-qgis
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libqgis-analysis3.4.6 libqgis-core3.4.6 libqgis-gui3.4.6 libqgis-native3.4.6 libqgis-server3.4.6 libqgispython3.4.6 python3-qgis-common
The following NEW packages will be installed:
libqgis-analysis3.4.6 libqgis-core3.4.6 libqgis-gui3.4.6 libqgis-native3.4.6 libqgis-server3.4.6 libqgispython3.4.6 python3-qgis python3-qgis-common
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 31,9 MB of archives.
After this operation, 105 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial/main amd64 libqgis-core3.4.6 amd64 3.4.6+dfsg-1~xenial1 [6.071 kB]
Get:2 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial/main amd64 libqgis-analysis3.4.6 amd64 3.4.6+dfsg-1~xenial1 [2.620 kB]
[...]
Unpacking python3-qgis-common (3.4.6+dfsg-1~xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-qgis-common_3.4.6+dfsg-1~xenial1_all.deb (--unpack):
trying to overwrite '/usr/lib/python3/dist-packages/PyQt5/uic/widget-plugins/qgis_customwidgets.py', which is also in package python-qgis-common 1:3.4.4+24xenial-ubuntugis-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../python3-qgis_3.4.6+dfsg-1~xenial1_amd64.deb ...
Unpacking python3-qgis (3.4.6+dfsg-1~xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-qgis_3.4.6+dfsg-1~xenial1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3/dist-packages/qgis/__init__.py', which is also in package python-qgis 1:3.4.4+24xenial-ubuntugis-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Errors were encountered while processing:
/var/cache/apt/archives/python3-qgis-common_3.4.6+dfsg-1~xenial1_all.deb
/var/cache/apt/archives/python3-qgis_3.4.6+dfsg-1~xenial1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Even with these errors, the QGIS was "installed", but I'm afraid that according to the above error, this installation may have a problem in the future.
Would anyone know what could be happening? And what could I do to fix it?
Thank you in advance.
EDIT 1:
When I tried to install just the qgis-plugin-grass package, I've figured out that this package was raising the error.
$ sudo apt-get install qgis-plugin-grass
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
qgis-plugin-grass : Depends: grass760 but it is not installable
E: Unable to correct problems, you have held broken packages.
This worked for me on Ubuntu 18:
sudo apt install aptitude
sudo aptitude install qgis qgis-plugin-grass
While getting the documentation of a python repository right, I stumpled upon the issue that the package requirement shapely cannot be install on ReadTheDocs (RTD).
The log says:
Searching for shapely
Reading https://pypi.python.org/simple/shapely/
Best match: Shapely 1.6a1
Downloading https://pypi.python.org/packages/83/3b/99d5d0e266c3bf5f361c76ff046a539eaf96a4e9ca1beaef5121dcaf5cdc/Shapely-1.6a1.tar.gz#md5=a2efe87371d8186f5cbeadc0c153c546
Processing Shapely-1.6a1.tar.gz
Writing /tmp/easy_install-7zplo9iy/Shapely-1.6a1/setup.cfg
Running Shapely-1.6a1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7zplo9iy/Shapely-1.6a1/egg-dist-tmp-t5eb3ob8
Failed `CDLL(libgeos_c.so.1)`
Failed `CDLL(libgeos_c.so)`
error: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']
The actual problem is that libgeos is missing on RTD which is required to install shapely. Usually, you install libgeos by sudo apt-get install libgeos-dev. This does not work on RTD.
Does someone has any clue on that? In particular, I'm looking for a solution how to tell RTD to install additional system packages. I'm curious if this is possible at all.
RTD does not support installing additional c libs as stated in their FAQs, there's a discussion about this issue on git.
As written in the FAQ, you can only "mock out" these libs to avoid import errors.