Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create User DLL can't work

Hello everyone, I'm new in learning user defined model. I'm trying to compile the DEMOEX by using "Create User DLL",but when I follow the PSSE environment manager user guide to run "psseenvmanager_w.pyw" here comes a problem.

Traceback (most recent call last): File "C:\Python27\Lib\site-packages\psseenvmanager\psseenvmanagerw.pyw", line 6, in <module> import commonem as comonpy ImportError: DLL load failed:The specified module could not be found.

I wondering if "common_em" is a package of python, when check my "pip list" there exist common(0.1.2),it is the same thing?

could anyone can help me fix it? Very apperciate!! My PSSE version is 34.6.1

Create User DLL can't work

Hello everyone, I'm new in learning user defined model. I'm trying to compile the DEMOEX by using "Create User DLL",but when I follow the PSSE environment manager user guide to run "psseenvmanager_w.pyw" here comes a problem.

Traceback (most recent call last): File "C:\Python27\Lib\site-packages\psseenvmanager\psseenvmanagerw.pyw", line 6, in <module> import commonem as comonpy ImportError: DLL load failed:The specified module could not be found.

I wondering if "common_em" is a package of python, when check my "pip list" there exist common(0.1.2),it is the same thing?

could anyone can help me fix it? Very apperciate!! My PSSE version is 34.6.1

Create User DLL can't work

Hello everyone, I'm new in learning user defined model. I'm trying to compile the DEMOEX by using "Create User DLL",but when I follow the PSSE environment manager user guide to run "psseenvmanager_w.pyw" here comes a problem.

Traceback (most recent call last): File "C:\Python27\Lib\site-packages\psseenvmanager\psseenvmanagerw.pyw", line 6, in <module> import commonem as comonpy ImportError: DLL load failed:The specified module could not be found.

I wondering if "common_em" is a package of python, when check my "pip list" there exist common(0.1.2),it is the same thing?

could anyone can help me fix it? Very apperciate!! My PSSE version is 34.6.1

import os import sys

PSSEPATH = r"C:\Program Files (x86)\PTI\PSSE34\PSSBIN" sys.path.append(PSSEPATH) os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_PATH import psspy

from psspy import _i from psspy import _f

psspy.psseinit(100000) psspy.case(r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw.sav""") psspy.fdns([0,0,0,1,1,0,99,0]) psspy.fdns([0,0,0,1,1,0,99,0]) psspy.cong(0) psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.ordr(0) psspy.fact() psspy.tysl(0) psspy.dyre_new([1,1,1,1],r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw.dyr""","","","")

----------load dll---------------------------------

