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

ImportError: cannot import name 'encodestring' from 'base64' (/data/data/com.termux/files/usr/lib/python3.9/base64.py) #64

Closed
suranjrana opened this issue Oct 8, 2020 · 1 comment

Comments

@suranjrana
Copy link

suranjrana commented Oct 8, 2020

When i use python3 main.py cmdThen i face this problem Traceback (most recent call last): File "/data/data/com.termux/files/home/Osintgram/main.py", line 4, in from src.Osintgram import Osintgram File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 10, in from geopy.geocoders import Nominatim File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/init.py", line 13, in from geopy.geocoders import * # pylint: disable=W0401 File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/geocoders/init.py", line 101, in from geopy.geocoders.dot_us import GeocoderDotUS File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/geocoders/dot_us.py", line 6, in from base64 import encodestring

Screenshot_2020-10-09-04-20-53-825_com.termux.jpg

@Datalux Datalux changed the title When i use python3 main.py cmd Then i face this problem Traceback (most recent call last): File "/data/data/com.termux/files/home/Osintgram/main.py", line 4, in <module> from src.Osintgram import Osintgram File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 10, in <module> from geopy.geocoders import Nominatim File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/__init__.py", line 13, in <module> from geopy.geocoders import * # pylint: disable=W0401 File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/geocoders/__init__.py", line 101, in <module> from geopy.geocoders.dot_us import GeocoderDotUS File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/geocoders/dot_us.py", line 6, in <module> from base64 import encodestring ImportError: cannot import name 'encodestring' from 'base64' (/data/data/com.termux/files/usr/lib/python3.9/base64.py) What is ImportError: cannot import name 'encodestring' from 'base64' (/data/data/com.termux/files/usr/lib/python3.9/base64.py) Oct 9, 2020
@Datalux
Copy link
Owner

Datalux commented Oct 9, 2020

Hi @suranjrana please use Python 3.7.
The support for Python 3.9 is in development.

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

2 participants