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

cavity2d.py NotImplementedError: CopyRange not supported #30

Closed
jiaweiye2017 opened this issue Dec 18, 2023 · 4 comments
Closed

cavity2d.py NotImplementedError: CopyRange not supported #30

jiaweiye2017 opened this issue Dec 18, 2023 · 4 comments

Comments

@jiaweiye2017
Copy link

please tell how to fix it,thanks in advance

Traceback (most recent call last):
File "e:\code\jupyter\XLB\setup.py", line 99, in
sim.run(5000)
File "e:\code\jupyter\XLB\src\base.py", line 928, in run
self.mngr.save(timestep, state)
File "D:\SomeApps\Miniconda3\envs\python39\lib\site-packages\orbax\checkpoint\checkpoint_manager.py", line 515, in save
self._checkpointers[k].save(item_dir, item, **kwargs)
File "D:\SomeApps\Miniconda3\envs\python39\lib\site-packages\orbax\checkpoint\checkpointer.py", line 150, in save
self._handler.finalize(tmpdir)
File "D:\SomeApps\Miniconda3\envs\python39\lib\site-packages\orbax\checkpoint\pytree_checkpoint_handler.py", line 1411, in finalize
type_handlers.merge_ocdbt_per_process_files(directory)
File "D:\SomeApps\Miniconda3\envs\python39\lib\site-packages\orbax\checkpoint\type_handlers.py", line 744, in merge_ocdbt_per_process_files
asyncio.run(open_and_copy())
File "D:\SomeApps\Miniconda3\envs\python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "D:\SomeApps\Miniconda3\envs\python39\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "D:\SomeApps\Miniconda3\envs\python39\lib\site-packages\orbax\checkpoint\type_handlers.py", line 742, in open_and_copy
await asyncio.gather(*copy_ops)
File "D:\SomeApps\Miniconda3\envs\python39\lib\asyncio\tasks.py", line 688, in _wrap_awaitable
return (yield from awaitable.await())
NotImplementedError: CopyRange not supported

@jiaweiye2017 jiaweiye2017 changed the title cavity2d.py rasie NotImplementedError: CopyRange not supported cavity2d.py NotImplementedError: CopyRange not supported Dec 18, 2023
@mehdiataei
Copy link
Contributor

Hello @jiaweiye2017 I think the issue is that you have installed Orbax, not "orbax-checkpoint" library.

@jiaweiye2017
Copy link
Author

jiaweiye2017 commented Dec 18, 2023

Thanks for your reply. I checked that I had installed both "orbax-checkpoint" and "orbax" library, but cavity2d.py didnot work.
but i found that cylinder2d.py and couette2d.py can run.

@mehdiataei
Copy link
Contributor

Please remove orbax and only keep orbax-checkpoint. I cannot reproduce this error.

@jiaweiye2017
Copy link
Author

thanks,it works

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