jolly-midnight-72759
10/12/2020, 6:28 PMpip freeze
then using that as the input to pex -r /tmp/jupyterlab-requirements.txt -o jupyter-labs.pex -p /Users/myacct/.pyenv/shims/python
. When I go to run the pex with jupyter-labs.pex -e jupyterlab.labapp:main
I get the following error:
jupyter-labs.pex -e jupyterlab.labapp:main
Traceback (most recent call last):
File "/Users/myacct/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_main_module_details(_Error)
File "/Users/myacct/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 219, in _get_main_module_details
return _get_module_details(main_name)
File "/Users/myacct/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 128, in _get_module_details
spec = importlib.util.find_spec(mod_name)
File "/Users/myacct/.pyenv/versions/3.6.9/lib/python3.6/importlib/util.py", line 91, in find_spec
return _find_spec(fullname, None)
File "<frozen importlib._bootstrap>", line 894, in _find_spec
File "<frozen importlib._bootstrap_external>", line 1157, in find_spec
File "<frozen importlib._bootstrap_external>", line 1131, in _get_spec
File "<frozen importlib._bootstrap_external>", line 1112, in _legacy_get_spec
File "<frozen importlib._bootstrap>", line 441, in spec_from_loader
File "<frozen importlib._bootstrap_external>", line 544, in spec_from_file_location
File "/Users/myacct/dev/virtualenvs/tmp-bc02eb6e921a2fd/jupyter-labs.pex/__main__.py", line 3
[ -n "$PYENV_DEBUG" ] && set -x
^
SyntaxError: invalid syntax
jolly-midnight-72759
10/12/2020, 6:32 PMpyenv
for my python interpreter.jolly-midnight-72759
10/12/2020, 6:33 PMPYENV_DEBUG
to anything, I get debug information that begins with [pyenv:22]
and [pyenv-version-file:7]
etc.jolly-midnight-72759
10/12/2020, 6:35 PMjupyter
plugin I've been discussing in #plugins.fast-nail-55400
10/12/2020, 6:39 PMfast-nail-55400
10/12/2020, 6:40 PM__main__.py
has shell code, that is unexpectedjolly-midnight-72759
10/12/2020, 6:42 PM__main__.py
in the built pex.fast-nail-55400
10/12/2020, 6:48 PMjolly-midnight-72759
10/12/2020, 6:48 PMsphinx
example and the __main__.py
contains nothing but python in that pex.jolly-midnight-72759
10/12/2020, 6:49 PMfast-nail-55400
10/12/2020, 6:49 PMjolly-midnight-72759
10/12/2020, 6:52 PMjolly-midnight-72759
10/12/2020, 6:52 PMjolly-midnight-72759
10/12/2020, 6:53 PM-p /Users/myacct/.pyenv/shims/python
which is a bash script python shim.jolly-midnight-72759
10/12/2020, 6:54 PMjolly-midnight-72759
10/12/2020, 6:54 PMfast-nail-55400
10/12/2020, 6:55 PM-p
that have a shebang line that is not pythonjolly-midnight-72759
10/12/2020, 6:55 PMpex
should error out on? If yes, I'll make an issue.fast-nail-55400
10/12/2020, 6:56 PMjolly-midnight-72759
10/12/2020, 6:56 PMjolly-midnight-72759
10/12/2020, 7:03 PMenough-analyst-54434
10/12/2020, 11:47 PM-p
!= --python
enough-analyst-54434
10/12/2020, 11:49 PM--help
docs are clear.jolly-midnight-72759
10/13/2020, 12:06 AM