Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Jose, I am trying to use the MPjobs tool to run parallel simulations. I downloaded the latest version, followed the instructions to change the PSSE path, and tried to run 1D or 2D scenarios, but I'm getting this error.

I'm using the command mpjobs35 inis\cmld_3d

I get the error: Traceback (most recent call last): File "C:\Users\jsm20\Documents\code\Python\mpjobs.py", line 58, in <module> AttributeError: module 'JCtools' has no attribute 'pyver'

Could you please help me with this? Thank you.

Hi Jose, I am trying to use the MPjobs tool to run parallel simulations. I downloaded the latest version, followed the instructions to change the PSSE path, and tried to run 1D or 2D scenarios, but I'm getting this error.

I'm using the command mpjobs35 inis\cmld_3d

I get the error: Traceback (most recent call last): File "C:\Users\jsm20\Documents\code\Python\mpjobs.py", line 58, in <module> AttributeError: module 'JCtools' has no attribute 'pyver'

Could you please help me ```````````````````````````````````````````

Update after trying the the latest version:

Now, I can see the compiled python file in MPjobs folders (mpjobs_p39x64.pyc), but I still can't run MPjobs. I am using PSSE 35.6 with this? Thank you.

python 3.9.12.

I tried both methods of using INI file to run simulation with mpjobs35 (it doesn't do anything) and mpjobs35 inis\mpjobs. Whe mtype in ini file is MPP, it gives an error When mtype in ini file is MPAA, it runs the code and loops through 8 scenarios, but it doesn't actually load the psspy to run the situation, so no logs or out files are generated.

running with mtype=MPAA

D:\SimulationCoding\CoSim\PSSE\parallelpsse\MPjobsParallellatest\MPjobsjconto_20240704>mpjobs35 inis\mpjobs inis\mpjobs.ini

```````````````````````````````````````````

                   MPjobs                  v.20230809
       python parallel processing engine

Copyright - Jos‚ Conto, Jan. 2015 - All rights reserved

```````````````````````````````````````````

processing MPAA run 1, P1faultsSB1b152 inis\mpjobs.ini 0 processing MPAA run 2, P1faultsSB1b153 0 processing MPAA run 3, P1faultsSB2b154 0 processing MPAA run 4, P1faultsSB2b205 0 processing MPAA run 5, P1faultsSB3b201 0 processing MPAA run 6, P1faultsSB3b204 0 processing MPAA run 7, P1faultsSB3b205 0 processing MPAA run 8, P1faultsSB4b202 0

--- mpjobs [MPAA] finished in 8.11 seconds ---

```````````````````````````````````````````

Here running with mtype = MPP

D:\SimulationCoding\CoSim\PSSE\parallelpsse\MPjobsParallellatest\MPjobsjconto_20240704>mpjobs35 inis\mpjobs inis\mpjobs.ini

```````````````````````````````````````````

                   MPjobs                  v.20230809
       python parallel processing engine

Copyright - Jos‚ Conto, Jan. 2015 - All rights reserved

```````````````````````````````````````````

Processing MPP group 0

Processing MPP group 1 inis\mpjobs.ini inis\mpjobs.ini 0 Process Process-1: Traceback (most recent call last): File "C:\Users\msarwar\AppData\Local\Programs\Python\Python39\lib\multiprocessing\process.py", line 315, in bootstrap self.run() File "C:\Users\msarwar\AppData\Local\Programs\Python\Python39\lib\multiprocessing\process.py", line 108, in run self.target(self._args, *self.kwargs) File "C:\Users\jsm20\Documents\code\Python\mpjobs.py", line 116, in runmpp File "<string>", line 30, in <module> File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'psse35' Traceback (most recent call last): File "C:\Users\jsm20\Documents\code\Python\mpjobs.py", line 284, in <module> File "C:\Users\jsm20\Documents\code\Python\mpjobs.py", line 221, in main File "C:\Users\msarwar\AppData\Local\Programs\Python\Python39\lib\multiprocessing\queues.py", line 103, in get res = self.recvbytes() File "C:\Users\msarwar\AppData\Local\Programs\Python\Python39\lib\multiprocessing\connection.py", line 221, in recvbytes buf = self.recvbytes(maxlength) File "C:\Users\msarwar\AppData\Local\Programs\Python\Python39\lib\multiprocessing\connection.py", line 310, in _recvbytes waitres = winapi.WaitForMultipleObjects( KeyboardInterrupt Process Process-2: Traceback (most recent call last): File "C:\Users\msarwar\AppData\Local\Programs\Python\Python39\lib\multiprocessing\process.py", line 315, in _bootstrap self.run() File "C:\Users\msarwar\AppData\Local\Programs\Python\Python39\lib\multiprocessing\process.py", line 108, in run self.target(self._args, *self.kwargs) File "C:\Users\jsm20\Documents\code\Python\mpjobs.py", line 114, in runmpp KeyboardInterrupt ^CTerminate batch job (Y/N)? y

```````````````````````````````````````````

I can see absolute files paths in the error, so maybe there's a problem with .pyc file.

Also, I have tried single-run by editing rundynX.py file but it doesn't work too. Apparently, it can't read .ini file using JCTools functions as My dict is not updated.

D:\SimulationCoding\CoSim\PSSE\parallelpsse\MPjobsParallellatest\MPjobsjconto20240704>python SCRIPTs\dynrunX.py running cmld.ini error code: 1 Herefirst 3.9.12 (tags/v3.9.12:b28265d, Mar 23 2022, 23:52:46) [MSC v.1929 64 bit (AMD64)] {'PYVER': 39, 'DEBUG': 1, 'PSSEVERSION': 35, 'XVAR': 'SB1b152.idv'} 39 Traceback (most recent call last): File "D:\SimulationCoding\CoSim\PSSE\parallelpsse\MPjobsParallellatest\MPjobsjconto20240704\SCRIPTs\dynrunX.py", line 38, in <module> print(My['STUDYNAME']) KeyError: 'STUDYNAME'

```````````````````````````````````````````