Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyopendnp3 in windows
#1
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
Reply
#2
More information needed.
where did you find this package?
This all looks very strange to me.
How did you load?
Reply
#3
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.
Reply
#4
The opendnp3 package (last updated Dec 18, 2017) is not what is being used here, correct?
Linux environment thru commands ... What commands?
Reply
#5
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
Reply
#6
This still does not show where the package originated from.
I am trying to make sure I am looking at the proper package.
Reply
#7
I installed thru this path :
https://github.com/gec/dnp3

for linux environment.

I need for windows
Reply
#8
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.
Reply
#9
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
Reply
#10
found this: https://stackoverflow.com/questions/1131...-with-swig
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020