ucl-bug/jwave

Installation error

Closed this issue · 3 comments

Hello, I encountered the same problem when installing jwave as when installing holab:
(testholab) omnisky@omnisky:~$ python
Python 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import jwave
Traceback (most recent call last):
File "", line 1, in
File "/home/omnisky/anaconda3/envs/testholab/lib/python3.10/site-packages/jwave/init.py", line 19, in
from jwave import acoustics as ac
File "/home/omnisky/anaconda3/envs/testholab/lib/python3.10/site-packages/jwave/acoustics/init.py", line 17, in
from .operators import *
File "/home/omnisky/anaconda3/envs/testholab/lib/python3.10/site-packages/jwave/acoustics/operators.py", line 23, in
from jwave.geometry import Medium
File "/home/omnisky/anaconda3/envs/testholab/lib/python3.10/site-packages/jwave/geometry.py", line 26, in
from plum import parametric, type_of
ImportError: cannot import name 'type_of' from 'plum' (/home/omnisky/anaconda3/envs/testholab/lib/python3.10/site-packages/plum/init.py)

Desktop (please complete the following information):

  • OS: [Ubuntu]
  • Version [16.04]

Plum<2.0 can avoid this error "ImportError: cannot import name 'type_of' from 'plum'", however this will conflict with jaxdf

Yes, I think I have messed up things when updating to the new plum. Will fix now, sorry for that!

This should be fixed in the latest release, but please let me know if you find any problem (feel free to reopen in case!), and sorry again for all the trouble!