google / gcp_scanner

A comprehensive scanner for Google Cloud
Apache License 2.0
305 stars 95 forks source link

Under certain pip setup gcp_scanner raises `can not pickle _cffi_Backend.FFI object` #267

Closed mshudrak closed 11 months ago

mshudrak commented 1 year ago

Affected Component

Describe the bug Under certain pip setup gcp_scanner raises can not pickle _cffi_Backend.FFI object. We first saw this problem when PR #265 was merged.

To Reproduce You probably need the following packages to be installed. You need to start a scanner on a GCP SA key.

bcrypt==3.1.7
beautifulsoup4==4.9.3
blinker==1.4
Brlapi==0.8.2
cachetools==5.3.1
certifi==2020.6.20
chardet==4.0.0
charset-normalizer==3.2.0
chrome-gnome-shell==0.0.0
cryptography==3.3.2
cupshelpers==1.0
dbus-python==1.2.16
distro==1.5.0
distro-info==1.0
duplicity==0.8.17
fasteners==0.14.1
future==0.18.2
gcp-scanner @ file:///home/mshudrak/gcp_scanner
google-api-core==2.11.1
google-api-python-client==2.80.0
google-auth==2.22.0
google-auth-httplib2==0.1.0
google-cloud-container==2.17.4
google-cloud-iam==2.11.2
googleapis-common-protos==1.60.0
grpcio==1.57.0
grpcio-status==1.57.0
html5lib==1.1
httplib2==0.21.0
idna==2.10
invoke==1.4.1
lockfile==0.12.2
louis==3.16.0
lxml==4.6.3
Mako==1.1.3
MarkupSafe==1.1.1
monotonic==1.5
numpy==1.19.5
oauthlib==3.1.0
olefile==0.46
paramiko==2.7.2
pexpect==4.8.0
Pillow==8.1.2
proto-plus==1.22.3
protobuf==4.24.0
psutil==5.8.0
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycairo==1.16.2
pycups==2.0.1
pycurl==7.43.0.6
PyGObject==3.38.0
pyinotify==0.9.6
PyJWT==1.7.1
PyNaCl==1.4.0
pyparsing==3.1.1
PySimpleSOAP==1.16.2
pysmbc==1.0.23
python-apt==2.2.1
python-debian==0.1.39
python-debianbts==3.1.0
python-pam==1.8.4
python-xapp==2.0.2
python-xlib==0.29
python-youtube-api==0.9.0
pytz==2021.1
pyu2f==0.1.5
pyxdg==0.27
PyYAML==5.3.1
reportbug==7.10.3+deb11u1
requests==2.28.2
rsa==4.9
scour==0.38.2
setproctitle==1.2.1
six==1.16.0
soupsieve==2.2.1
tinycss==0.4
tinycss2==1.0.2
unattended-upgrades==0.1
uritemplate==4.1.1
urllib3==1.26.5
webencodings==0.5.1
xdg==5

Expected behavior No error.

Screenshots image