You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble running the TopOpt wrapper provided in this repository on my Mac. Following the installation instructions, I was able to generate the dynamic library file. While the documentation refers to it as 'topoptlib.so', on macOS, it generated a file named 'topoptlib.dylib' instead.
I have some questions regarding running the 'beam.py' example:
When you use the statement import topoptlib in Python, does this directly import 'topoptlib.dylib'?
Alternatively, was there supposed to be wrapper code generated, such as 'topoptlib.py', which might not have been created due to an error?
Upon executing python3 beam.py, I encountered the following error. What could be the reason behind this? Traceback (most recent call last): File "/Users/taniguchitomohiro/Documents/TO/petsc-3.14.1/TopOpt_in_PETSc_wrapped_in_Python/beam.py", line 133, in <module> main() File "/Users/taniguchitomohiro/Documents/TO/petsc-3.14.1/TopOpt_in_PETSc_wrapped_in_Python/beam.py", line 19, in main data = topoptlib.Data() AttributeError: module 'topoptlib' has no attribute 'Data'
For your reference, I have attached an image below that depicts the current directory structure.
I appreciate any guidance you can provide to help me resolve this issue. Thank you!
The text was updated successfully, but these errors were encountered:
Hello,
I'm having trouble running the TopOpt wrapper provided in this repository on my Mac. Following the installation instructions, I was able to generate the dynamic library file. While the documentation refers to it as 'topoptlib.so', on macOS, it generated a file named 'topoptlib.dylib' instead.
I have some questions regarding running the 'beam.py' example:
import topoptlib
in Python, does this directly import 'topoptlib.dylib'?Traceback (most recent call last): File "/Users/taniguchitomohiro/Documents/TO/petsc-3.14.1/TopOpt_in_PETSc_wrapped_in_Python/beam.py", line 133, in <module> main() File "/Users/taniguchitomohiro/Documents/TO/petsc-3.14.1/TopOpt_in_PETSc_wrapped_in_Python/beam.py", line 19, in main data = topoptlib.Data() AttributeError: module 'topoptlib' has no attribute 'Data'
For your reference, I have attached an image below that depicts the current directory structure.
I appreciate any guidance you can provide to help me resolve this issue. Thank you!
The text was updated successfully, but these errors were encountered: