gpython does not support executing packages?
The Python interpreter is able to execute packages that have a __main__.py
file. However, I do not think that GPython has this capability. This is causing me problems when trying to install a package using pip
as it calls the Python executable passing as the first argument the pip directory name.
For example:
python -m pip install line_profiler
Gives me the following error:
Collecting line_profiler
Using cached https://files.pythonhosted.org/packages/a7/8e/3b5d52dd5dee982bb183cd494886398ff919a9216ca6a6a50004ea28ed50/line_profiler-3.5.1.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: .../bin/python .../.local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /srv/slapgrid/slappart66/tmp/pip-build-env-QGTWrz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=41.0.1' wheel Cython 'scikit-build>=0.9.0' cmake ninja
cwd: None
Complete output (10 lines):
Traceback (most recent call last):
File ".../bin/python", line 313, in <module>
pymain(sys.argv)
File ".../parts/pygolang/gpython/__init__.py", line 284, in pymain
run(mmain)
File ".../parts/pygolang/gpython/__init__.py", line 188, in run
_execfile(filepath, mmain.__dict__)
File ".../parts/pygolang/gpython/__init__.py", line 328, in _execfile
with open(path, "rb") as f:
IOError: [Errno 21] Is a directory: '.../.local/lib/python2.7/site-packages/pip'
----------------------------------------
ERROR: Command errored out with exit status 1: .../bin/python .../.local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /srv/slapgrid/slappart66/tmp/pip-build-env-QGTWrz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=41.0.1' wheel Cython 'scikit-build>=0.9.0' cmake ninja Check the logs for full command output.
(where I replaced the irrelevant parts of absolute paths with ...
).
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information