cptpcrd / pyseccomp Goto Github PK
View Code? Open in Web Editor NEWAn interface to libseccomp using ctypes. API compatible with libseccomp's Python bindings.
License: MIT License
An interface to libseccomp using ctypes. API compatible with libseccomp's Python bindings.
License: MIT License
I get this, trying your library on a Debian stable machine:
Traceback (most recent call last):
File "sandbox/sandbox.py", line 4, in <module>
import pyseccomp as seccomp
File "/home/jojo/projekte/programming/pybotbrain/backend/env/lib/python3.7/site-packages/pyseccomp.py", line 121, in <module>
_libseccomp.seccomp_api_get.argtypes = ()
File "/usr/lib/python3.7/ctypes/__init__.py", line 369, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libseccomp.so.2: undefined symbol: seccomp_api_get
It seems that pip install
doesn't actually install any .py
files, only the dist-info
:
$ pip install pyseccomp==0.1.1
Requirement already satisfied: pyseccomp==0.1.1 in ./env/lib/python3.7/site-packages (0.1.1)
$ find env/**/*pyseccomp*
env/lib/python3.7/site-packages/pyseccomp-0.1.1.dist-info
env/lib/python3.7/site-packages/pyseccomp-0.1.1.dist-info/RECORD
env/lib/python3.7/site-packages/pyseccomp-0.1.1.dist-info/WHEEL
env/lib/python3.7/site-packages/pyseccomp-0.1.1.dist-info/INSTALLER
env/lib/python3.7/site-packages/pyseccomp-0.1.1.dist-info/LICENSE
env/lib/python3.7/site-packages/pyseccomp-0.1.1.dist-info/METADATA
env/lib/python3.7/site-packages/pyseccomp-0.1.1.dist-info/top_level.txt
env/lib/python3.7/site-packages/pyseccomp-0.1.1.dist-info/REQUESTED
$ python3 -m pyseccomp
…/env/bin/python3: No module named pyseccomp
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.