Comments (4)
same here, any solutions? Thanks!
TypeError Traceback (most recent call last)
<ipython-input-6-406dd2651dc1> in <module>
----> 1 from pcapkit import extract
~\Miniconda3\envs\data_env\lib\site-packages\pcapkit\__init__.py in <module>
81 exception=BaseError, strict=False)
82
---> 83 from pcapkit.foundation.registry import *
84 from pcapkit.interface import *
85 from pcapkit.protocols import *
~\Miniconda3\envs\data_env\lib\site-packages\pcapkit\foundation\__init__.py in <module>
11
12 """
---> 13 from pcapkit.foundation.extraction import Extractor
14 from pcapkit.foundation.traceflow import TraceFlow
15 from pcapkit.foundation.reassembly import *
~\Miniconda3\envs\data_env\lib\site-packages\pcapkit\foundation\extraction.py in <module>
20
21 from pcapkit.const.reg.linktype import LinkType as RegType_LinkType
---> 22 from pcapkit.corekit.infoclass import Info
23 from pcapkit.protocols.misc.pcap.frame import Frame
24 from pcapkit.protocols.misc.pcap.header import Header
~\Miniconda3\envs\data_env\lib\site-packages\pcapkit\corekit\__init__.py in <module>
13
14 """
---> 15 from pcapkit.corekit.infoclass import Info
16 from pcapkit.corekit.multidict import MultiDict, OrderedMultiDict
17 from pcapkit.corekit.protochain import ProtoChain
~\Miniconda3\envs\data_env\lib\site-packages\pcapkit\corekit\infoclass.py in <module>
23
24
---> 25 class Info(collections.abc.Mapping[str, VT], Generic[VT]):
26 """Turn dictionaries into :obj:`object` like instances.
27
TypeError: 'ABCMeta' object is not subscriptable
from pypcapkit.
Bug is only present in 0.16.0 and above. Bug is not in 0.15.5 and below.
from pypcapkit.
The problem is originating from pcapkit/corekit/infoclass.py
, in the class Info(collections.abc.Mapping[str, VT], Generic[VT]):
declaration. I'm not familiar with multiple inheritance like this, or Mapping or Generic, so I'm flailing beyond this. The Google crowd wisdom recommends using typing.Mapping
instead of collections.abc.Mapping
.
from pypcapkit.
Should've been fixed in version 0.16.3
from pypcapkit.
Related Issues (20)
- Can run test_reassembly.py HOT 1
- Error running test_reassembly.py HOT 1
- Add Example to print reassembled byte stream HOT 1
- Dynamic code execution is always an issue and should never be used. HOT 2
- Import of PCAPKit crashes HOT 2
- Import crash related to #113 HOT 2
- Unable to run pcapkit.extract HOT 3
- Unable to install from source HOT 1
- Invalid .pyup.yml detected
- Reassembly not working since 0.16.3 HOT 1
- Question: how to process realtime pcap stream HOT 4
- pcapkit.extraction not working HOT 9
- `follow_tcp_stream` (and flow tracing in general) doesn't work HOT 1
- UDP response messages (DNS responses) are skipped when ipv4 reassembly is set to true.
- How to obtain tpc trace flow HOT 1
- Follow TCP stream HOT 7
- Just a question HOT 5
- ipv4_reassembly HOT 2
- Defragmentaion of IPv4/IPv6 Pakets.. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypcapkit.