asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
656 stars 56 forks source link

Issues compiling the bz2 and sqlite3 extensions #83

Closed SuperSonicHub1 closed 3 years ago

SuperSonicHub1 commented 3 years ago

When running asdf install python latest, I get:

python-build 3.9.1 /home/kyleanthonywilliams2/.asdf/installs/python/3.9.1
Downloading Python-3.9.1.tar.xz...
-> https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz
Installing Python-3.9.1...
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
Installed Python-3.9.1 to /home/kyleanthonywilliams2/.asdf/installs/python/3.9.1

I already have libsqlite3-0 and libbz2-1.0 installed from Debian's apt repository. Help?

AntonOfTheWoods commented 3 years ago

@SuperSonicHub1 , how did you resolve this? I am getting something very similar

SuperSonicHub1 commented 3 years ago

I didn't. The repo manager simply took too long to reply so I closed the issue.

On Wed, Mar 10, 2021, 3:47 AM Anton Melser notifications@github.com wrote:

@SuperSonicHub1 https://github.com/SuperSonicHub1 , how did you resolve this? I am getting something very similar

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danhper/asdf-python/issues/83#issuecomment-795099306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDQCMQHI6YHDBPYXH4AO63TC4WZZANCNFSM4VLO77ZQ .

AntonOfTheWoods commented 3 years ago

If anyone else gets this, you can follow the instructions (mentioned in the readme, it has to be admitted!) here. Basically, you install all the devs python could possibly ever need to be compiled with, including for python2. Anyway, it works...

SuperSonicHub1 commented 3 years ago

Thanks, must've been added after the two months I left the issue open.

On Wed, Mar 10, 2021, 8:51 AM Anton Melser notifications@github.com wrote:

If anyone else gets this, you can follow the instructions (mentioned in the readme, it has to be admitted!) here https://github.com/pyenv/pyenv/wiki/Common-build-problems. Basically, you install all the devs python could possibly ever need to be compiled with, including for python2. Anyway, it works...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danhper/asdf-python/issues/83#issuecomment-795440453, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDQCMTHW5AKWXBO7W6AX7LTC52PBANCNFSM4VLO77ZQ .

ksastan commented 2 years ago

If anyone else gets this, you can follow the instructions (mentioned in the readme, it has to be admitted!) here. Basically, you install all the devs python could possibly ever need to be compiled with, including for python2. Anyway, it works...

Confirm the decision. Installing dev packages solve the problem. Ubuntu example:

apt install libsqlite3-dev
apt install libbz2-dev

then reinstall python