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

Syntax error on line 146 "print" #8

Open
AppleTechy opened this issue Oct 30, 2016 · 3 comments
Open

Syntax error on line 146 "print" #8

AppleTechy opened this issue Oct 30, 2016 · 3 comments

Comments

@AppleTechy
Copy link

I received this error when I start the script. Any ideas? When I add the parentheses to where I think they would go but then I receive an error about importing StringIO. I included the actual error messages I received below

Script error: diags.py line 146: Missing parentheses in call to 'print'

Script error: Traceback (most recent call last):
File "diags.py", line 7, in
import StringIO
ImportError: No module named 'StringIO'

@amanaman118
Copy link

Hi, It seems that you are using different version of python change line 146 to as below

print('Path is %s' % path)

@rbrovko
Copy link

rbrovko commented Sep 1, 2024

Changed line 146 to print('Path is %s' % path)`

next error

version = _bcrypt.about.version
^^^^^^^^^^^^^^^^^
AttributeError: module 'bcrypt' has no attribute 'about'

and

ModuleNotFoundError: No module named 'mitmproxy.models'

pip version 24.1.2
python 3.12

dependencies:

Requirement already satisfied: aioquic<=1.2.0,>=1.1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (1.2.0) Requirement already satisfied: asgiref<=3.8.1,>=3.2.10 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (3.8.1) Requirement already satisfied: Brotli<=1.1.0,>=1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (1.1.0) Requirement already satisfied: certifi>=2019.9.11 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (2024.7.4) Requirement already satisfied: cryptography<43.1,>=42.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (42.0.8) Requirement already satisfied: flask<=3.0.3,>=3.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (3.0.3) Requirement already satisfied: h11<=0.14.0,>=0.11 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (0.14.0) Requirement already satisfied: h2<=4.1.0,>=4.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (4.1.0) Requirement already satisfied: hyperframe<=6.0.1,>=6.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (6.0.1) Requirement already satisfied: kaitaistruct<=0.10,>=0.10 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (0.10) Requirement already satisfied: ldap3<=2.9.1,>=2.8 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (2.9.1) Requirement already satisfied: mitmproxy-rs<0.7,>=0.6.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (0.6.3) Requirement already satisfied: msgpack<=1.0.8,>=1.0.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (1.0.8) Requirement already satisfied: passlib<=1.7.4,>=1.6.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (1.7.4) Requirement already satisfied: protobuf<=5.27.3,>=5.27.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (5.27.3) Requirement already satisfied: pyOpenSSL<=24.2.1,>=22.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (24.2.1) Requirement already satisfied: pyparsing<=3.1.2,>=2.4.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (3.1.2) Requirement already satisfied: pyperclip<=1.9.0,>=1.9.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (1.9.0) Requirement already satisfied: ruamel.yaml<=0.18.6,>=0.16 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (0.18.6) Requirement already satisfied: sortedcontainers<=2.4.0,>=2.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (2.4.0) Requirement already satisfied: tornado<=6.4.1,>=6.4.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (6.4.1) Requirement already satisfied: urwid<=2.6.15,>=2.6.14 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (2.6.15) Requirement already satisfied: wsproto<=1.2.0,>=1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (1.2.0) Requirement already satisfied: publicsuffix2<=2.20191221,>=2.20190812 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (2.20191221) Requirement already satisfied: zstandard<=0.23.0,>=0.15 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy) (0.23.0) Requirement already satisfied: pylsqpack<0.4.0,>=0.3.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aioquic<=1.2.0,>=1.1.0->mitmproxy) (0.3.18) Requirement already satisfied: service-identity>=24.1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aioquic<=1.2.0,>=1.1.0->mitmproxy) (24.1.0) Requirement already satisfied: cffi>=1.12 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from cryptography<43.1,>=42.0->mitmproxy) (1.16.0) Requirement already satisfied: Werkzeug>=3.0.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from flask<=3.0.3,>=3.0->mitmproxy) (3.0.4) Requirement already satisfied: Jinja2>=3.1.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from flask<=3.0.3,>=3.0->mitmproxy) (3.1.4) Requirement already satisfied: itsdangerous>=2.1.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from flask<=3.0.3,>=3.0->mitmproxy) (2.2.0) Requirement already satisfied: click>=8.1.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from flask<=3.0.3,>=3.0->mitmproxy) (8.1.7) Requirement already satisfied: blinker>=1.6.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from flask<=3.0.3,>=3.0->mitmproxy) (1.8.2) Requirement already satisfied: hpack<5,>=4.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from h2<=4.1.0,>=4.1->mitmproxy) (4.0.0) Requirement already satisfied: pyasn1>=0.4.6 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from ldap3<=2.9.1,>=2.8->mitmproxy) (0.6.0) Requirement already satisfied: mitmproxy-macos==0.6.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from mitmproxy-rs<0.7,>=0.6.3->mitmproxy) (0.6.3) Requirement already satisfied: ruamel.yaml.clib>=0.2.7 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from ruamel.yaml<=0.18.6,>=0.16->mitmproxy) (0.2.8) Requirement already satisfied: typing-extensions in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from urwid<=2.6.15,>=2.6.14->mitmproxy) (4.12.2) Requirement already satisfied: wcwidth in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from urwid<=2.6.15,>=2.6.14->mitmproxy) (0.2.13) Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from cffi>=1.12->cryptography<43.1,>=42.0->mitmproxy) (2.22) Requirement already satisfied: MarkupSafe>=2.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from Jinja2>=3.1.2->flask<=3.0.3,>=3.0->mitmproxy) (2.1.5) Requirement already satisfied: attrs>=19.1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from service-identity>=24.1.0->aioquic<=1.2.0,>=1.1.0->mitmproxy) (24.2.0) Requirement already satisfied: pyasn1-modules in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from service-identity>=24.1.0->aioquic<=1.2.0,>=1.1.0->mitmproxy) (0.4.0)

UPD Needs to force bcrypt==4.0.1 to keep using diags.

@programming086
Copy link

@anthonya1999 please add requirements.txt

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

4 participants