neuraloperator / Geo-FNO

Geometry-Aware Fourier Neural Operator (Geo-FNO)
MIT License
174 stars 46 forks source link

ModuleNotFoundError: No module named 'utilities3' #7

Open lilux618 opened 1 year ago

lilux618 commented 1 year ago

root@90f5577d61db:/workspace/Geo-FNO/airfoils# python3 naca_geofno.py Traceback (most recent call last): File "/workspace/Geo-FNO/airfoils/naca_geofno.py", line 8, in from utilities3 import * ModuleNotFoundError: No module named 'utilities3'

What's wrong with me?

MaxGhi8 commented 1 year ago

Hello, maybe try to download the file utilities3.py file (found in the main neuraloperator/Geo-FNO folder) and put it in your working directory. Let me now if this solve the issue.

samuelgneff commented 1 year ago

@lilux618 I added a setup.py file and did some minor restructuring to avoid any relative imports and moving of files. That way utilities3 is in its own module and available throughout the project.

I think it would make sense to add a setup.py file and a requirements.txt. The readme says the project only depends on pytorch >=1.8.0, but there are a number of other required packages to install if you want to run the code.

coffecdog commented 2 months ago

(wm_test) star@star-ESC8000A-E11:/mnt/18t/wm/Geo-FNO/elasticity$ python elas_geofno.py Traceback (most recent call last): File "/mnt/18t/wm/Geo-FNO/elasticity/elas_geofno.py", line 8, in from utilities3 import * ModuleNotFoundError: No module named 'utilities3' (wm_test) star@star-ESC8000A-E11:/mnt/18t/wm/Geo-FNO/elasticity$

Brother, I also appeared this mistake, how to solve it. for help