commix icon indicating copy to clipboard operation
commix copied to clipboard

NameError: name 'settings' is not defined & ModuleNotFoundError: No module named 'src.thirdparty.six.moves'

Open Abhishek-Dirisipo opened this issue 2 years ago • 8 comments

What's the problem (or question)?

when i try to run commix, this error occurs:

Traceback (most recent call last): File "/Users/abhishek/BB/tools/commix/commix.py", line 18, in import("src.utils.version") File "/Users/abhishek/BB/tools/commix/src/utils/version.py", line 17, in from src.utils import settings File "/Users/abhishek/BB/tools/commix/src/utils/settings.py", line 26, in from src.thirdparty.six.moves import urllib as _urllib ModuleNotFoundError: No module named 'src.thirdparty.six.moves'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/abhishek/BB/tools/commix/commix.py", line 25, in print(settings.print_critical_msg(err_msg)) ^^^^^^^^ NameError: name 'settings' is not defined

Do you have an idea for a solution?

no

How can we reproduce the issue?

  1. use mac with latest python 3.12.1
  2. try to run commix.py with python3
  3. the error will occur

What are the running context details?

  • Installation method (e.g. apt-get, git clone or zip/tar.gz): git clone

  • Client OS (e.g. Linux (Ubuntu)): mac os

  • Program version (python commix.py --version or commix --version depending on installation): python 3.12.1

  • Relevant console output (if any):

Traceback (most recent call last): File "/Users/abhishek/BB/tools/commix/commix.py", line 18, in import("src.utils.version") File "/Users/abhishek/BB/tools/commix/src/utils/version.py", line 17, in from src.utils import settings File "/Users/abhishek/BB/tools/commix/src/utils/settings.py", line 26, in from src.thirdparty.six.moves import urllib as _urllib ModuleNotFoundError: No module named 'src.thirdparty.six.moves'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/abhishek/BB/tools/commix/commix.py", line 25, in print(settings.print_critical_msg(err_msg)) ^^^^^^^^ NameError: name 'settings' is not defined

Abhishek-Dirisipo avatar Jan 13 '24 06:01 Abhishek-Dirisipo

Hey, @Abhishek-Dirisipo sorry, but I am not able to reproduce the reported issue. Try to update commix to the latest (dev) version and/or use different version of Python and check again.

stasinopoulos avatar Jan 13 '24 07:01 stasinopoulos

i re-installed python3.12.1(latest) and re-cloned the latest commix . it still shows me the same error.

Abhishek-Dirisipo avatar Jan 14 '24 07:01 Abhishek-Dirisipo

This is some kind of environment issue (that i am not able to reproduce) similar with https://github.com/commixproject/commix/issues/871. I would suggest to run commix on Linux VM (i.e. Kali Linux etc)

stasinopoulos avatar Jan 14 '24 08:01 stasinopoulos

so , it is an issue with mac i think.

Abhishek-Dirisipo avatar Jan 14 '24 11:01 Abhishek-Dirisipo

FYI, i just run commix (v3.9-dev#43) on my OSX w/ Python version 3.9.14. Untitled

stasinopoulos avatar Jan 14 '24 13:01 stasinopoulos

This seems to be a problem when the six library is already installed. Changing the imports via

find $COMMIX_ROOT -iname "*.py" -exec sed -i '' 's/from src.thirdparty.six.moves import/from six.moves import/g' {} \;

fixed this issue for me.

dkmcgrath avatar Apr 02 '24 17:04 dkmcgrath

3.9 it is working for the latest python version it is not working

On Sun, 14 Jan 2024 at 7:28 PM, Anastasios Stasinopoulos < @.***> wrote:

FYI, i just run commix (v3.9-dev#43) on my OSX w/ Python version 3.9.14. Untitled.png (view on web) https://github.com/commixproject/commix/assets/5289251/c11459bd-209e-4874-b822-3e378d814e5c

— Reply to this email directly, view it on GitHub https://github.com/commixproject/commix/issues/885#issuecomment-1890960353, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5IWDPVTXNRZRTSWQXOYS4DYOPP63AVCNFSM6AAAAABBZDNWUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHE3DAMZVGM . You are receiving this because you were mentioned.Message ID: @.***>

Abhishek-Dirisipo avatar Apr 03 '24 04:04 Abhishek-Dirisipo

3 12_error_confirmed

Confirmed that this error occurred with latest python version (i.e. 3.12).

stasinopoulos avatar May 13 '24 07:05 stasinopoulos

Untitled

stasinopoulos avatar May 21 '24 04:05 stasinopoulos

Thank you , now it is perfectly working fine

Abhishek-Dirisipo avatar May 21 '24 05:05 Abhishek-Dirisipo

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related issues.

github-actions[bot] avatar Aug 20 '24 01:08 github-actions[bot]