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

Mobile version #92

Closed
MelovZaebl opened this issue Feb 25, 2021 · 28 comments
Closed

Mobile version #92

MelovZaebl opened this issue Feb 25, 2021 · 28 comments
Labels
duplicate This issue or pull request already exists

Comments

@MelovZaebl
Copy link

Add termux version or documentation how to use it with termux.

Script can 24/7 work on ur phone.

@MelovZaebl MelovZaebl added the enhancement New feature or request label Feb 25, 2021
@Signko
Copy link
Contributor

Signko commented Feb 25, 2021

Not sure if this will work, but try #76 (comment) and let me know if this will work. If it doesn't, I will try and help you asap.

@Tkd-Alex
Copy link
Owner

i will never understand why to run python scripts on mobile 🤷‍♂️

btw if the solution on #76 work I'll write on README

@MelovZaebl for the next time please check if there are other similar issues open before open a new one.

@Tkd-Alex Tkd-Alex added duplicate This issue or pull request already exists and removed enhancement New feature or request labels Feb 25, 2021
@MelovZaebl
Copy link
Author

Not sure if this will work, but try #76 (comment) and let me know if this will work. If it doesn't, I will try and help you asap.

Error when trying to download required modules

@Tkd-Alex
Copy link
Owner

I think you should share your error or a screenshot :)

@MelovZaebl
Copy link
Author

i will never understand why to run python scripts on mobile 🤷‍♂️

btw if the solution on #76 work I'll write on README

@MelovZaebl for the next time please check if there are other similar issues open before open a new one.
Sorry, I'm new to github + I don't know English well

@MelovZaebl
Copy link
Author

I think you should share your error or a screenshot :)

When write "pip install -r requirements.txt"
1
2
3
4
5
6
7

When write "python example.py" after that
Traceback (most recent call last): File "example.py", line 4, in <module> from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/storage/emulated/0/Download/Twitch/TwitchChannelPointsMiner/__init__.py", line 3, in <module> from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/storage/emulated/0/Download/Twitch/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 21, in <module> from TwitchChannelPointsMiner.classes.Twitch import Twitch File "/storage/emulated/0/Download/Twitch/TwitchChannelPointsMiner/classes/Twitch.py", line 25, in <module> from TwitchChannelPointsMiner.classes.TwitchLogin import TwitchLogin File "/storage/emulated/0/Download/Twitch/TwitchChannelPointsMiner/classes/TwitchLogin.py", line 10, in <module> import browser_cookie3 ModuleNotFoundError: No module named 'browser_cookie3'

@Tkd-Alex
Copy link
Owner

You could try the following: python-pillow/Pillow#1957 (comment)
$ pkg install python libjpeg-turbo libcrypt ndk-sysroot clang zlib
$ LDFLAGS="-L${PREFIX}/lib/" CFLAGS="-I${PREFIX}/include/" pip install --upgrade wheel pillow

And then pip install -r requirements.txt

@MelovZaebl
Copy link
Author

Now error only with cryptography (last 2 screenshots)

@Tkd-Alex
Copy link
Owner

  • pkg install libcrypt-dev
  • pkg install libffi-dev

Reference in: termux/termux-packages#2430

@MelovZaebl
Copy link
Author

Screenshot_2021-02-26-00-48-36-950_com.termux.png
This 2 strings output this

@Tkd-Alex
Copy link
Owner

Sorry, but I don't have a fix for you.
I'm just googling in search of solution, I think you can do the same :)

@Tkd-Alex
Copy link
Owner

However, If you read the screenshot termux suggest installing libffi instead of libffi-dev
So you can try the following:

  • pkg install libffi
  • pip install -r requirements.txt

@spix18
Copy link

spix18 commented Feb 26, 2021

Same issue here , I already tried your suggestions and google search solutions , none worked
Screenshot_20210226-035035933

@spix18
Copy link

spix18 commented Feb 27, 2021

I bring good news , it's seems I found a fix that's was really under my nose and literally in error logs , the fix is to install rust then you just run the requirements command.

Ps: I did install rust while on miner directory but I'm not sure if it's relevant or not.

  • pkg install rust
  • pip install -r requirements.txt

Here a few screenshot

Screenshot_20210227-185810559
Screenshot_20210227-190249102
Screenshot_20210227-190843531

