ScoutSuite icon indicating copy to clipboard operation
ScoutSuite copied to clipboard

ERROR __main__.py L211: Initialization failure: No module named 'msgraphcore'

Open arp-11 opened this issue 3 years ago • 1 comments

I installed scoutsuite 5.12 from pip. When running a scan against Azure, it keeps failing at initialization about msgraphcore module. I can't see where that's referenced anywhere in the code. Verified that msgraph-core is installed.

image

arp-11 avatar Oct 20 '22 20:10 arp-11

Hi, we cannot reproduce this issue. Which Python version are you running?

fernando-gallego avatar Jan 16 '23 10:01 fernando-gallego

I've come across this issue as well.

In a fresh installation of ScoutSuite using pip install scoutsuite, everything works fine with msgraph-core version:

# pip list | grep msgraph-core
msgraph-core                   0.2.2
#

However, after upgrading msgraph-core with pip3 install --upgrade msgraph-core, the error occurs.

Upgraded version:

# pip list | grep msgraph-core
msgraph-core                         1.0.0
#

Error message:

ERROR __main__.py L240: Initialization failure: No module named 'msgraph.core'

To avoid this error, you can containerize your ScoutSuite run.

ramooncamacho avatar Mar 27 '24 14:03 ramooncamacho

I saw this error when running against azure too after doing a pip install in a venv. What worked for me was doing a git clone and running pip install -r requirements.txt in a venv.

sufnlower avatar May 22 '24 23:05 sufnlower

I had the same issue and its because scoutsuite installed with pip3 requires msggraph-core 0.2.2 and the installed version I had was version 1.1.0. To solve this issue I did:

pip3 uninstall msggraph-core pip3 install msggraph-core==0.2.2

joeyqleq avatar Jul 08 '24 10:07 joeyqleq

That didn't work for me. It was on a different computer but I did a pip list | grep msgraph.core and it told me 0.2.2 and still wasn't working. Cloning the repo instead of pip installing scoutsuite was the only thing that worked for me.

sufnlower avatar Jul 09 '24 03:07 sufnlower