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

About the Poisson example #4

Open
eqfwrg424535 opened this issue Oct 31, 2024 · 2 comments
Open

About the Poisson example #4

eqfwrg424535 opened this issue Oct 31, 2024 · 2 comments

Comments

@eqfwrg424535
Copy link

Hello,

I am a Postdoc working in China University of Geoscience. I am interested in your work on the new algorithm for forward and inverse PDEs. And when I was testing the Poisson example, the following errors turned up. I have no idea how to fix them, could you please help me with that? Appreciate a lot.

ModuleNotFoundError Traceback (most recent call last)
D:\Anaconda3\lib\site-packages\odil\runtime.py in ()
36 try:
---> 37 import jax
38 backend_name = 'jax'

ModuleNotFoundError: No module named 'jax'

During handling of the above exception, another exception occurred:

NameError Traceback (most recent call last)
in ()
322
323 if name == "main":
--> 324 main()

in main()
310 def main():
311 args = parse_args()
--> 312 odil.setup_outdir(args)
313 problem, state = make_problem(args)
314 callback = odil.make_callback(problem,

D:\Anaconda3\lib\site-packages\odil\util.py in setup_outdir(args, relpath_args)
347 '''
348 from . import runtime
--> 349 mod = runtime.mod
350 outdir = args.outdir
351 os.makedirs(outdir, exist_ok=True)

D:\Anaconda3\lib\importlib\util.py in getattribute(self, attr)
243 elif id(attrs_now[key]) != id(attrs_then[key]):
244 attrs_updated[key] = value
--> 245 self.spec.loader.exec_module(self)
246 # If exec_module() was used directly there is no guarantee the module
247 # object was put into sys.modules.

D:\Anaconda3\lib\importlib_bootstrap_external.py in exec_module(self, module)

D:\Anaconda3\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)

D:\Anaconda3\lib\site-packages\odil\runtime.py in ()
40 sys.stderr.write(
41 f"Cannot select a default backend. Tried: tensorflow, jax\n")
---> 42 exit(1)
43
44 if backend_name == 'tf':

NameError: name 'exit' is not defined

@pkarnakov
Copy link
Collaborator

You need to install jax or tensorflow. Do you have any of those?

@eqfwrg424535
Copy link
Author

eqfwrg424535 commented Nov 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants