NameError: 'metadata' is not defined when running any example in R2D (Windows) #362
Unanswered
zhengyanghou2000-netizen
asked this question in
R2D
Replies: 1 comment 1 reply
-
|
My R2D version is 5.5.1 (Windows) , the E3 example data is downloaded from design-safe and also from the example block in the menu. Thanks for your time |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello developers,
I encountered a persistent issue when running R2D (Windows version). No matter which example I choose (E3PhysicsBasedGroundMotions, E2MDOFBuildingResponse, or my own case), the backend Python process always fails with the same error. Here is the relevant output from the R2D log of E3Physics-based Ground Motions:
16:58:27 - Running backend (python script) in the background. This may take a while.
16:58:28 - Traceback (most recent call last): File "D:\R2D\R2D_Windows_Download\applications\Workflow\rWHALE.py", line 57, in 16:58:28 - import whale.main as whale File "D:\R2D\R2D_Windows_Download\applications\Workflow\whale\main.py", line 85, in installed_pkgs = {dist.metadata['Name'].lower() for dist in metadata.distributions()} NameError: name 'metadata' is not defined
16:58:28 - There was an error in the python process backend, the exit code is 1
The failure occurs during startup of the Python backend for any workflow.
It seems that the variable or module metadata is not defined in whale/main.py.
My questions:
What is the expected metadata here?
Is it supposed to be imported from import importlib.metadata as metadata or from another source?
Any guidance would be greatly appreciated.
Thank you for your work on R2D!
Beta Was this translation helpful? Give feedback.
All reactions