@Tkd-Alex
Copy link
Owner

🥳 Awesome, so the steps should be the following:

Install the requirements
pkg install python git rust libjpeg-turbo libcrypt ndk-sysroot clang zlib
LDFLAGS="-L${PREFIX}/lib/" CFLAGS="-I${PREFIX}/include/" pip install --upgrade wheel pillow

Clone this repository
git clone https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2

(2 way):
Download sources from GitHub and put it into your Termux storage

Now you can enter the directory with our miner, do this by typing this command:
cd Twitch-Channel-Points-Miner-v2

Configure your miner on your preferences by typing
nano example.py

When you have configured it now we can rename it (optional):
mv example.py run.py

We have to also install dependences required to run miner:
pip install -r requirements.txt

Now when we did everything we can run miner:
python run.py

@Tkd-Alex Tkd-Alex closed this as completed Mar 3, 2021
@spix18
Copy link

spix18 commented Feb 15, 2022

So i had to reinstall this on my android phone termux and ran into some issues specifically Cryptography issue , if anyone is still having issue building wheel for cryptography try this :

pip install cryptography --no-binary cryptography

its should correctly finish the process and build wheel for cryptography if everything has ran like i described above then all you have to do is to run the requirement command again just to make sure all requirements are satisfied:

pip install -r requirements.txt

now you can go configure your run.py and python run.py

@13Quavo
Copy link

13Quavo commented May 22, 2022

So i had to reinstall this on my android phone termux and ran into some issues specifically Cryptography issue , if anyone is still having issue building wheel for cryptography try this :

pip install cryptography --no-binary cryptography

its should correctly finish the process and build wheel for cryptography if everything has ran like i described above then all you have to do is to run the requirement command again just to make sure all requirements are satisfied:

pip install -r requirements.txt

now you can go configure your run.py and python run.py

Any solutions? Failed building wheel for cryptography.

@Ult1mat3S
Copy link

Any solutions? Failed building wheel for cryptography.

Try pip install --upgrade cryptography==3.4.6 --no-binary cryptography

@uzi98f
Copy link

uzi98f commented Feb 19, 2023

error
Hi I have this problem Im in the step of pip install -r requirements.txt im in termux, I also have another session with another git I already use pkg install python git rust libjpeg-turbo libcrypt ndk-sysroot clang zlib
LDFLAGS="-L${PREFIX}/lib/" CFLAGS="-I${PREFIX}/include/" pip install --upgrade wheel pillow

@spix18
Copy link

spix18 commented Feb 20, 2023

try with
MATHLIB="m" pip install pandas

@uzi98f
Copy link

uzi98f commented Feb 20, 2023

hi the "MATHLIB="m" pip install pandas" help me but now I have this problem when I tried to run the twith miner "python run.py"
11
22
3_1

@uzi98f
Copy link

uzi98f commented Feb 20, 2023

maybe because I have two session the first with another git

@spix18
Copy link

spix18 commented Feb 20, 2023

Don't forget to modify "run.py" according to your needs (your twitch username and password and channels...etc) because in your first screenshot , you are NOT doing this , you just copy and rename "example.py" to "run.py" and attempt to run it by typing "python run.py"

also after running MATHLIB="m" pip install pandas
you should also run pip install -r requirements.txt to make sure every requirements has been met.

also i don't know if you are using Termux from Google Play or not , the correct termux you should use is from F-Droid or Termux Github , the google play version is not being updated because of google strics rules

@uzi98f
Copy link

uzi98f commented Feb 22, 2023

ohh I think I understand my fail let me check xd thankyou again

@spix18
Copy link

spix18 commented Feb 22, 2023

No problem

@uzi98f
Copy link

uzi98f commented Feb 22, 2023

I think thats the problem Im using the version of https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2 I get twitchapi error code 5023 I will tried with the rdavydov version:) I will tryed this one https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/ its update

@uzi98f
Copy link

uzi98f commented Feb 23, 2023

@spix18 hi bro how I can make my list of streamer but with priority? that follow my list of streamer? :) can you shared me how I need to write please:)

@spix18
Copy link

spix18 commented Feb 24, 2023

@spix18 hi bro how I can make my list of streamer but with priority? that follow my list of streamer? :) can you shared me how I need to write please:)

no idea sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants