I need to install custom module of cryptography#3.3.2 with python-2.7.18 on Ubuntu-18.04, on installation from source got below error
build/temp.linux-x86_64-2.7/_openssl.c: In function '_cffi_d_i2d_re_X509_REQ_tbs':
build/temp.linux-x86_64-2.7/_openssl.c:50709:10: warning: implicit declaration of function 'i2d_re_X509_REQ_tbs'; did you mean 'i2d_re_X509_tbs'? [-Wimplicit-function-declaration]
return i2d_re_X509_REQ_tbs(x0, x1);
^~~~~~~~~~~~~~~~~~~
i2d_re_X509_tbs
=============================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.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
=============================DEBUG ASSISTANCE=============================
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
Current pip version is : pip 20.3.4 (latest supported)
openssl version : OpenSSL 1.1.1
Also all required dependencies are installed.
If
pip install cryptography is done it successfully installs 3.3.2 version.
Kindly suggest.
I tried to install all dependencies but did not solved my problem.
Also attempted to install non patched cryptography-3.3.2 module from source but got the same error.
I'm installing a software(named lattE) with cddlib as a prerequisite, and after installing cddlib with the following code:
sudo apt-get install -y libcdd-dev
I was confronted with this error while configuring the software:
checking for scdd_gmp... no
checking for scdd... no
configure: error: The `scdd_gmp' or `scdd' binary from cddlib is required for LattE.
what does it mean? what can I do to work this out? thanks very much for your attention.
I have created a c++ app on Debian Jessie 8.10 amd64 which also need the following libraries:
sudo apt-get install libssl-dev
sudo apt-get install libcurl4-openssl-dev
I also need to cross compile the source code for armhf. So according to this quite helpful link https://wiki.embeddedarm.com/wiki/Jessie_armhf_Cross_Compile I gave the following commands:
sudo apt-get install curl build-essential
su root
echo "deb http://emdebian.org/tools/debian jessie main" >
/etc/apt/sources.list.d/emdebian.list
curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
dpkg --add-architecture armhf
apt-get update
apt-get install crossbuild-essential-armhf
Everything got installed correctly and then I also gave :
sudo apt-get install libssl-dev:armhf
sudo apt-get install libcurl4-openssl-dev:armhf
The first command executed successfully. On the other hand the second one failed giving the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libcurl4-doc:armhf libcurl3-dbg:armhf libidn11-dev:armhf libkrb5-dev:armhf libldap2-dev:armhf
librtmp-dev:armhf libssh2-1-dev:armhf pkg-config:armhf
The following NEW packages will be installed:
libcurl4-openssl-dev:armhf
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
23 not fully installed or removed.
Need to get 0 B/316 kB of archives.
After this operation, 863 kB of additional disk space will be used.
(Reading database ... 94032 files and directories currently installed.)
Preparing to unpack .../libcurl4-openssl-dev_7.38.0-4+deb8u8_armhf.deb ...
Unpacking libcurl4-openssl-dev:armhf (7.38.0-4+deb8u8) ...
dpkg: error processing archive /var/cache/apt/archives/libcurl4-openssl-dev_7.38.0-4+deb8u8_armhf.deb (--unpack):
trying to overwrite shared '/usr/include/curl/curlbuild.h', which is different from other instances of package libcurl4-openssl-dev:armhf
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
/var/cache/apt/archives/libcurl4-openssl-dev_7.38.0-4+deb8u8_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Since I'm quite new in cross compilation procedures does anyone have any idea what I'm doing wrong?
You are doing nothing wrong. It is a file conflict in related with multiarch packages. It is a bug in the package
Here is a explanation of this kind of bugs, from https://wiki.debian.org/MultiArch/Hints
The package in question is marked Multi-Arch: same, but has
conflicting versions of at least one file for different architectures.
The hint tells the filename (or the number of filenames) and the
architectures (or number of architectures) in question. The easiest
way to fix is to remove the Multi-Arch: same declaration, but often
enough it can be fixed by moving the offending files to
per-architecture locations (typically
/usr/lib/$(DEB_HOST_MULTIARCH)/). For *-dev packages, the Multi-Arch:
same capability often is not critical and removing is a good initial
measure.
I just run into the same kind of problem, which still is an issue with some packages. In my case libcurl-openssl-dev was replacing the /usr/bin/curl-config binary.
To me it required swapping from x64/i386 libraries when i needed cross-compiling but i am well aware it might not be possible for everyone.
I've spent all day trying to install sjPlot and I've been searching the forum + other forums but can't seem to find a solution to my problem. Essentially, when I try to install the sjPlot package, I get the following output:
> install.packages("sjPlot", dependencies = TRUE)
Installing package into ‘C:/Users/mmarttin/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependencies ‘VGAM’, ‘pbkrtest’ are not available
also installing the dependencies ‘bindrcpp’, ‘glue’, ‘purrr’, ‘bayesplot’, ‘pillar’, ‘dplyr’, ‘ggeffects’, ‘rlang’, ‘sjlabelled’, ‘sjmisc’, ‘sjstats’, ‘tidyselect’, ‘tibble’, ‘tidyr’, ‘AICcmodavg’, ‘car’
> There are binary versions available but the source versions are later:
binary source needs_compilation
bindrcpp 0.1 0.2 TRUE
glue 1.0.0 1.2.0 TRUE
purrr 0.2.2 0.2.4 TRUE
bayesplot 1.2.0 1.4.0 FALSE
dplyr 0.5.0 0.7.4 TRUE
sjmisc 2.4.0 2.6.3 FALSE
sjstats 0.10.0 0.14.0 FALSE
tibble 1.3.0 1.4.2 TRUE
tidyr 0.6.1 0.7.2 TRUE
AICcmodavg 2.1-0 2.1-1 FALSE
car 2.1-4 2.1-6 FALSE
sjPlot 2.3.1 2.4.0 FALSE
> Binaries will be installed
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘rlang’
‘tidyselect’
These will not be installed
> trying URL '...cran.rstudio.com/bin/windows/contrib/3.2/bindrcpp_0.1.zip'
Content type 'application/zip' length 567177 bytes (553 KB)
downloaded 553 KB
> trying URL '...cran.rstudio.com/bin/windows/contrib/3.2/glue_1.0.0.zip'
Content type 'application/zip' length 34947 bytes (34 KB)
downloaded 34 KB
> trying URL '...cran.rstudio.com/bin/windows/contrib/3.2/purrr_0.2.2.zip'
Content type 'application/zip' length 807672 bytes (788 KB)
downloaded 788 KB
> trying URL '...cran.rstudio.com/bin/windows/contrib/3.2/dplyr_0.5.0.zip'
Content type 'application/zip' length 2520396 bytes (2.4 MB)
downloaded 2.4 MB
> trying URL '...cran.rstudio.com/bin/windows/contrib/3.2/tibble_1.3.0.zip'
Content type 'application/zip' length 566754 bytes (553 KB)
downloaded 553 KB
> trying URL '...cran.rstudio.com/bin/windows/contrib/3.2/tidyr_0.6.1.zip'
Content type 'application/zip' length 802821 bytes (784 KB)
downloaded 784 KB
>package ‘bindrcpp’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
package ‘purrr’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyr’ successfully unpacked and MD5 sums checked
> The downloaded binary packages are in
C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X\downloaded_packages
> installing the source packages ‘bayesplot’, ‘pillar’, ‘ggeffects’, ‘sjlabelled’, ‘sjmisc’, ‘sjstats’, ‘AICcmodavg’, ‘car’, ‘sjPlot’
> trying URL '...cran.rstudio.com/src/contrib/bayesplot_1.4.0.tar.gz'
> Content type 'application/x-gzip' length 4736155 bytes (4.5 MB)
downloaded 4.5 MB
> trying URL '...cran.rstudio.com/src/contrib/pillar_1.1.0.tar.gz'
> Content type 'application/x-gzip' length 71173 bytes (69 KB)
downloaded 69 KB
> trying URL '...cran.rstudio.com/src/contrib/ggeffects_0.3.1.tar.gz'
> Content type 'application/x-gzip' length 215735 bytes (210 KB)
downloaded 210 KB
> trying URL '...cran.rstudio.com/src/contrib/sjlabelled_1.0.6.tar.gz'
> Content type 'application/x-gzip' length 132974 bytes (129 KB)
downloaded 129 KB
> trying URL '...cran.rstudio.com/src/contrib/sjmisc_2.6.3.tar.gz'
> Content type 'application/x-gzip' length 171577 bytes (167 KB)
downloaded 167 KB
> trying URL '...cran.rstudio.com/src/contrib/sjstats_0.14.0.tar.gz'
> Content type 'application/x-gzip' length 258648 bytes (252 KB)
downloaded 252 KB
> trying URL '...cran.rstudio.com/src/contrib/AICcmodavg_2.1-1.tar.gz'
> Content type 'application/x-gzip' length 250768 bytes (244 KB)
downloaded 244 KB
> trying URL '...cran.rstudio.com/src/contrib/car_2.1-6.tar.gz'
> Content type 'application/x-gzip' length 627349 bytes (612 KB)
downloaded 612 KB
> trying URL '...cran.rstudio.com/src/contrib/sjPlot_2.4.0.tar.gz'
> Content type 'application/x-gzip' length 917066 bytes (895 KB)
downloaded 895 KB
> ERROR: dependency 'rlang' is not available for package 'bayesplot'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/bayesplot'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/bayesplot_1.4.0.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘bayesplot’ had non-zero exit status
> ERROR: dependency 'rlang' is not available for package 'pillar'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/pillar'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/pillar_1.1.0.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
> ERROR: dependency 'rlang' is not available for package 'sjlabelled'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/sjlabelled'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/sjlabelled_1.0.6.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘sjlabelled’ had non-zero exit status
> ERROR: dependency 'VGAM' is not available for package 'AICcmodavg'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/AICcmodavg'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/AICcmodavg_2.1-1.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘AICcmodavg’ had non-zero exit status
> ERROR: dependency 'pbkrtest' is not available for package 'car'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/car'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/car_2.1-6.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘car’ had non-zero exit status
> ERROR: dependencies 'rlang', 'sjlabelled', 'tidyselect' are not available for package 'sjmisc'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/sjmisc'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/sjmisc_2.6.3.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘sjmisc’ had non-zero exit status
> ERROR: dependencies 'bayesplot', 'rlang', 'sjlabelled', 'sjmisc', 'tidyselect' are not available for package 'sjstats'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/sjstats'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/sjstats_0.14.0.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘sjstats’ had non-zero exit status
ERROR: dependencies 'rlang', 'sjlabelled', 'sjmisc', 'sjstats', 'tidyselect' are not available for package 'ggeffects'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/ggeffects'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/ggeffects_0.3.1.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘ggeffects’ had non-zero exit status
ERROR: dependencies 'ggeffects', 'rlang', 'sjlabelled', 'sjmisc', 'sjstats', 'tidyselect' are not available for package 'sjPlot'
* removing 'C:/Users/mmarttin/Documents/R/win-library/3.2/sjPlot'
> Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\mmarttin\Documents\R\win-library\3.2" C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X/downloaded_packages/sjPlot_2.4.0.tar.gz' had status 1
> Warning in install.packages :
installation of package ‘sjPlot’ had non-zero exit status
> The downloaded source packages are in
‘C:\Users\mmarttin\AppData\Local\Temp\RtmpKQqs8X\downloaded_packages’
I've tried installing VGAM and pbkrtest, along with rlang and tidyselect, but it just says the following:
> Warning in install.packages :
packages ‘VGAM’, ‘pbkrtest’ are not available (for R version 3.2.1)
> Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘rlang’
These will not be installed
> Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘rlang’
‘tidyselect’
These will not be installed
From what I can understand, the most central package seems to be rlang. So I read in some thread that perhaps I could download RTools to my computer and try to download rlang again, but I can't seem to open Rtools in R (or however it works; I tried to follow a guide on https://github.com/stan-dev/rstan/wiki/Install-Rtools-for-Windows but I couldn't make it work).
I also tried to download the .zip file and open the package in R; however, that only lead to error when I tried again to install sjPlot (something along the lines of "the procedure entry point could not be located in the dynamic link library...", referent to the rlang package).
As I'm sure you can tell, I'm quite lost and would really appreciate any kind of help in resolving this issue! Not sure what kind of info you need from me, but I'm running on a Windows 8.1, RStudio latest version available on their website (RStudio Desktop 1.1.419).
I've also tried re-installing RStudio, looked for updates, etc.
You are using an older release of R (version 3.2), and for some packages, binaries may not be built for that R version yet. However, rlang and tidyselect seem to be available as windows binaries for R 3.2.
If possible, I would recommend to update R to the latest release (3.4.x) and then install RTools (https://cran.r-project.org/bin/windows/Rtools/), which simply needs to be executed (it installs a C++-compiler and modifies your PATH variable, so R will find the C++-compiler if needed).
Maybe this already solves your problem?
Another option might be to install other packages with dependencies first, e.g. tidyr, dplyr, rlang, tibble, purrr, ... (the tidyverse packages), and then install the next packages. So, don't install all packages in one call to install.packages(), but in multiple steps.
if you are using conda env than you should try this command after active your
conda enviroment conda install -c conda-forge r-sjplot
for more info
I have written a python package called lyrico and uploaded the source dist and wheel to testpypi site.
lyrico
But when I try to install it from there using following command it gives errors:
pip install -i https://testpypi.python.org/pypi lyrico
Error logged in cmd-prompt:
Collecting lyrico
Using cached https://testpypi.python.org/packages/py2/l/lyrico/lyrico-0.2.5-py2-none-any.whl
Collecting mutagen (from lyrico)
Could not find a version that satisfies the requirement mutagen (from lyrico) (from versions: )
No matching distribution found for mutagen (from lyrico)
It is unable to find the dependency mutagen in wheel I uploaded. I have included dependencies in my setup.py:
install_requires = [
'mutagen',
'glob2',
'beautifulsoup4',
'win-unicode-console >= 0.4'
],
Weird thing is that if go to testPyPi page and manually download and install the wheel using (after cd to the containing dir):
pip install lyrico-0.2.5-py2-none-any.whl
it works and installs all the dependencies as well.
I am using Python 2.7.11 on a Windows7 system. Can someone please tell what is wrong or if the error is reproduce-able?