Skip to content

AttributeError: module 'pyx' has no attribute 'canvas' #248

@cyyFh

Description

@cyyFh

When I Run the command:
from scapy.all import *
a=rdpcap(r"C:\Users\okli\Desktop\hit.pcap")
for b in a:
b.pdfdump(filename=r"C:\Users\okli\Desktop\a.pdf",layer_shift=1)
I encounter a error “AttributeError: module 'pyx' has no attribute 'canvas'”
The all details are listed as:

File "C:\Users\okli\Anaconda3\lib\site-packages\scapy\packet.py", line 418, in pdfdump
canvas = self.canvas_dump(**kargs)

File "C:\Users\okli\Anaconda3\lib\site-packages\scapy\packet.py", line 428, in canvas_dump
canvas = pyx.canvas.canvas()

AttributeError: module 'pyx' has no attribute 'canvas'

And my environment is WIN10(x64)anaconda3.5 kamene
Could you please tell me how to solve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions