You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From version 0.1.0 of findlibs it uses union type expressions (only allowed from Python 3.10) but the package classifiers allow install on Python versions below 3.10 (3.6, 3.7 and 3.8 are explicitly tagged).
What are the steps to reproduce the bug?
With Pythono 3.9 try to install and use findlibs, it will install 0.1.0 version that is incompatible.
Version
0.1.0
Platform (OS and architecture)
Linux 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Relevant log output
[ERROR] TypeError: unsupported operand type(s) for|: 'type' and 'NoneType'
Traceback (most recent call last):
File "/var/lang/lib/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/var/lang/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/var/task/lambda_function.py", line 3, in<module>
import cfgrib
File "/opt/python/cfgrib/__init__.py", line 20, in<module>
from .cfmessage import COMPUTED_KEYS
File "/opt/python/cfgrib/cfmessage.py", line 29, in<module>
from . import abc, messages
File "/opt/python/cfgrib/messages.py", line 28, in<module>
import eccodes # type: ignore
File "/opt/python/eccodes/__init__.py", line 13, in<module>
from .eccodes import *# noqa
File "/opt/python/eccodes/eccodes.py", line 12, in<module>
from gribapi import (
File "/opt/python/gribapi/__init__.py", line 13, in<module>
from .gribapi import *# noqa
File "/opt/python/gribapi/gribapi.py", line 34, in<module>
from gribapi.errors import GribInternalError
File "/opt/python/gribapi/errors.py", line 16, in<module>
from .bindings import ENC, ffi, lib
File "/opt/python/gribapi/bindings.py", line 102, in<module>
library_path = find_binary_libs("eccodes")
File "/opt/python/gribapi/bindings.py", line 95, in find_binary_libs
import findlibs
File "/opt/python/findlibs/__init__.py", line 78, in<module>
lib_name: str, pkg_name: str, preload_deps: bool | None = None
Accompanying data
No response
Organisation
No response
The text was updated successfully, but these errors were encountered:
What happened?
From version
0.1.0
offindlibs
it uses union type expressions (only allowed from Python3.10
) but the package classifiers allow install on Python versions below3.10
(3.6
,3.7
and3.8
are explicitly tagged).What are the steps to reproduce the bug?
With Pythono
3.9
try to install and usefindlibs
, it will install0.1.0
version that is incompatible.Version
0.1.0
Platform (OS and architecture)
Linux 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Relevant log output
Accompanying data
No response
Organisation
No response
The text was updated successfully, but these errors were encountered: