Ask Your Question
0

There may have been an issue running Python file

asked 2024-11-08 12:41:28 -0500

anonymous user

Anonymous

When I am trying to run python file this error is appearing. Please anyone who can help me out?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2024-11-10 16:11:33 -0500

Tassie Dave gravatar image

updated 2024-11-13 18:27:08 -0500

You mentioned that Pythion in not installed on your laptop. Normally when you install PSSE it offers you the option to install Python at the same time. I would recommend that approach. It normally installs here: C:\Program Files (x86)\PTI\PSSE34

Once it is installed, you have two options:

  • Run from within PSSE (simpler)
  • Run from outside PSSE, using a you own Python IDE (more functionality, better development environment).

To test whether you have it installed correctly, you could try running the PSSE Environment Manger. This is written in Python, so if it runs you are OK. Or you could go to the I/O menu, record a PSSE command as a python scrip, then run your newly created script.

If you want to install Python separately, you could go to python.org and download it. Be aware that the python version you use depends on which PSSE version you are using; for PSSE 34, use Python 2.7 You would also need to install the PSSE's Python libraries (like psspy). I haven't tried, but they should be installable using "pip install psspy"

edit flag offensive delete link more

Comments

No, the Python is unavailable in my laptop. is this the reason that I could not run my scripts?

junaid2657@gmail.com gravatar imagejunaid2657@gmail.com ( 2024-11-12 02:14:55 -0500 )edit

No Python installed and you want to run a Python script!!!

perolofl gravatar imageperolofl ( 2024-11-13 17:08:59 -0500 )edit

In PSSE 34, you can use later python versions. Eg launch GUI with this command
>"C:\Program Files (x86)\PTI\PSSE34\PSSBIN\psse34.exe" -pyver 37

or running from python, change the location PSS/E is loaded from:
PSSE_LOCATION = r"C:\Program Files (x86)\PTI\PSSE34\PSSPY37"

Alex P gravatar imageAlex P ( 2024-11-18 14:19:12 -0500 )edit
0

answered 2024-11-13 16:27:00 -0500

jconto gravatar image

If multiple version of python are installed, make sure the python script is compatible with the python version in use. If problem persist, re-install PSSe.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2024-11-08 12:41:28 -0500

Seen: 200 times

Last updated: Nov 13