Git Product home page Git Product logo

snap7's People

Contributors

vgrebenschikov avatar

Watchers

 avatar  avatar

snap7's Issues

Even though installed flawless library is not detected

The snap7 pkg in freebsd12 is broken, that or I'm missing something.
I've used it in ubuntu works fine, .. did pkg install snap7 then I did
pip3 install python-snap7 and that should work but it doesn't, tried
comping the C++ code under /usr/local/share/examples/snap7/c-cpp "c++
-I/usr/local/include/ snap7.cpp" otherwise it won't find snap7.h but
that doesn't work either

root@m0:~ # python3.6 test.py
Traceback (most recent call last):
File "test.py", line 17, in
plc = c.Client ()
File "/usr/local/lib/python3.6/site-packages/snap7/client.py", line
37, in init
self.library = load_library()
File "/usr/local/lib/python3.6/site-packages/snap7/common.py", line
54, in load_library
return Snap7Library(lib_location).cdll
File "/usr/local/lib/python3.6/site-packages/snap7/common.py", line
46, in init
raise Snap7Exception(msg)
snap7.snap7exceptions.Snap7Exception: can't find snap7 library. If
installed, try running ldconfig
root@m0:~ # pkg search snap7
snap7-1.4.2 Multi-platform Ethernet S7 PLC
communication suite
root@m0:~ # ldd /usr/local/lib/libsnap7.so
/usr/local/lib/libsnap7.so:
libthr.so.3 => /lib/libthr.so.3 (0x80069f000)
librt.so.1 => /usr/lib/librt.so.1 (0x8006ca000)
libc++.so.1 => /usr/lib/libc++.so.1 (0x8006d2000)
libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x8007a1000)
libm.so.5 => /lib/libm.so.5 (0x8007c2000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800e00000)
libc.so.7 => /lib/libc.so.7 (0x800248000)
root@m0:~ #

From what I gather the snap7 library i've installed isn't showing up in
freebsd when called upon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.