rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.1k stars 324 forks source link

Pip install irc error #439

Closed Heyo7726 closed 5 months ago

Heyo7726 commented 5 months ago

Describe the bug

When i did "pip install irc" on termux i got a error.

Steps to reproduce

Go on termux Write pip install irc

Expected behavior

A error occours.

Operating system

Android

Python version

Latest

Miner version

Latest (i did git clone)

Other relevant software versions

No response

Logs

~ $ pip install irc Collecting irc Using cached irc-20.3.1-py3-none-any.whl.metadata (10 kB) Collecting jaraco.collections (from irc) Using cached jaraco.collections-5.0.0-py3-none-any.whl.metadata (4.1 kB) Collecting jaraco.text>=3.10 (from irc) Using cached jaraco.text-3.12.0-py3-none-any.whl.metadata (4.0 kB) Collecting jaraco.logging (from irc) Using cached jaraco.logging-3.3.0-py3-none-any.whl.metadata (2.3 kB) Collecting jaraco.functools>=1.20 (from irc) Using cached jaraco.functools-4.0.0-py3-none-any.whl.metadata (3.1 kB) Collecting jaraco.stream (from irc) Using cached jaraco.stream-3.0.3-py3-none-any.whl (6.0 kB) Collecting pytz (from irc) Using cached pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB) Collecting more-itertools (from irc) Downloading more_itertools-10.2.0-py3-none-any.whl.metadata (34 kB) Collecting tempora>=1.6 (from irc) Using cached tempora-5.5.0-py3-none-any.whl.metadata (3.5 kB) Collecting jaraco.context>=4.1 (from jaraco.text>=3.10->irc) Using cached jaraco.context-4.3.0-py3-none-any.whl (5.3 kB) Collecting autocommand (from jaraco.text>=3.10->irc) Using cached autocommand-2.2.2-py3-none-any.whl (19 kB) Collecting inflect (from jaraco.text>=3.10->irc) Using cached inflect-7.0.0-py3-none-any.whl.metadata (21 kB) Collecting pydantic>=1.9.1 (from inflect->jaraco.text>=3.10->irc) Using cached pydantic-2.5.3-py3-none-any.whl.metadata (65 kB) Collecting typing-extensions (from inflect->jaraco.text>=3.10->irc) Using cached typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB) Collecting annotated-types>=0.4.0 (from pydantic>=1.9.1->inflect->jaraco.text>=3.10->irc) Using cached annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB) Collecting pydantic-core==2.14.6 (from pydantic>=1.9.1->inflect->jaraco.text>=3.10->irc) Using cached pydantic_core-2.14.6.tar.gz (360 kB) Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [60 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.4.0.tar.gz (177 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting typing-extensions!=4.7.0,>=4.6.0 Using cached typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB) Using cached typing_extensions-4.9.0-py3-none-any.whl (32 kB) Building wheels for collected packages: maturin Building wheel for maturin (pyproject.toml): started Building wheel for maturin (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

    × Building wheel for maturin (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [35 lines of output]
        /data/data/com.termux/files/usr/tmp/pip-build-env-y8wba435/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
          corresp(dist, value, root_dir)
        running bdist_wheel
        running build
        running build_py
        creating build
        creating build/lib.linux-armv7l-cpython-311
        creating build/lib.linux-armv7l-cpython-311/maturin
        copying maturin/__init__.py -> build/lib.linux-armv7l-cpython-311/maturin
        copying maturin/__main__.py -> build/lib.linux-armv7l-cpython-311/maturin
        copying maturin/import_hook.py -> build/lib.linux-armv7l-cpython-311/maturin
        running egg_info
        creating maturin.egg-info
        writing maturin.egg-info/PKG-INFO
        writing dependency_links to maturin.egg-info/dependency_links.txt
        writing requirements to maturin.egg-info/requires.txt
        writing top-level names to maturin.egg-info/top_level.txt
        writing manifest file 'maturin.egg-info/SOURCES.txt'
        reading manifest file 'maturin.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        warning: no files found matching '*.json' under directory 'src/python_interpreter'
        writing manifest file 'maturin.egg-info/SOURCES.txt'
        running build_ext
        running build_rust
        error: can't find Rust compiler

        If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

        To update pip, run:

            pip install --upgrade pip

        and then retry package installation.

        If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for maturin
  Failed to build maturin
  ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Additional context

If someone can help me fix this i appreciate.

Things people may ask: Q. Why are you doing it on mobile? R= On termux, if you dont close the session it can last forever until the phone uncharges

Q. Can termux really run python files? R= Yes, it can run any python file if you have all the requirements.

rdavydov commented 5 months ago

Duplicate. Search issues and discussions before creating a new one.

rdavydov commented 5 months ago

https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/discussions/311#discussioncomment-6457778

rdavydov commented 5 months ago

https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/issues/47#issuecomment-1556017334

Heyo7726 commented 5 months ago

#311 (reply in thread)

When i tried to clone into the github repo i got this error: Cloning into 'TwitchMiner'... /usr/lib/git-core/git-remote-https: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout

Heyo7726 commented 5 months ago

Every single command i run i get rhe same thing

rdavydov commented 5 months ago

@Heyo7726 How about googling that error?

https://www.google.com/search?q=%2Fusr%2Flib%2Fgit-core%2Fgit-remote-https%3A+symbol+lookup+error%3A+%2Fusr%2Flib%2Flibcurl.so.4%3A+undefined+symbol%3A+libssh2_session_set_read_timeout

Google is your friend.

Heyo7726 commented 5 months ago

@Heyo7726 How about googling that error?

https://www.google.com/search?q=%2Fusr%2Flib%2Fgit-core%2Fgit-remote-https%3A+symbol+lookup+error%3A+%2Fusr%2Flib%2Flibcurl.so.4%3A+undefined+symbol%3A+libssh2_session_set_read_timeout

Google is your friend.

None are working, ended up with a troll telling me to delete libcurl.so.4

Heyo7726 commented 5 months ago

I will delete arch and try the #47