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

Termux issue still here #57

Open
Travelling-Human opened this issue Aug 18, 2024 · 23 comments
Open

Termux issue still here #57

Travelling-Human opened this issue Aug 18, 2024 · 23 comments

Comments

@Travelling-Human
Copy link

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 33, in
import tkinter as tk
ModuleNotFoundError: No module named 'tkinter'

This problem is still happening in my termux

@Travelling-Human Travelling-Human changed the title Termux issue still her Termux issue still here Aug 18, 2024
@TermuxHackz
Copy link
Owner

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 33, in
import tkinter as tk
ModuleNotFoundError: No module named 'tkinter'

This problem is still happening in my termux

Read here

@TermuxHackz TermuxHackz pinned this issue Aug 18, 2024
@Travelling-Human
Copy link
Author

Thank your response

And I regret to inform you that this is still here:
root@localhost:~# xosint
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 5, in
from googlesearch import search # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'googlesearch'

I installed on termux

@TermuxHackz
Copy link
Owner

TermuxHackz commented Aug 19, 2024

Thank your response

And I regret to inform you that this is still here:
root@localhost:~# xosint
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 5, in
from googlesearch import search # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'googlesearch'

I installed on termux

python3 -m pip uninstall googlesearch-python -y
python3 -m pip uninstall google-search -y
python3 -m pip uninstall google -y

Then pip install googlesearch-python

@Travelling-Human

@Travelling-Human
Copy link
Author

I am sorry but the problem is still there
I will send you the screenshotsScreenshot_2024-08-19-13-11-19-962_com.termux.jpg

Screenshot_2024-08-19-13-11-44-725_com.termux.jpg

@TermuxHackz
Copy link
Owner

I am sorry but the problem is still there
I will send you the screenshotsScreenshot_2024-08-19-13-11-19-962_com.termux.jpg

Screenshot_2024-08-19-13-11-44-725_com.termux.jpg

Try these

pip install google --break-system-packages

Then

python3 -m pip install googlesearch-python

@Travelling-Human
Copy link
Author

I guess we can say it kind of worked 'cause this is what it shows:

root@localhost:~# xosint
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 13, in
import requests
ModuleNotFoundError: No module named 'requests'

What should I do

@TermuxHackz
Copy link
Owner

I guess we can say it kind of worked 'cause this is what it shows:

root@localhost:~# xosint
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 13, in
import requests
ModuleNotFoundError: No module named 'requests'

What should I do

Run pip install requests

Every module it says not found
Just run
pip install

@Travelling-Human
Copy link
Author

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

This is the response I got I tried some methods it showed but no changes seen

@TermuxHackz
Copy link
Owner

@Travelling-Human
Add the --break-system-packages

For every module your trying to install

Eg
pip install request --break-system-packages

1 similar comment
@TermuxHackz
Copy link
Owner

@Travelling-Human
Add the --break-system-packages

For every module your trying to install

Eg
pip install request --break-system-packages

@Travelling-Human
Copy link
Author

Travelling-Human commented Aug 19, 2024

ERROR: Could not find a version that satisfies the requirement request (from versions: none)
ERROR: No matching distribution found for request

This is the response from it

@TermuxHackz
Copy link
Owner

@Travelling-Human, add requests to it, not request

@Travelling-Human
Copy link
Author

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 14, in
from ping3 import ping
ModuleNotFoundError: No module named 'ping3'

Just for the record I tried reinstalling and the ping and ping3 are there. I don't know what happened here

@TermuxHackz
Copy link
Owner

@Travelling-Human pip install ping3 --break-system-packages

@Travelling-Human
Copy link
Author

I know I am annoying you with these questions I am sorry please bear with me a little longer

root@localhost:~# pip install googleapiclient --break-system-packages
ERROR: Could not find a version that satisfies the requirement googleapiclient (from versions: none)
ERROR: No matching distribution found for googleapiclient

What should I do here

@TermuxHackz
Copy link
Owner

TermuxHackz commented Aug 19, 2024

there is no python module called that, it is

pip install google-api-python-client

@Travelling-Human

@Travelling-Human
Copy link
Author

Thank you for the response earlier. And everything. I know that I was kind of stupid not doing the research. Sorry.

Again can you help me with this too. I will try to make as few responses as possible

root@localhost:~# xosint An unexpected error occurred: module 'platform' has no attribute 'linux_distribution'

@TermuxHackz
Copy link
Owner

Kindly send a screenshot

@Travelling-Human
Copy link
Author

Ok
Screenshot_2024-08-19-16-56-46-012_com.termux.jpg

@TermuxHackz
Copy link
Owner

Oh I see, I'd need to update the code on my end so it works for your version of termux

@Travelling-Human
Copy link
Author

Thank you so so much buddy
Thank you
It means so much

@TermuxHackz TermuxHackz unpinned this issue Oct 4, 2024
@Matiassimone
Copy link

This thread help me to solve the same issue,
Im using UTM virtual machine with Linux Kali.

Only for each missing library I installed separately using the flag --break-system-packages.

@TermuxHackz
Copy link
Owner

@Matiassimone
@Travelling-Human
@LuiDavinci
@rnr3007
The best solution is to run and install everything in a Python virtual environment
As you see it’s given me zero errors

Screen.Recording.2024-11-18.at.11.22.11.AM.mp4

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

3 participants