FreeBSD Bugzilla – Attachment 206313 Details for
Bug 239681
net/py-pcap: Cannot import module with python 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
poudriere jail build/install capture
fail.txt (text/plain), 7.85 KB, created by
Craig Leres
on 2019-08-06 20:14:04 UTC
(
hide
)
Description:
poudriere jail build/install capture
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2019-08-06 20:14:04 UTC
Size:
7.85 KB
patch
obsolete
>root@pkg4:/usr/ports/net/py-pcap # make FLAVOR=py36 install >===> License BSD3CLAUSE accepted by the user >===> py36-pcap-0.6.6 depends on file: /usr/local/sbin/pkg - found >===> Fetching all distfiles required by py36-pcap-0.6.6 for building >===> Extracting for py36-pcap-0.6.6 >=> SHA256 Checksum OK for 5u623l20-pylibpcap-0.6.6-d442c3e_GH0.tar.gz. >===> Patching for py36-pcap-0.6.6 >===> py36-pcap-0.6.6 depends on executable: swig3.0 - not found >===> Installing existing package /packages/All/swig30-3.0.12.txz >[pkg4.lbl.gov] Installing swig30-3.0.12... >[pkg4.lbl.gov] `-- Installing lua52-5.2.4... >[pkg4.lbl.gov] | `-- Installing libedit-3.1.20190324,1... >[pkg4.lbl.gov] | `-- Extracting libedit-3.1.20190324,1: 100% >[pkg4.lbl.gov] `-- Extracting lua52-5.2.4: 100% >[pkg4.lbl.gov] `-- Installing pcre-8.43_1... >[pkg4.lbl.gov] `-- Extracting pcre-8.43_1: 100% >[pkg4.lbl.gov] Extracting swig30-3.0.12: 100% >===> py36-pcap-0.6.6 depends on executable: swig3.0 - found >===> Returning to build of py36-pcap-0.6.6 >===> py36-pcap-0.6.6 depends on package: py36-setuptools>0 - not found >===> Installing existing package /packages/All/py36-setuptools-41.0.0.txz >[pkg4.lbl.gov] Installing py36-setuptools-41.0.0... >[pkg4.lbl.gov] `-- Installing python36-3.6.8_2... >[pkg4.lbl.gov] | `-- Installing gettext-runtime-0.20.1... >[pkg4.lbl.gov] | | `-- Installing indexinfo-0.3.1... >[pkg4.lbl.gov] | | `-- Extracting indexinfo-0.3.1: 100% >[pkg4.lbl.gov] | `-- Extracting gettext-runtime-0.20.1: 100% >[pkg4.lbl.gov] | `-- Installing libffi-3.2.1_3... >[pkg4.lbl.gov] | `-- Extracting libffi-3.2.1_3: 100% >[pkg4.lbl.gov] | `-- Installing readline-8.0.0... >[pkg4.lbl.gov] | `-- Extracting readline-8.0.0: 100% >[pkg4.lbl.gov] `-- Extracting python36-3.6.8_2: 100% >[pkg4.lbl.gov] Extracting py36-setuptools-41.0.0: 100% >Message from python36-3.6.8_2: > >=========================================================================== > >Note that some standard Python modules are provided as separate ports >as they require additional dependencies. They are available as: > >py36-gdbm databases/py-gdbm@py36 >py36-sqlite3 databases/py-sqlite3@py36 >py36-tkinter x11-toolkits/py-tkinter@py36 > >=========================================================================== >===> py36-pcap-0.6.6 depends on package: py36-setuptools>0 - found >===> Returning to build of py36-pcap-0.6.6 >===> py36-pcap-0.6.6 depends on file: /usr/local/bin/python3.6 - found >===> Configuring for py36-pcap-0.6.6 >running config >===> Building for py36-pcap-0.6.6 >running build >running build_ext >building '_pcapmodule' extension >generating constants.c from mk-constants.py >/usr/local/bin/swig3.0 -Wall -python -shadow -ISWIG -o pcap.c pcap.i >/usr/local/bin/python3.6 ./build-tools/docify.py pcap.c >/usr/local/bin/python3.6 ./build-tools/docify-shadow.py pcap.py >creating build >creating build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6 >cc -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/python3.6m -c pcap.c -o build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6/pcap.o >cc -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/python3.6m -c pcap_interface.c -o build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6/pcap_interface.o >cc -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/python3.6m -c exception.c -o build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6/exception.o >cc -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/python3.6m -c error.c -o build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6/error.o >creating build/lib.freebsd-11.2-RELEASE-p10-amd64-3.6 >cc -shared -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6/pcap.o build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6/pcap_interface.o build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6/exception.o build/temp.freebsd-11.2-RELEASE-p10-amd64-3.6/error.o -L/usr/local/lib -lpcap -lpython3.6m -o build/lib.freebsd-11.2-RELEASE-p10-amd64-3.6/_pcapmodule.so >running build_py >copying pcap.py -> build/lib.freebsd-11.2-RELEASE-p10-amd64-3.6 >===> Staging for py36-pcap-0.6.6 >===> py36-pcap-0.6.6 depends on package: py36-setuptools>0 - found >===> py36-pcap-0.6.6 depends on file: /usr/local/bin/python3.6 - found >===> Generating temporary packing list >running install >running build >running build_ext >running build_py >running install_lib >creating /wrkdirs/usr/ports/net/py-pcap/work-py36/stage/usr/local/lib/python3.6 >creating /wrkdirs/usr/ports/net/py-pcap/work-py36/stage/usr/local/lib/python3.6/site-packages >copying build/lib.freebsd-11.2-RELEASE-p10-amd64-3.6/pcap.py -> /wrkdirs/usr/ports/net/py-pcap/work-py36/stage/usr/local/lib/python3.6/site-packages >copying build/lib.freebsd-11.2-RELEASE-p10-amd64-3.6/_pcapmodule.so -> /wrkdirs/usr/ports/net/py-pcap/work-py36/stage/usr/local/lib/python3.6/site-packages >byte-compiling /wrkdirs/usr/ports/net/py-pcap/work-py36/stage/usr/local/lib/python3.6/site-packages/pcap.py to pcap.cpython-36.pyc >writing byte-compilation script '/tmp/tmpntolanut.py' >/usr/local/bin/python3.6 /tmp/tmpntolanut.py >removing /tmp/tmpntolanut.py >running install_egg_info >running egg_info >creating pylibpcap.egg-info >writing pylibpcap.egg-info/PKG-INFO >writing dependency_links to pylibpcap.egg-info/dependency_links.txt >writing top-level names to pylibpcap.egg-info/top_level.txt >writing manifest file 'pylibpcap.egg-info/SOURCES.txt' >reading manifest file 'pylibpcap.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pylibpcap.egg-info/SOURCES.txt' >Copying pylibpcap.egg-info to /wrkdirs/usr/ports/net/py-pcap/work-py36/stage/usr/local/lib/python3.6/site-packages/pylibpcap-0.6.3-py3.6.egg-info >running install_scripts >writing list of installed files to '/wrkdirs/usr/ports/net/py-pcap/work-py36/.PLIST.pymodtmp' >/usr/bin/strip /wrkdirs/usr/ports/net/py-pcap/work-py36/stage/usr/local/lib/python3.6/site-packages/_pcapmodule.so >====> Compressing man pages (compress-man) >===> Installing for py36-pcap-0.6.6 >===> Checking if py36-pcap is already installed >===> Registering installation for py36-pcap-0.6.6 >[pkg4.lbl.gov] Installing py36-pcap-0.6.6... >root@pkg4:/usr/ports/net/py-pcap # >root@pkg4:/usr/ports/net/py-pcap # >root@pkg4:/usr/ports/net/py-pcap # py >pydoc3.6 python3.6-config python3.6m-config >python3.6 python3.6m pyvenv-3.6 >root@pkg4:/usr/ports/net/py-pcap # python3.6 >Python 3.6.8 (default, Jun 10 2019, 05:58:53) >[GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] on freebsd11 >Type "help", "copyright", "credits" or "license" for more information. >>>> import pcap >Traceback (most recent call last): > File "/usr/local/lib/python3.6/site-packages/pcap.py", line 14, in swig_import_helper > return importlib.import_module(mname) > File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module > return _bootstrap._gcd_import(name[level:], package, level) > File "<frozen importlib._bootstrap>", line 994, in _gcd_import > File "<frozen importlib._bootstrap>", line 971, in _find_and_load > File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked >ModuleNotFoundError: No module named '_pcap' > >During handling of the above exception, another exception occurred: > >Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/local/lib/python3.6/site-packages/pcap.py", line 17, in <module> > _pcap = swig_import_helper() > File "/usr/local/lib/python3.6/site-packages/pcap.py", line 16, in swig_import_helper > return importlib.import_module('_pcap') > File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module > return _bootstrap._gcd_import(name[level:], package, level) >ModuleNotFoundError: No module named '_pcap' >>>> >root@pkg4:/usr/ports/net/py-pcap #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 239681
: 206313