red-jackal-13334
04/23/2020, 10:33 AMpex azure-cli setuptools -m azure.cli -o az
red-jackal-13334
04/23/2020, 10:33 AMred-jackal-13334
04/23/2020, 10:33 AMred-jackal-13334
04/23/2020, 10:33 AMred-jackal-13334
04/23/2020, 10:35 AMhappy-kitchen-89482
04/23/2020, 3:52 PMred-jackal-13334
04/24/2020, 11:01 AMhappy-kitchen-89482
04/24/2020, 4:32 PMwide-energy-11069
05/02/2020, 12:41 AMcalm-artist-46894
05/04/2020, 4:59 PMlibcurl
that depends on shared library wich is not part of the Python package itself, whatâs the recommended way to include them in a pex?
Currently I try:
pex --python=python3 pycurl -o testpycurl.pex
Then in a fresh Python3 container, I tried to use the pex:
root@41161a1cada4:~# ./testpycurl.pex
Python 3.6.8 (default, Jun 11 2019, 01:21:42)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import pycurl
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: libcurl.so.4: cannot open shared object file: No such file or directory
>>>
I understand this is beyond Python, i.e., pip install pycurl
itself would fail if libcurl
is not installed prior to install pycurl
, but would like to check if there any support from pex
, or this is believed to be solved by another layer of tools (e.g. docker)aloof-angle-91616
05/06/2020, 4:40 PMpython
?wide-energy-11069
05/06/2020, 4:41 PMwide-energy-11069
05/06/2020, 4:41 PM$ head dist/stressdash.pex
#!/usr/bin/env python2.7
P!ootstrap/_pex/__init__.pyP!?y????.bootstrap/pex/__i
aloof-angle-91616
05/06/2020, 4:41 PMpython
is needed to correctly select the interpreter and i donât understand why thatâs necessaryaloof-angle-91616
05/06/2020, 4:41 PMaloof-angle-91616
05/06/2020, 4:41 PMaloof-angle-91616
05/06/2020, 4:42 PMwide-energy-11069
05/06/2020, 4:42 PMpython some.pex
witty-crayon-22786
05/06/2020, 11:08 PMpython ./pex
 in favor of #!/env/please/just/any python*
aloof-angle-91616
05/06/2020, 11:16 PMenough-analyst-54434
05/12/2020, 12:53 AMhundreds-father-404
05/13/2020, 2:07 AMstderr:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ipdb/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ipdb/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ipdb/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ipdb/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ipdb/
ERROR: Could not find a version that satisfies the requirement ipdb (from versions: none)
ERROR: No matching distribution found for ipdb
pid: 67628 -> /Users/eric/.pyenv/versions/3.7.6/bin/python3.7 /private/var/folders/sx/pdpbqz4x5cscn9hhfpbsbqvm0000gn/T/process-execution7rY2tk/pex_root/pip.pex/d3323a933395f1fea4b421b92e99bd2c3d524e6c --disable-pip-version-check --isolated --no-python-version-warning -q --cache-dir /private/var/folders/sx/pdpbqz4x5cscn9hhfpbsbqvm0000gn/T/process-execution7rY2tk/pex_root download --dest /tmp/tmpfydwjkux/cp37-cp37m --index-url <https://pypi.org/simple/> --header Cache-Control:max-age=3600 --retries 5 --timeout 15 ipdb pygments pytest-cov>=2.8.1,<2.9 pytest-icdiff pytest-timeout>=1.3.4,<1.4 pytest>=5.3.5,<5.4 setuptools==44.0.0 zipp==2.1.0 raised Executing /Users/eric/.pyenv/versions/3.7.6/bin/python3.7 /private/var/folders/sx/pdpbqz4x5cscn9hhfpbsbqvm0000gn/T/process-execution7rY2tk/pex_root/pip.pex/d3323a933395f1fea4b421b92e99bd2c3d524e6c --disable-pip-version-check --isolated --no-python-version-warning -q --cache-dir /private/var/folders/sx/pdpbqz4x5cscn9hhfpbsbqvm0000gn/T/process-execution7rY2tk/pex_root download --dest /tmp/tmpfydwjkux/cp37-cp37m --index-url <https://pypi.org/simple/> --header Cache-Control:max-age=3600 --retries 5 --timeout 15 ipdb pygments pytest-cov>=2.8.1,<2.9 pytest-icdiff pytest-timeout>=1.3.4,<1.4 pytest>=5.3.5,<5.4 setuptools==44.0.0 zipp==2.1.0 failed with 1
I did a brew upgrade today, so itâs possibly related. Does anyone recognize this? I wonder if the issue is SSL or ipdbhundreds-father-404
05/13/2020, 2:39 AMaloof-angle-91616
05/13/2020, 2:48 AMaloof-angle-91616
05/13/2020, 2:48 AMaloof-angle-91616
05/13/2020, 2:49 AMjolly-midnight-72759
05/13/2020, 3:00 AMCanât connect..
error is a python related error. I have not nailed down the cause, but reinstalling my pyenv
python versions and blowing away my pants caches is how I solve it. It has happened twice to me in the past 6 months.hundreds-father-404
05/13/2020, 3:01 AMjolly-midnight-72759
05/13/2020, 3:03 AMhundreds-father-404
05/13/2020, 3:03 AMbrew upgrade
upgrading my Pyenv