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

Python 3 compatibility #1

Open
madmath03 opened this issue Jun 22, 2019 · 1 comment
Open

Python 3 compatibility #1

madmath03 opened this issue Jun 22, 2019 · 1 comment

Comments

@madmath03
Copy link

Hi,

I wanted to test this app with ERPNext 11 on a Python 3 environment, but got the following errors when trying to install app:

*** Error compiling '../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/AbbyyOnlineSdk.py'...
  File "../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/AbbyyOnlineSdk.py", line 64
    print requestUrl
                   ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(requestUrl)?

*** Error compiling '../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/MultipartPostHandler.py'...
  File "../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/MultipartPostHandler.py", line 73
    raise TypeError, "not a valid non-string sequence or mapping object", traceback
                   ^
SyntaxError: invalid syntax

*** Error compiling '../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/process.py'...
  File "../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/process.py", line 29
    print "Using proxy at %s" % proxyString
                            ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Using proxy at %s" % proxyString)?

*** Error compiling '../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/process_xml.py'...
  File "../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/process_xml.py", line 16
    print "Using proxy at %s" % proxyString
                            ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Using proxy at %s" % proxyString)?

*** Error compiling '../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/xml_reader.py'...
  File "../apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/xml_reader.py", line 203
    print total
              ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(total)?

*** Error compiling '../apps/erpnext_ocr/erpnext_ocr/zap_hooks/SI.py'...
  File "../apps/erpnext_ocr/erpnext_ocr/zap_hooks/SI.py", line 5
    print "datadog"
                  ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("datadog")?

Will probably try to provide a PR for this.

@jvfiel
Copy link
Owner

jvfiel commented Jun 26, 2019

Hi @madmath03 yes feel free to edit the app. Thanks

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

Successfully merging a pull request may close this issue.

2 participants