Issues in Running the OpenMOC Code

0 views
Skip to first unread message

Iqrar Hussain

unread,
Dec 16, 2025, 2:06:12 AM (3 days ago) Dec 16
to OpenMOC Users Group
Hello, Good Morning dear Developer of the code!
I have installed the OpenMOC, but by running the test problems already available in the "tests" folder inside OpenMOC file, I am getting the error "python3 test_1d_gradient/test_1d_gradient.py
Traceback (most recent call last):
  File "/home/iqrar/OpenMOC/tests/test_1d_gradient/test_1d_gradient.py", line 8, in <module>
    from testing_harness import TestHarness
ModuleNotFoundError: No module named 'testing_harness'", but, actually testing_harness.py file is available inside "tests" folder. Similarly, when this issue is resolved then it shows some other missing, but, actually which is also available inside "tests" folder. 
Therefore it is requested your honor to help me in this basic issue (as i am the beginner), so that i may be able to run the already available test problems and move forward further in my work. Thanks!
Regards,
Iqrar Hussain.

Guillaume Giudicelli

unread,
Dec 16, 2025, 3:58:30 AM (3 days ago) Dec 16
to Iqrar Hussain, OpenMOC Users Group
Hello

It could be that exporting the path to openmoc/Python or openmoc/OpenMOC to the PYTHONPATH is enough to fix these import issues. 

You can append to that environment variable using « export » on unix 

Le 16 déc. 2025 à 08:06, Iqrar Hussain <kustm...@gmail.com> a écrit :

Hello, Good Morning dear Developer of the code!
--
You received this message because you are subscribed to the Google Groups "OpenMOC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmoc-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openmoc-users/d9b37d15-2b52-4986-bd1e-519a6e4f1abfn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages