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

Error __main__.py L211: Initialization failure: global flags not at the start of the expression at position 6 #1511

Closed
djallalzoldik opened this issue Mar 14, 2023 · 13 comments
Assignees
Labels
bug Something isn't working potential Unconfirmed issue

Comments

@djallalzoldik
Copy link

Describe the bug

happen when i using

python3 scout.py aws --profile test-scoutsuite-profile

@djallalzoldik djallalzoldik added bug Something isn't working potential Unconfirmed issue labels Mar 14, 2023
@utsahdevops
Copy link

Same error here.
Python version - 3.11.2_1

@johnnyodonnell
Copy link

+1

Python version 3.11.2

@johnnyodonnell
Copy link

This pull request would fix this issue: #1510

@lifer84
Copy link

lifer84 commented Mar 15, 2023

Still getting the same error.

@S1nEat3r
Copy link

Also using v 3.11.2 and getting the same error with the latest pull

@cancerberoSgx
Copy link

Same issue in MacOs, followed exactly the same instructions described in "Via PIP"
Is there any workaround ? (for example can I use an older version that works?)
Thanks

@S1nEat3r
Copy link

I resolved this by using python 3.8 venv

@cancerberoSgx
Copy link

that did the trick @S1nEat3r Thanks. Maybe it's not a bug but just a matter of updating the documentation and saying virtualenv -p python3.8 venv

@utsahdevops
Copy link

This pull request would fix this issue: #1510

Would you know what is their ETA on reviewing and merging your pull request?

@cycatzg1
Copy link

Hello Buddy,

I got the error please let me know how to fix the error.

ERROR main.py L211: Initialization failure: global flags not at the start of the expression at position 6

@Lekssik
Copy link

Lekssik commented Apr 21, 2023

If you need to quicky fix it, file change in this pull request helped me.
Steps:

  1. cp -r ScoutSuite ScoutSuite_fixed - create new local version of scout
  2. cd ScoutSuite_fixed/ScoutSuite/providers
  3. rm utils.py - remove file causes an error
  4. wget https://raw.githubusercontent.com/nccgroup/ScoutSuite/8f937535edac9a7a2751905f741d39e777be2e72/ScoutSuite/providers/utils.py - download fixed version
  5. cd ../..
  6. python3 scout.py aws - start scout using default configured aws profile

@fernando-gallego fernando-gallego self-assigned this May 15, 2023
@fernando-gallego
Copy link
Collaborator

This one has been addressed and should no longer trigger any errors for Python 3.11, changes have been merged into the develop branch and will be shipped to master in the next release.

@cosad3s
Copy link

cosad3s commented Jun 10, 2023

I confirm it works on develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working potential Unconfirmed issue
Projects
None yet
Development

No branches or pull requests

10 participants