Skip to content

ogr doesn't work with pyforgejo 2.0.5 #945

@nforro

Description

@nforro

What happened? What is the problem?

$ pip freeze | grep -e ogr= -e pyforgejo=
ogr==0.56.1
pyforgejo==2.0.5

$ python -c "import ogr"
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import ogr
  File "/tmp/pok/lib/python3.13/site-packages/ogr/__init__.py", line 11, in <module>
    from ogr.abstract import AuthMethod
  File "/tmp/pok/lib/python3.13/site-packages/ogr/abstract/__init__.py", line 4, in <module>
    from ogr.abstract.abstract_class import OgrAbstractClass
  File "/tmp/pok/lib/python3.13/site-packages/ogr/abstract/abstract_class.py", line 4, in <module>
    from ogr.abstract.exception import CatchCommonErrors
  File "/tmp/pok/lib/python3.13/site-packages/ogr/abstract/exception.py", line 42, in <module>
    pyforgejo.core.api_error.ApiError,  # type: ignore
    ^^^^^^^^^^^^^^
  File "/tmp/pok/lib/python3.13/site-packages/pyforgejo/__init__.py", line 543, in __getattr__
    raise AttributeError(
        f"No {attr_name} found in _dynamic_imports for module name -> {__name__}"
    )
AttributeError: No core found in _dynamic_imports for module name -> pyforgejo

What did you expect to happen?

No response

Example URL(s)

No response

Steps to reproduce

1.
2.
3.

Workaround

  • There is an existing workaround that can be used until this issue is fixed.

Participation

  • I am willing to submit a pull request for this issue. (Packit team is happy to help!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugAn unexpected problem or behavior

    Type

    No type

    Projects

    Status

    in-review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions