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

Always dealing with tkinter #60

Open
aethereal123 opened this issue Sep 30, 2024 · 20 comments
Open

Always dealing with tkinter #60

aethereal123 opened this issue Sep 30, 2024 · 20 comments

Comments

@aethereal123
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'

Any just one helpful solution of this thing?

@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'

Any just one helpful solution of this thing?

Hey there @aethereal123 , create a Python virtual environment and install tkinter, basically install all the Python packages in a Python virtual environment and then start Xosint , everything should work well
Visit the README for Xosint on how to create a Python virtual environment

@aethereal123
Copy link
Author

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 22, in
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
(venv) ➜ ~ pip install PIL --break-system-packages
ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
ERROR: No matching distribution found for PIL

What should i do for PIL? pip doesnt work any solutions?

@TermuxHackz
Copy link
Owner

Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/xosint", line 22, in from PIL import Image ModuleNotFoundError: No module named 'PIL' (venv) ➜ ~ pip install PIL --break-system-packages ERROR: Could not find a version that satisfies the requirement PIL (from versions: none) ERROR: No matching distribution found for PIL

What should i do for PIL? pip doesnt work any solutions?

Hi there @aethereal123 install pillow

pip install pillow

@aethereal123
Copy link
Author

Nuh uh its still dealing with tkinter / tk, after running python enviroment its still same
Uploading Screenshot_2024-10-01-17-51-37-962_com.termux.jpg…

@TermuxHackz
Copy link
Owner

@aethereal123 Now that you have created a python virtual environment you would need to reinstall the python packages the bot needs.
eg

  • pip install tk

and so on...

@aethereal123
Copy link
Author

Nah dude tk is always catching me up 😭
Screenshot_2024-10-04-16-33-38-886_com termux

please help me

@aethereal123
Copy link
Author

Screenshot_2024-10-04-16-39-47-786_com termux

any slight better solutions?

@TermuxHackz
Copy link
Owner

Hi @aethereal123 Try the following

  • pip install tk-tools

@aethereal123
Copy link
Author

Screenshot_2024-10-04-16-41-47-173_com termux

Same thing happened

@TermuxHackz
Copy link
Owner

HI @aethereal123 Your likely experiencing this because tkinker isnt really available for Termux, but you'll need to use an X11 server and install the X11 packages.
Install the Following:

  • pkg update
  • pkg install x11-repo
  • pkg install python python-tkinter

Then Install an X11 server app on your Android device. VNC Viewer is a popular choice.
Install a VNC server in Termux:

  • pkg install tigervnc

Start the VNC Server

  • vncserver

Set a password when prompted.
Connect to the VNC server using the VNC Viewer app on your Android device.
Now you should be able to run it properly

@aethereal123
Copy link
Author

How to use the vnc server?

@aethereal123
Copy link
Author

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/xosint", line 48, in
from cryptography.fernet import Fernet # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'cryptography'
(X-osint_venv) ➜ X-osint pip install cryptography
The folder you are executing pip from can no longer be found.
(X-osint_venv) ➜ X-osint pkg install cryptography
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
No mirror or mirror group selected. You might want to select one by running 'termux-change-repo'
Checking availability of current mirror:
[*] https://mirrors.nguyenhoang.cloud/termux/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package cryptography

What is cryptography and how to install it?

@TermuxHackz
Copy link
Owner

Hi @aethereal123 I would suggest you delete X-osint from your termux and re-install as ive added a new requirements.txt file which contains all the necessary pip packages to install for X-osint
OR you can download it here
requirements.txt
Access your downloads folder on your phone in termux, then move it to the home folder of termux and then run pip install -r requirements.txt and then you can proceed with the installation of X-osint

@TermuxHackz
Copy link
Owner

TermuxHackz commented Oct 4, 2024

In Addition @aethereal123 You can view the requirements.txt file, and see which packages you need to install and then install it using pip install package_name
eg pip install cryptography==3.4.8
ETC

@aethereal123
Copy link
Author

How to uninstall it?

@TermuxHackz
Copy link
Owner

sighs, you dont need to @aethereal123 , just do this instead #60 (comment)

@TermuxHackz
Copy link
Owner

view the requirements.txt file, and see which packages you need to install and then install it using pip install package_name
eg pip install cryptography==3.4.8
ETC

@aethereal123
Copy link
Author

X-osint git:(master) ✗ pip install cryptography==3.4.8
Collecting cryptography==3.4.8
Using cached cryptography-3.4.8.tar.gz (546 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.12 (from cryptography==3.4.8)
Using cached cffi-1.17.1-cp311-cp311-linux_aarch64.whl
Collecting pycparser (from cffi>=1.12->cryptography==3.4.8)
Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: cryptography
Building wheel for cryptography (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for cryptography (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [341 lines of output]
33 warnings and 6 errors generated.

      =============================DEBUG ASSISTANCE=============================
      If you are seeing a compilation error please try the following steps to
      successfully install cryptography:
      1) Upgrade to the latest pip and try again. This will fix errors for most
         users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
      2) Read https://cryptography.io/en/latest/installation.html for specific
         instructions for your platform.
      3) Check our frequently asked questions for more information:
         https://cryptography.io/en/latest/faq.html
      4) Ensure you have a recent Rust toolchain installed:
         https://cryptography.io/en/latest/installation.html#rust
      5) If you are experiencing issues with Rust for *this release only* you may
         set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
      =============================DEBUG ASSISTANCE=============================

  error: command '/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cryptography

As the results
Any solutions?

@raayraay96
Copy link

Hey im having same issue its for the gui right? Any solution or just running no gui?

@raayraay96
Copy link

raayraay96 commented Oct 22, 2024

i got it to run on userland finally not termux tho i dont think it can support the gui.

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