Skip to content

🐛[BUG]: Import error: No module named 'physicsnemo.sym' after pip install the module #282

@ShawnLiaoyx

Description

@ShawnLiaoyx

Version

2.3.0

On which installation method(s) does this occur?

Pip

Describe the issue

Tried to run some examples under physicsnemo/examples/cfd/swe_nonlinear_pino that imports physicsnemo.sym. Program reported "Import error: No module named 'physicsnemo.sym'" even after installing the sym module.

The whole process:

  1. git clone physicsnemo
  2. under the root folder: uv sync
  3. also under the root folder:
uv pip install torch torchvision
uv pip install Cython
uv pip install nvidia-physicsnemo-sym --no-build-isolation
  1. installtion succeeded. uv pip show nvidia-physicsnemo-sym reports version number normally
  2. run an example: uv run python examples/cfd/swe_nonlinear_pino/train_swe_nl_pino.py. Program aborted with following message:
Warp DeprecationWarning: The namespace `warp.context` will soon be removed from the public API. It can still be accessed from `warp._src.context` but might be changed or removed without notice.
Warp DeprecationWarning: The symbol `warp.context.Device` will soon be removed from the public API. Use `warp.Device` instead.
Traceback (most recent call last):
  File "/home/MY_USER_NAME/physicsnemo/examples/cfd/swe_nonlinear_pino/train_swe_nl_pino.py", line 33, in <module>
    from swe_nl_pde import SWE_NL
  File "/home/MY_USER_NAME/physicsnemo/examples/cfd/swe_nonlinear_pino/swe_nl_pde.py", line 17, in <module>
    from physicsnemo.sym.eq.pde import PDE
ModuleNotFoundError: No module named 'physicsnemo.sym'

### Minimum reproducible example

```shell
As described in the description.

Relevant log output

Environment details

running on WSL-Ubuntu (24.04 LTS). CUDA Toolkit version: 12.8.0

Other/Misc.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ? - Needs TriageNeed team to review and classifybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions