Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plt.subplot(ax21) : Function is expecting a three-digit integer instead of an Axes object. #38

Open
jacquesdarga opened this issue Jul 3, 2024 · 3 comments

Comments

@jacquesdarga
Copy link

Running from windows 11 :
python3 modsecurity_parser.py --version3 -f modsec_audit.log -x output.xlsx

Traceback (most recent call last):
File "C:\Users\HP\Documents\Coding\Python\modsecurity-parser\modsecurity_parser.py", line 864, in
output_with_graphs = modsec_view_graphs(modsec_entries)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\Documents\Coding\Python\modsecurity-parser\modsecurity_parser.py", line 565, in modsec_view_graphs
plt.subplot(ax21)
File "C:\Users\HP\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\matplotlib\pyplot.py", line 1529, in subplot
key = SubplotSpec._from_subplot_args(fig, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\matplotlib\gridspec.py", line 564, in _from_subplot_args
raise ValueError(
ValueError: Single argument to subplot must be a three-digit integer, not <Axes: >

@molu8bits
Copy link
Owner

Please use Python 3.10 and install libraries from requirements.txt.

@jacquesdarga
Copy link
Author

Please use Python 3.10 and install libraries from requirements.txt.

Okay I'll give it a shot, then I'll come back to you.

@deathsfaction
Copy link

Please use Python 3.10 and install libraries from requirements.txt.

I tried this and it still comes back with the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants