Python Forum

Full Version: Pyopendnp3 in windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
HI ,

I addeded PyopenDNP3 module in windows, but I am geeting error as below:

from pyopendnp3 import *

print("hi")


Error :
import _pyopendnp3
ImportError: No module named _pyopendnp3
ERROR: Module: DNPTest could not be imported (file: E:\Python_HmI\Firmware_Automation\Generic_Functions\DNPTest.py).
done.

Please help me
More information needed.
where did you find this package?
This all looks very strange to me.
How did you load?
Hi extracted this opendnp3 package in Linux environment thru commands, Same package I copied to Windows and put in Site-Packages folder. then executed the above commands it is giving error as mentioned.
The opendnp3 package (last updated Dec 18, 2017) is not what is being used here, correct?
Linux environment thru commands ... What commands?
autoreconf -f -i
./configure --with-python
make
sudo make install

python
> import pyopendnp3

this works in linux.. same in windows is needed.. please help me
This still does not show where the package originated from.
I am trying to make sure I am looking at the proper package.
I installed thru this path :
https://github.com/gec/dnp3

for linux environment.

I need for windows
Ok, That was one of my original questions.

Please note that that module hasn't been worked on since 2013, and has never
been an official package in PyPi or other repository beyond GitHub.

That is not to say that it's not a good and complete package, but I would be weary of something that old,
and expect that it might issues with installation.

You may have to test module by module to get it to run.
How to work with libraries wrapped with Swig in windows platform. Should we need to recompile those or do we need to add any pacakge
Pages: 1 2