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

import openmc.lib fails #26

Open
gridley opened this issue Apr 17, 2023 · 1 comment
Open

import openmc.lib fails #26

gridley opened this issue Apr 17, 2023 · 1 comment

Comments

@gridley
Copy link

gridley commented Apr 17, 2023

Built without OpenMP, pure single thread CPU execution.

>>> import openmc.lib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gavin/Code/openmc/openmc/lib/__init__.py", line 54, in <module>
    from .filter import *
  File "/home/gavin/Code/openmc/openmc/lib/filter.py", line 38, in <module>
    _dll.openmc_energyfunc_filter_set_data.restype = c_int
  File "/usr/lib/python3.10/ctypes/__init__.py", line 387, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.10/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/gavin/Code/openmc/openmc/lib/libopenmc.so: undefined symbol: openmc_energyfunc_filter_set_data.
Did you mean: 'openmc_energy_filter_set_bins'?

It's almost as if __cplusplus isn't defined in capi.h. Hm. Currently investigating.

@gridley
Copy link
Author

gridley commented Apr 17, 2023

OK, it's because some C API functions are commented out during the OpenMP conversion.

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

Successfully merging a pull request may close this issue.

1 participant