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

Lightning MacOS Py37 #125

Closed
ndem0 opened this issue Jun 20, 2023 · 1 comment
Closed

Lightning MacOS Py37 #125

ndem0 opened this issue Jun 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ndem0
Copy link
Member

ndem0 commented Jun 20, 2023

Describe the bug
There is a bug on the Lightning using MacOS with Python3.7

To Reproduce
Run the pytest

Output

ImportError while importing test module '/Users/runner/work/PINA/PINA/tests/test_cartesian.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../hostedtoolcache/Python/3.7.[17](https://github.com/mathLab/PINA/actions/runs/5322584162/jobs/9639232481?pr=118#step:5:18)/x64/lib/python3.7/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_cartesian.py:4: in <module>
    from pina import LabelTensor, Condition, CartesianDomain, PINN
pina/__init__.py:13: in <module>
    from .pinn import PINN
pina/pinn.py:10: in <module>
    from .solver import SolverInterface
pina/solver.py:5: in <module>
    import lightning.pytorch as pl
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/__init__.py:32: in <module>
    from lightning.app import storage  # noqa: E402
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/__init__.py:25: in <module>
    from lightning.app import components  # noqa: E402, F401
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/components/__init__.py:1: in <module>
    from lightning.app.components.database.client import DatabaseClient
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/components/database/__init__.py:2: in <module>
    from lightning.app.components.database.server import Database
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/components/database/server.py:29: in <module>
    from lightning.app.core.work import LightningWork
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/core/__init__.py:1: in <module>
    from lightning.app.core.app import LightningApp
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/core/app.py:40: in <module>
    from lightning.app.core.work import LightningWork
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/core/work.py:25: in <module>
    from lightning.app.storage import Path
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/storage/__init__.py:1: in <module>
    from lightning.app.storage.drive import Drive  # noqa: F401
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/storage/drive.py:23: in <module>
    from lightning.app.storage.path import _filesystem, _shared_storage_path, LocalFileSystem
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightning/app/storage/path.py:23: in <module>
    from fsspec import AbstractFileSystem
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/fsspec/__init__.py:12: in <module>
    from .compression import available_compressions
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/fsspec/compression.py:2: in <module>
    from bz2 import BZ2File
../../../hostedtoolcache/Python/3.7.17/x64/lib/python3.7/bz2.py:[19](https://github.com/mathLab/PINA/actions/runs/5322584162/jobs/9639232481?pr=118#step:5:20): in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
E   ModuleNotFoundError: No module named '_bz2'
@ndem0 ndem0 added the bug Something isn't working label Jun 20, 2023
@dario-coscia
Copy link
Collaborator

@ndem0 it seams to be fixed by using pydantic==1.10.11 . Look at #152 tests as example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants