Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pygolang pygolang
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • pygolangpygolang
  • Issues
  • #2

Closed
Open
Created May 05, 2025 by Carlos Ramos Carreño@vnmabusDeveloper

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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7