You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new with pyshark and just tried to get it running on my Mac. I installed it with "pip install pyshark".
In my python file I imported pyshark like: import pyshark and tried to read one of my capture files with: cap = pyshark.FileCapture(<full path to my cap file>)
But unfortunately the import fails with the error messages below.
I searched for some hints, but without success.
Couldsomeone help me / any ideas?
Thanks in advance,
Josch
Traceback (most recent call last):
File "/Users/josch/JoSynDrive/_DATEN/Udemy/Python/Projects/PySharkTest/pSharkTest.py", line 1, in
import pyshark
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyshark/init.py", line 13, in
from pyshark.capture.live_capture import LiveCapture
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyshark/capture/live_capture.py", line 7, in
from pyshark.capture.capture import Capture
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyshark/capture/capture.py", line 14, in
from pyshark.tshark.output_parser import tshark_xml
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyshark/tshark/output_parser/tshark_xml.py", line 2, in
import lxml.objectify
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/lxml/objectify.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/libxslt.1.dylib
Referenced from: <91AA40B3-9F0D-383A-A90F-54746B313B5B> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/lxml/objectify.cpython-39-darwin.so
Reason: no LC_RPATH's found
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am new with pyshark and just tried to get it running on my Mac. I installed it with "pip install pyshark".
In my python file I imported pyshark like:
import pyshark
and tried to read one of my capture files with:cap = pyshark.FileCapture(<full path to my cap file>
)But unfortunately the import fails with the error messages below.
I searched for some hints, but without success.
Couldsomeone help me / any ideas?
Thanks in advance,
Josch
Traceback (most recent call last):
File "/Users/josch/JoSynDrive/_DATEN/Udemy/Python/Projects/PySharkTest/pSharkTest.py", line 1, in
import pyshark
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyshark/init.py", line 13, in
from pyshark.capture.live_capture import LiveCapture
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyshark/capture/live_capture.py", line 7, in
from pyshark.capture.capture import Capture
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyshark/capture/capture.py", line 14, in
from pyshark.tshark.output_parser import tshark_xml
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyshark/tshark/output_parser/tshark_xml.py", line 2, in
import lxml.objectify
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/lxml/objectify.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/libxslt.1.dylib
Referenced from: <91AA40B3-9F0D-383A-A90F-54746B313B5B> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/lxml/objectify.cpython-39-darwin.so
Reason: no LC_RPATH's found
Beta Was this translation helpful? Give feedback.
All reactions