mpslib icon indicating copy to clipboard operation
mpslib copied to clipboard

"The program mps_genesim does not exist"

Open JamesEBall opened this issue 5 years ago • 7 comments

Hi,

I am trying to run this program but I am getting the following error.


Exception Traceback (most recent call last) in 1 # Run MPSlib ----> 2 O.run() 3 4 5 # Plot the results

/usr/local/lib/python3.8/site-packages/mpslib/mpslib.py in run(self, normal_msg, silent, thread) 493 if exe_path is None: 494 s = 'mpslib: The program {} does not exist or is not executable.'.format(exe_file) --> 495 raise Exception(s) 496 return -1 497 else:

Exception: mpslib: The program mps_genesim does not exist or is not executable.

JamesEBall avatar Nov 03 '20 14:11 JamesEBall

你好,请问现在解决了吗,我也碰到了同样的问题。

Ahmelie avatar Oct 09 '21 11:10 Ahmelie

I am having the same error while running the Colab example. I thought that maybe it is some environment and Path problem with Colab - but even when forcing the mpslib.py methods to search inside content/mpslib folder I get this error. Could you please share more on the error so we can troubleshoot our issue?

gstvschlz avatar Feb 21 '22 23:02 gstvschlz

There was an issue with the python package. Also, the google colab example has been updated, please try again and let me know if it works.

cultpenguin avatar Mar 31 '22 20:03 cultpenguin

Hi Gustavo. I updated the pypi scikit-mps package as well as the colab notebook example. pleas try again

https://colab.research.google.com/github/ergosimulation/mpslib/blob/master/scikit-mps/examples/mpslib_in_google_colab.ipynb

  • Thomas '

On Tue, 22 Feb 2022 at 00:59, Gustavo P. Scholze @.***> wrote:

I am having the same error while running the Colab example https://colab.research.google.com/github/ergosimulation/mpslib/blob/master/scikit-mps/examples/mpslib_in_google_colab.ipynb. I thought that maybe it is some environment and Path problem with Colab - but even when forcing the mpslib.py methods to search inside content/mpslib folder I get this error. Could you please share more on the error so we can troubleshoot our issue?

— Reply to this email directly, view it on GitHub https://github.com/ergosimulation/mpslib/issues/14#issuecomment-1047306513, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFBSZV556KWXBWCWGBYC5TU4LGWVANCNFSM4TI2ALLQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

ergosimulation avatar Mar 31 '22 20:03 ergosimulation

Yes, the Colab notebook is working as expected, thank you for your time!

gstvschlz avatar Apr 01 '22 00:04 gstvschlz

Hi, I have got the same issue. It woked fine with the previous version and then this happened after I updated to the latest mpslib-1.5. Coudl anyone help on how to fix this?

Thanks.

O.run() ################################################################

mpslib: mps_genesim not found !!!! PLEASE ADD THE MPSLIB PROGRAM TO THE SYSTEM PATH OR ADD THE LOCATION OF THE MPSLIB PROGRAMS TO THE SYSTEM PATH

#################################################################

Exception Traceback (most recent call last) /tmp/ipykernel_5189/40755670.py in ----> 1 O.run()

~/anaconda3/lib/python3.9/site-packages/mpslib/mpslib.py in run(self, normal_msg, silent, thread) 583 if exe_path is None: 584 s = 'mpslib: The program {} does not exist or is not executable.'.format(exe_file) --> 585 raise Exception(s) 586 return -1 587 else:

Exception: mpslib: The program mps_genesim does not exist or is not executable.

Miorat avatar May 12 '22 18:05 Miorat

Do you still have this issue Are you getting the error if you run your python code outside the mpslib source folder?

cultpenguin avatar Jan 10 '23 10:01 cultpenguin