workdir = os.getcwd() dllname= 'dsusr_34.dll' ierr = psspy.addmodellibrary(workdir + "\" + dllname) #load dll

---------------------------------------------------

psspy.chsb(0,1,[-1,-1,-1,1,4,0]) psspy.chsb(0,1,[-1,-1,-1,1,5,0]) psspy.chsb(0,1,[-1,-1,-1,1,13,0]) psspy.chsb(0,1,[-1,-1,-1,1,16,0]) psspy.strt_2([0,1],r"""C:\Users\EE106\Desktop\try.out""")

Messages for api ADDMODELLIBRARY Library not found (000301) "C:\Python27\Lib\site-packages\psseenvmanager\dsusr_34.dll"

Create User DLL can't work

Hello everyone, I'm new in learning user defined model. I'm trying to compile the DEMOEX by using "Create User DLL",but when I follow the PSSE environment manager user guide to run "psseenvmanager_w.pyw" here comes a problem.

Traceback (most recent call last): File "C:\Python27\Lib\site-packages\psseenvmanager\psseenvmanagerw.pyw", line 6, in <module> import commonem as comonpy ImportError: DLL load failed:The specified module could not be found.

I wondering if "common_em" is a package of python, when check my "pip list" there exist common(0.1.2),it is the same thing?

could anyone can help me fix it? Very apperciate!! My PSSE version is 34.6.1

import os
 

import sys

PSSEPATH = r"C:\Program Files (x86)\PTI\PSSE34\PSSBIN" sys.path.append(PSSEPATH) os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_PATH import psspy

from psspy import _i from psspy import _f

psspy.psseinit(100000) psspy.case(r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw.sav""") psspy.fdns([0,0,0,1,1,0,99,0]) psspy.fdns([0,0,0,1,1,0,99,0]) psspy.cong(0) psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.ordr(0) psspy.fact() psspy.tysl(0) psspy.dyre_new([1,1,1,1],r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw.dyr""","","","")

----------load dll---------------------------------

workdir = os.getcwd() dllname= 'dsusr_34.dll' ierr = psspy.addmodellibrary(workdir + "\" + dllname) #load dll

---------------------------------------------------

psspy.chsb(0,1,[-1,-1,-1,1,4,0]) psspy.chsb(0,1,[-1,-1,-1,1,5,0]) psspy.chsb(0,1,[-1,-1,-1,1,13,0]) psspy.chsb(0,1,[-1,-1,-1,1,16,0]) psspy.strt_2([0,1],r"""C:\Users\EE106\Desktop\try.out""")

Messages for api ADDMODELLIBRARY Library not found (000301) "C:\Python27\Lib\site-packages\psseenvmanager\dsusr_34.dll"

Create User DLL can't work

Hello everyone, I'm new in learning user defined model. I'm trying to compile the DEMOEX by using "Create User DLL",but when I follow the PSSE environment manager user guide to run "psseenvmanager_w.pyw" here comes a problem.

Traceback (most recent call last): File "C:\Python27\Lib\site-packages\psseenvmanager\psseenvmanagerw.pyw", line 6, in <module> import commonem as comonpy ImportError: DLL load failed:The specified module could not be found.

I wondering if "common_em" is a package of python, when check my "pip list" there exist common(0.1.2),it is the same thing?

could anyone can help me fix it? Very apperciate!! My PSSE version is 34.6.1

import 

`import os

import sys

import sys PSSEPATH = r"C:\Program Files (x86)\PTI\PSSE34\PSSBIN" sys.path.append(PSSEPATH) os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_PATH import psspy

from psspy import _i from psspy import _f

psspy.psseinit(100000) psspy.case(r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw.sav""") psspy.fdns([0,0,0,1,1,0,99,0]) psspy.fdns([0,0,0,1,1,0,99,0]) psspy.cong(0) psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.ordr(0) psspy.fact() psspy.tysl(0) psspy.dyre_new([1,1,1,1],r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw.dyr""","","","")

----------load dll---------------------------------

workdir = os.getcwd() dllname= 'dsusr_34.dll' ierr = psspy.addmodellibrary(workdir + "\" + dllname)

---------------------------------------------------

psspy.chsb(0,1,[-1,-1,-1,1,4,0]) psspy.chsb(0,1,[-1,-1,-1,1,5,0]) psspy.chsb(0,1,[-1,-1,-1,1,13,0]) psspy.chsb(0,1,[-1,-1,-1,1,16,0]) psspy.strt_2([0,1],r"""C:\Users\EE106\Desktop\try.out""")psspy.strt_2([0,1],r"""C:\Users\EE106\Desktop\try.out""")`

Messages for api ADDMODELLIBRARY Library not found (000301) "C:\Python27\Lib\site-packages\psseenvmanager\dsusr_34.dll"

Create User DLL can't work

Hello everyone, I'm new in learning user defined model. I'm trying to compile the DEMOEX by using "Create User DLL",but when I follow the PSSE environment manager user guide to run "psseenvmanager_w.pyw" here comes a problem.

Traceback (most recent call last): File "C:\Python27\Lib\site-packages\psseenvmanager\psseenvmanagerw.pyw", line 6, in <module> import commonem as comonpy ImportError: DLL load failed:The specified module could not be found.

I wondering if "common_em" is a package of python, when check my "pip list" there exist common(0.1.2),it is the same thing?

could anyone can help me fix it? Very apperciate!! My PSSE version is 34.6.1

`import

import os
import sys
PSSEPATH PSSE_PATH = r"C:\Program Files (x86)\PTI\PSSE34\PSSBIN"
sys.path.append(PSSEPATH)
sys.path.append(PSSE_PATH)
os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_PATH
import psspy

psspy from psspy import _i from psspy import _f

_f psspy.psseinit(100000) psspy.case(r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw.sav""") psspy.fdns([0,0,0,1,1,0,99,0]) psspy.fdns([0,0,0,1,1,0,99,0]) psspy.cong(0) psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.ordr(0) psspy.fact() psspy.tysl(0) psspy.dyre_new([1,1,1,1],r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw.dyr""","","","")

----------load dll---------------------------------

(x86)\PTI\PSSE33\EXAMPLE\savnw.dyr""","","","") #-----------load dll-------------------- workdir = os.getcwd() dllname= 'dsusr_34.dll' ierr = psspy.addmodellibrary(workdir + "\" "\\" + dllname)

---------------------------------------------------

#load dll #---------------------------------------- psspy.chsb(0,1,[-1,-1,-1,1,4,0]) psspy.chsb(0,1,[-1,-1,-1,1,5,0]) psspy.chsb(0,1,[-1,-1,-1,1,13,0]) psspy.chsb(0,1,[-1,-1,-1,1,16,0]) psspy.strt_2([0,1],r"""C:\Users\EE106\Desktop\try.out""")`psspy.strt_2([0,1],r"""C:\Users\EE106\Desktop\try.out""")

could anyone can help me fix it? Very apperciate!! My PSSE version is 34.6.1

Messages for api ADDMODELLIBRARY Library not found (000301) "C:\Python27\Lib\site-packages\psseenvmanager\dsusr_34.dll"