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
ModuleNotFoundError: No module named 'msgraph' #464
Comments
confirm workaround works: jose@ubuntudmarc:~$ pip3 show -f parsedmarc jose@ubuntudmarc:~$ parsedmarc --help jose@ubuntudmarc:~$ sudo pip3 uninstall msgraph-core --break-system-package jose@ubuntudmarc:~$ sudo pip3 install msgraph-core==0.2.2 --break-system-packages jose@ubuntudmarc:~$ parsedmarc --version |
ref. domainaware#464 A breaking change was made in msgraph-core 1.0.0. Currently, parsedmarc is not yet compatible with this version, so do not install 1.0.0 or higher.
I did all this @jose-m-ferreira but i'm still getting: parsedmarc.service: Failed with result 'exit-code'. pip3 list | grep msgraph |
@tjilez looks like you have msgraph-core 0.2.2 alright, right, but i'm curious as if any would be in the venv environment at /opt/parsedmarc and if so what version. |
@jose-m-ferreira I think i got it working now :) But i get: |
you have to configure a parsedmarc.ini somewhere. i actually haven't been able to get imap out of gmail to work. |
- Add support for SMTP TLS reports (PR #453 closes issue #71) - Do not replace content in forensic samples (fix #403) - Pin `msgraph-core` dependency at version `0.2.2` until Microsoft provides better documentation (PR #466 Close [#464](#464)) - Properly handle base64-encoded email attachments (PR #453) - Do not crash when attempting to parse invalid email content (PR #453) - Ignore errors when parsing text-based forensic reports (PR #460) - Add email date to email processing debug logs (PR #462) - Set default batch size to 10 to match the documentation (PR #465) - Properly handle none values (PR #468) - Add Gmail pagination (PR #469) - Use the correct `msgraph` scope (PR #471)
This issue has been resolved in the following commit (version 8.7.0). |
Description
I have installed parsedmarc but it does not work with the following error:
I am seeing this error in at least the following environments
Linux 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 GNU/Linux
), Python 3.11Linux 6.2.0-1017-aws #17~22.04.1-Ubuntu SMP Fri Nov 17 21:19:35 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
), Python 3.10Steps to reproduce
This occurs when you install parsedmarc and run the command in the following flow.
Running
parsedmarc
in this state will result in the followingWhat else I have investigated
I looked up the module name msgraph and found that it refers to the dependent package msgraph-core,
The latest version of msgraph-core, 1.0.0, was released on 2024-01-23, the first major release since 2021-07-27.
On the other hand, if you look at project.toml, you will see that
>= 0.2.2
.parsedmarc/pyproject.toml
Line 50 in 7d2b431
Therefore, it is assumed that a new installation of parsedmarc installs msgraph-core 1.0.0, and that it no longer works.
Workaround
It seems to be possible to avoid this problem by specifying a msgraph-core version less than 1.0.0 as follows.
The text was updated successfully, but these errors were encountered: