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

Migrate dependencies to importlib.resources #39

Open
paulmueller opened this issue Dec 16, 2024 · 0 comments
Open

Migrate dependencies to importlib.resources #39

paulmueller opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers refactoring

Comments

@paulmueller
Copy link
Member

paulmueller commented Dec 16, 2024

Currently, if no setuptools is installed, PyJibe will fail to install, due to AFM-analysis/afmformats#26

ImportError while importing test module '/home/paul/repos-work/AFM/PyJibe/tests/test_head_update.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_head_update.py:5: in <module>
    from pyjibe.head import update
pyjibe/head/__init__.py:1: in <module>
    from .main import PyJibe  # noqa: F401
pyjibe/head/main.py:16: in <module>
    import afmformats
../afmformats/afmformats/__init__.py:3: in <module>
    from .afm_group import AFMGroup
../afmformats/afmformats/afm_group.py:4: in <module>
    from .formats import load_data
../afmformats/afmformats/formats/__init__.py:7: in <module>
    from .fmt_jpk import (
../afmformats/afmformats/formats/fmt_jpk/__init__.py:7: in <module>
    from .jpk_reader import JPKReader
../afmformats/afmformats/formats/fmt_jpk/jpk_reader.py:12: in <module>
    from . import jpk_data, jpk_meta
../afmformats/afmformats/formats/fmt_jpk/jpk_meta.py:3: in <module>
    from pkg_resources import resource_filename
E   ModuleNotFoundError: No module named 'pkg_resources'
@paulmueller paulmueller added the bug Something isn't working label Dec 16, 2024
@paulmueller paulmueller pinned this issue Dec 16, 2024
@paulmueller paulmueller transferred this issue from AFM-analysis/afmformats Dec 16, 2024
@paulmueller paulmueller pinned this issue Dec 16, 2024
@paulmueller paulmueller changed the title Migrate dependenvies to importlib.resources Migrate dependencies to importlib.resources Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers refactoring
Projects
None yet
Development

No branches or pull requests

1 participant