veg / hivtrace

MIT License
22 stars 15 forks source link

Unable to install HIVTRACE - Failed building wheel for hyphy-python #66

Closed mhturra closed 4 years ago

mhturra commented 4 years ago

Hi,

I am unable to install hivtrace using pip3, I get the following error.

`/usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto /usr/bin/ld: cannot find -lcurl collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-g++' failed with exit status 1


Failed building wheel for hyphy-python Running setup.py clean for hyphy-python Failed to build hyphy-python Installing collected packages: hyphy-python, hppy, hivclustering, hivtrace Running setup.py install for hyphy-python ... /^canceled`

pip3 freeze


apturl==0.5.2
asn1crypto==0.24.0
bioext==0.19.7
biopython==1.75
blinker==1.4
Brlapi==0.6.7
certifi==2018.8.24
chardet==3.0.4
cmake==3.13.3
command-not-found==0.3
crypto==1.4.1
cryptography==2.3
cupshelpers==1.0
Cython==0.29.14
defer==1.0.6
distro==1.3.0
distro-info===0.21ubuntu2
entrypoints==0.3
fakemp==0.9.1
freeze==1.0.10
httplib2==0.11.3
idna==2.6
joblib==0.14.1
keyring==17.1.1
keyrings.alt==3.1.1
language-selector==0.1
launchpadlib==1.10.6
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
louis==3.8.0
macaroonbakery==1.2.1
Mako==1.0.7
MarkupSafe==1.1.0
Naked==0.1.31
netifaces==0.10.4
numpy==1.17.4
oauthlib==2.1.0
olefile==0.46
pexpect==4.6.0
Pillow==5.4.1
protobuf==3.6.1
pycairo==1.16.2
pycrypto==2.6.1
pycups==1.9.73
PyGObject==3.32.0
PyJWT==1.7.0
pymacaroons==0.13.0
PyNaCl==1.3.0
pyRFC3339==1.1
pysam==0.15.3
python-apt==1.8.4
python-dateutil==2.7.3
python-debian==0.1.34
pytz==2018.9
pyxdg==0.25
PyYAML==3.13
reportlab==3.5.18
requests==2.21.0
requests-unixsocket==0.1.5
scipy==1.4.1
SecretStorage==2.3.1
shellescape==3.4.1
simplejson==3.16.0
six==1.12.0
system-service==0.3
systemd-python==234
tornado==6.0.3
ubuntu-advantage-tools==19.2
ubuntu-drivers-common==0.0.0
ufw==0.36
unattended-upgrades==0.1
urllib3==1.24.1
usb-creator==0.3.3
wadllib==1.3.3
xkit==0.0.0

Thanks

Mark

stevenweaver commented 4 years ago

Dear @mhturra,

You are missing libraries on your system. You'll need libssl-dev, libcrypto, and libcurl-dev if you're using a Debian based system.

Best, Steven

Huanchang-Yan commented 2 years ago

Dear @stevenweaver , I failed to install HIV-TRACE using pip3 in Ubuntu, I got similar errors in this issue.

Building wheel for bioext (setup.py) ... error
 error: subprocess-exited-with-error
 × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [527 lines of output]
 Failed building wheel for bioext
... 
 Failed building wheel for hyphy-python

I also try pip3 install bioext==0.19.1 and pip3 install bioext==0.19.7, but they didn't work.

Addintionally, I have installed libcurl4-openssl-dev, libssl-dev, and openssl of the newest version.

And the content of pip3 freeze is

attrs==21.2.0
Automat==20.2.0
Babel==2.8.0
bcrypt==3.2.0
biopython==1.79
blinker==1.4
certifi==2020.6.20
chardet==4.0.0
click==8.0.3
cloud-init==22.2
colorama==0.4.4
command-not-found==0.3
configobj==5.0.6
constantly==15.1.0
cryptography==3.4.8
Cython==0.29.30
dbus-python==1.2.18
distro==1.7.0
distro-info===1.1build1
fakemp==0.9.1
hppy==0.9.9
httplib2==0.20.2
hyperlink==21.0.0
hyphy-python==0.1.10
idna==3.3
importlib-metadata==4.6.4
incremental==21.3.0
jeepney==0.7.1
Jinja2==3.0.3
joblib==1.1.0
jsonpatch==1.32
jsonpointer==2.0
jsonschema==3.2.0
keyring==23.5.0
launchpadlib==1.10.16
lazr.restfulclient==0.14.4
lazr.uri==1.0.6
MarkupSafe==2.0.1
more-itertools==8.10.0
netifaces==0.11.0
numpy==1.22.4
oauthlib==3.2.0
pexpect==4.8.0
ptyprocess==0.7.0
pyasn1==0.4.8
pyasn1-modules==0.2.1
PyGObject==3.42.0
PyHamcrest==2.0.2
PyJWT==2.3.0
pyOpenSSL==21.0.0
pyparsing==2.4.7
pyrsistent==0.18.1
pysam==0.19.1
pyserial==3.5
python-apt==2.3.0+ubuntu2
python-debian===0.1.43ubuntu1
pytz==2022.1
PyYAML==5.4.1
requests==2.25.1
scipy==1.8.1
SecretStorage==3.3.1
service-identity==18.1.0
six==1.16.0
sos==4.3
ssh-import-id==5.11
systemd-python==234
tornado==6.1
Twisted==22.1.0
ubuntu-advantage-tools==27.8
ufw==0.36.1
unattended-upgrades==0.1
urllib3==1.26.5
wadllib==1.3.6
zipp==1.0.0
zope.interface==5.4.0

Best, Huanchang