Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12: 'FileFinder' object has no attribute 'find_module' #535

Open
akorosov opened this issue Dec 12, 2023 · 0 comments
Open

Python 3.12: 'FileFinder' object has no attribute 'find_module' #535

akorosov opened this issue Dec 12, 2023 · 0 comments

Comments

@akorosov
Copy link
Member

Nansat fails on newest Python:

Python 3.12.0 | packaged by conda-forge | (main, Oct 3 2023, 08:43:22) [GCC 12.3.0] on linux

   n_inp = Nansat(ifile)


            ^^^^^^^^^^^^^

  File "/Home/antonk/py/nansat/nansat/nansat.py", line 159, in __init__

    self.vrt = self._get_mapper(mapper, **kwargs)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Home/antonk/py/nansat/nansat/nansat.py", line 1118, in _get_mapper

    nansatMappers = _import_mappers()

                    ^^^^^^^^^^^^^^^^^

  File "/Home/antonk/py/nansat/nansat/nansat.py", line 1611, in _import_mappers

    loader = finder.find_module(name)

             ^^^^^^^^^^^^^^^^^^

AttributeError: 'FileFinder' object has no attribute 'find_module'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant