ogr
ogr copied to clipboard
ogr doesn't work with pyforgejo 2.0.5
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!)
I just came here to report this 😁
The cloning script seems to fail on this:
Run python clone_roles.py
Traceback (most recent call last):
File "/home/runner/work/agile/agile/clone_roles.py", line 6, in <module>
from ogr.abstract import IssueStatus, Issue
File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/ogr/__init__.py", line 11, in <module>
from ogr.abstract import AuthMethod
File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/ogr/abstract/__init__.py", line 4, in <module>
from ogr.abstract.abstract_class import OgrAbstractClass
File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/ogr/abstract/abstract_class.py", line 4, in <module>
from ogr.abstract.exception import CatchCommonErrors
File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/ogr/abstract/exception.py", line 42, in <module>
pyforgejo.core.api_error.ApiError, # type: ignore
^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/pyforgejo/__init__.py", line 543, in __getattr__
raise AttributeError(
AttributeError: No core found in _dynamic_imports for module name -> pyforgejo
Error: Process completed with exit code 1.
Yes, this was discovered last week. @mfocko opened a PR for this, which is currently blocked.