Skip to content

InCompatible with PyOxidizer  #1002

Description

@baneeishaque

See PyOxidizer Issue 69 : Stop requiring __file__ in Python packages

I am trying to use git-repo-updater with PyOxidizer.

    Finished dev [unoptimized + debuginfo] target(s) in 1m 29s
writing executable to C:\Lab\PyOxidizer\git-repo-updator\.\build\x86_64-pc-windows-msvc\debug\exe\git-repo-updator.exe
>>> from gitup.cli import run
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "gitup.cli", line 18, in <module>
  File "gitup.update", line 15, in <module>
  File "git", line 33, in <module>
  File "git", line 22, in _init_externals
NameError: name '__file__' is not defined
>>>

git-repo-updater uses GitPython package : git-repo-updater setup.py, git-repo-updater source file

Activity

  1. Byron commented on Apr 11, 2020

    @Byron
    Member

    Oh neat, PyOxidizer is a Rust program!

    Looking at the documentation, I believe it's possible to detect this case and avoid trying to use file.

    An update should be released in the next days.

  2. added this to the v3.1.1 - Bugfixes milestone on Apr 11, 2020
  3. added a commit that references this issue on Apr 28, 2025
    466ed9c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions