Comments (10)
Try with the very latest version of PyMISP, it is still compatible with python 3.9.
from pymisp.
WIth the latest version v2.4.188 or v2.4.190, I have a similar but different error:
Traceback (most recent call last): File "cf_misp_to_crowdstrike", line 231, in cfentry File "lib3/phantom/decided/playbook_resource_score.py/playbook_resource_score.py", line 123, in _wrapper File "cf_misp_to_crowdstrike", line 193, in cf_misp_to_crowdstrike File "cf_misp_to_crowdstrike", line 33, in GetMispAttributes File "/opt/phantom/usr/python39/lib/python3.9/site-packages/pymisp/api.py", line 189, in __init__ if brotli_supported(): File "/opt/phantom/usr/python39/lib/python3.9/site-packages/pymisp/api.py", line 129, in brotli_supported version_splitted = version('urllib3').split('.') # noqa: F811 AttributeError: 'NoneType' object has no attribute 'split'
from pymisp.
ok, so version('urllib3')
returns None
on your machine. It makes very little sense as urllib3 is a dependency of PyMISP and it is pulled on install.
I'm wondering if you're running the script as a different user from the one you installed PyMISP with? Or in a different environment?
from pymisp.
OK, it really strange because If I modify my code to add
print(urllib.request.__version__)
It does print version 3.9
from pymisp.
from the same terminal you installed PyMISP (without sudo), run in a python terminal:
from importlib.metadata import version
print(version('pymisp'))
print(version('urllib3'))
from pymisp.
Also, this is incorrect, you're checking the version of urllib
not urllib3
from pymisp.
OK, it does return NONE.
print(version('pymisp'))
2.4.188
print(version('urllib3'))
None
Looking at the logs for pymisp installation. I do see
Requirement already satisfied: urllib3<3,>=1.21.1 in ./usr/python39/lib/python3.9/site-packages (from requests<3.0.0,>=2.31.0->pymisp==2.4.188) (2.2.1)
from pymisp.
Both of them return None
? Somehow, they're not installed in the virtual environment you're in. My guess it that it has something to do with an installation done as root (sudo), or something permission related.
from pymisp.
I checked the permission. I can't find anything wrong. I'm using python on an application call. Splunk soar. I opened a ticket with them because urllib3 return none on all my server running that application.
from pymisp.
yeah, they can probably give you some hints, because you cannot have PyMISP installed without urllib3 normally.
from pymisp.
Related Issues (20)
- PyMISP.search does not allow searching for attributes with first_seen as None HOT 3
- Issue with Adding a Tag to Event via PyMISP HOT 5
- Email parsing for email-body attribute is broken from PyMISP v2.4.184 to v2.4.184.2 HOT 4
- AttributeError: module 'pymisp' has no attribute 'EmailObject' when doing from pymisp import * HOT 2
- PyMISP.toggle_warninglist() sends GET method HOT 4
- PyMISP.disable_warninglist() doesn't disable, but toggle instead HOT 1
- Is it possible to change the timestamp for an attribute programatically? HOT 2
- IBM SOAR application with MISP error HOT 4
- upload_stix function return nothing when using in-memory file
- Support X-MISP-AUTH Header
- Proofpoint_tap.py script error HOT 1
- Tag for v2.4.189? HOT 4
- PyMISP and MISP version mismatches HOT 3
- PyMISP and MISP version mismatch HOT 2
- Object dropped due to validation for Event HOT 3
- Can't get search() to return attachments that have been included inside a object (e.g. report object attachment files) HOT 2
- Duplicated devices on GLPI HOT 1
- published=False returns published events HOT 2
- "The info field of the new event is required." returned when attempting to create a new event HOT 1
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 pymisp.