Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Feature/pytest #59

Merged
merged 16 commits into from
Feb 22, 2017
Merged

PR: Feature/pytest #59

merged 16 commits into from
Feb 22, 2017

Conversation

goanpeca
Copy link
Contributor

@goanpeca goanpeca commented Feb 22, 2017

Fixes #46
Fixes #10
Fixes #8

@goanpeca goanpeca self-assigned this Feb 22, 2017
@goanpeca
Copy link
Contributor Author

goanpeca commented Feb 22, 2017

@bemcdonnell I am stucked cause pyswmm does not work for me :-|, do I need to install swmm? add extra dlls?

(C:\Users\builder\Anaconda2) C:\Users\builder\pyswmm>python pyswmm\swmm5.py
Traceback (most recent call last):
  File "pyswmm\swmm5.py", line 1150, in <module>
    binfile=r"../test/TestModel1_weirSetting.out")
  File "pyswmm\swmm5.py", line 130, in __init__
    self.SWMMlibobj = ctypes.CDLL(libswmm)
  File "C:\Users\builder\Anaconda2\lib\ctypes\__init__.py", line 362, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

@bemcdonnell
Copy link
Member

@goanpeca, try printing print(libswmm) and see if that path points to the real DLL

@goanpeca
Copy link
Contributor Author

goanpeca commented Feb 22, 2017

@bemcdonnell yep it does point to the real one.

('c:/users/builder/pyswmm/pyswmm/swmmLinkedLibs/Windows/swmm5.dll', 'isfile:', True)

Traceback (most recent call last):
  File "C:\Users\builder\pyswmm\pyswmm\swmm5.py", line 1151, in <module>
    binfile=r"../test/TestModel1_weirSetting.out")
  File "C:\Users\builder\pyswmm\pyswmm\swmm5.py", line 131, in __init__
    self.SWMMlibobj = ctypes.WinDLL(libswmm)
  File "C:\Users\builder\Anaconda2\lib\ctypes\__init__.py", line 362, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

Does it work for you with the anaconda python?

How was this dll compiled (compiler toolchain)? Does it have any dependent dlls that are expected on the system?

@goanpeca goanpeca merged commit c6a3678 into pyswmm:master Feb 22, 2017
@goanpeca goanpeca deleted the feature/pytest branch February 22, 2017 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants