Transcrypt
Transcrypt copied to clipboard
Errors are found when using requests.
Whenever I use requests in my code then try to transcript it, it tells me this:
line 2, at import of:
File 'requests', line 118, namely:
Import error, can't find any of:
Documents/exceptions/RequestException.py
Documents/exceptions/RequestException.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/transcrypt/modules/exceptions/RequestException.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/transcrypt/modules/exceptions/RequestException.js
/Users/eringraff1/exceptions/RequestException.py
/Users/eringraff1/exceptions/RequestException.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/exceptions/RequestException.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/exceptions/RequestException.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/exceptions/RequestException.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/exceptions/RequestException.js
/Users/eringraff1/Library/Python/3.7/lib/python/site-packages/exceptions/RequestException.py
/Users/eringraff1/Library/Python/3.7/lib/python/site-packages/exceptions/RequestException.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/exceptions/RequestException.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/exceptions/RequestException.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/buildozer-0.40.dev0-py3.7.egg/exceptions/RequestException.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/buildozer-0.40.dev0-py3.7.egg/exceptions/RequestException.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh-1.12.14-py3.7.egg/exceptions/RequestException.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh-1.12.14-py3.7.egg/exceptions/RequestException.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pexpect-4.7.0-py3.7.egg/exceptions/RequestException.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pexpect-4.7.0-py3.7.egg/exceptions/RequestException.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ptyprocess-0.6.0-py3.7.egg/exceptions/RequestException.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ptyprocess-0.6.0-py3.7.egg/exceptions/RequestException.js
Documents/exceptions.py
Documents/exceptions.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/transcrypt/modules/exceptions.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/transcrypt/modules/exceptions.js
/Users/eringraff1/exceptions.py
/Users/eringraff1/exceptions.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/exceptions.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/exceptions.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/exceptions.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/exceptions.js
/Users/eringraff1/Library/Python/3.7/lib/python/site-packages/exceptions.py
/Users/eringraff1/Library/Python/3.7/lib/python/site-packages/exceptions.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/exceptions.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/exceptions.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/buildozer-0.40.dev0-py3.7.egg/exceptions.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/buildozer-0.40.dev0-py3.7.egg/exceptions.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh-1.12.14-py3.7.egg/exceptions.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh-1.12.14-py3.7.egg/exceptions.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pexpect-4.7.0-py3.7.egg/exceptions.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pexpect-4.7.0-py3.7.egg/exceptions.js
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ptyprocess-0.6.0-py3.7.egg/exceptions.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ptyprocess-0.6.0-py3.7.egg/exceptions.js
Aborted
Can anybody help me?
If you mean you are using the requests python library, that's your problem exactly. If you read the documentation, you'll see that Transcrypt is designed for you to use JS libraries more than Python ones. requests is a bad choice when you can use the platform: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
Closing since no further comments.