First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code: import os import sys syspathPSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27' #or where else you find the psspy.pyc sys.path.append(syspathPSSE) ospathPSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN' # or where else you find the psse.exe os.environ['PATH'] += ';' + ospathPSSE os.environ['PATH'] += ';' + syspathPSSE import psspy
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.
2 | No.2 Revision |
Hello everyone,
My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here.
This is my code:
code:
import os import sys syspathPSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27' #or where else you find the psspy.pyc sys.path.append(syspathPSSE) ospathPSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN' # or where else you find the psse.exe os.environ['PATH'] += ';' + ospathPSSE os.environ['PATH'] += ';' + syspathPSSE import psspy
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.
3 | No.3 Revision |
Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code:
import os
os
import sys
sys
syspathPSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27' #or where else you find the psspy.pyc
psspy.pyc
sys.path.append(syspathPSSE)
PSSE)
ospathPSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN' # or where else you find the psse.exe
psse.exe
os.environ['PATH'] += ';' + ospathPSSE
PSSE
os.environ['PATH'] += ';' + syspathPSSE
PSSE
import psspy
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.
4 | No.4 Revision |
Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code:
import os
import sys
syspathPSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27' #or where else you find the psspy.pyc
sys.path.append(syspathPSSE)
ospathPSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN' # or where else you find the psse.exe
os.environ['PATH'] += ';' + ospathPSSE
os.environ['PATH'] += ';' + syspathPSSE
import psspy
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.
5 | No.5 Revision |
Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code:
import os
import sys
syspathsys _ path _ PSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27' #or where else you find the psspy.pyc
sys.path.append(syspathPSSE)
osos path PSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN' # or where else you find the psse.exe
os.environ['PATH'] += ';' + ospathPSSE
os.environ['PATH'] += ';' + syspathPSSE
import psspy
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.
6 | No.6 Revision |
Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code:
import os
import sys
sys _ path _ PSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27' #or where else you find the psspy.pyc
sys.path.append(syspathPSSE)
os path _ path _ PSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN' # or where else you find the psse.exe
os.environ['PATH'] += ';' + ospathPSSE
os.environ['PATH'] += ';' + syspathPSSE
import psspy
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.
7 | No.7 Revision |
Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code:
import os
import sys
sys _ path _ PSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27' #or where else you find the psspy.pyc
sys.path.append(syspathPSSE)
os _ path _ PSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN' # or where else you find the psse.exe
os.environ['PATH'] += ';' + ospathos _ path _ PSSE
os.environ['PATH'] += ';' + syspathsys _ path _ PSSE
import psspy
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.
8 | No.8 Revision |
Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code:
import os
import sys
sys _ path _ PSSE=r'C:/Program Files (x86)/PTI/PSSE34/PSSPY27' #or where else you find the psspy.pyc
sys.path.append(syspathPSSE)
os _ path _ PSSE=r' C:/Program Files (x86)/PTI/PSSE34/PSSBIN' # or where else you find the psse.exe
os.environ['PATH'] += ';' + os _ path _ PSSE
os.environ['PATH'] += ';' + sys _ path _ PSSE
import psspy
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.
9 | No.9 Revision |
Hello everyone, My python version is 3.4.0, PSSE version is 34, I look all of the forum article but questions still here. This is my code:
import import sys
sys _ path _ PSSE=r'C:/Program
sys.path.append(syspathPSSE)
os _ path _ PSSE=r'
REEOR:ImportError: bad magic number in 'psspy': b'\x03\xf3\r\n'
Paths of PSSE and psspy are right, version of python and psspy correspond, I can't figure out why this happended.