MShawon / YouTube-Viewer

A multithreaded view bot for YouTube
MIT License
1.48k stars 751 forks source link

pip install -r requirements.txt error #610

Open ItsPanny14 opened 4 months ago

ItsPanny14 commented 4 months ago

Is there an existing issue for this?

I'm submitting a ...

Description

pip install -r requirements.txt error basically when i try to install everything works but requirements install fail and give me error everytime please help me resolve this error

Environment

- OS : Windows 10
- Python : python 3.11
- Script version : v1.8.0

config.json

C:\Users\Marius\YouTube-Viewer>pip install -r requirements.txt
Collecting async-generator==1.10 (from -r requirements.txt (line 1))
  Using cached async_generator-1.10-py3-none-any.whl.metadata (4.9 kB)
Collecting attrs==21.4.0 (from -r requirements.txt (line 2))
  Using cached attrs-21.4.0-py2.py3-none-any.whl.metadata (9.8 kB)
Collecting beautifulsoup4==4.11.1 (from -r requirements.txt (line 3))
  Using cached beautifulsoup4-4.11.1-py3-none-any.whl.metadata (3.5 kB)
Collecting bs4==0.0.1 (from -r requirements.txt (line 4))
  Using cached bs4-0.0.1.tar.gz (1.1 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "C:\Users\Marius\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\setuptools\__init__.py", line 248, in <module>
          monkey.patch_all()
        File "C:\Users\Marius\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\setuptools\monkey.py", line 99, in patch_all
          patch_for_msvc_specialized_compiler()
        File "C:\Users\Marius\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\setuptools\monkey.py", line 169, in patch_for_msvc_specialized_compiler
          patch_func(*msvc14('_get_vc_env'))
                      ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Marius\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\setuptools\monkey.py", line 149, in patch_params
          mod = import_module(mod_name)
                ^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\importlib\__init__.py", line 126, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Marius\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\setuptools\_distutils\_msvccompiler.py", line 20, in <module>
          import unittest.mock
        File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\unittest\__init__.py", line 61, in <module>
          from .case import (addModuleCleanup, TestCase, FunctionTestCase, SkipTest, skip,
      SyntaxError: source code string cannot contain null bytes
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
davletbaevtr commented 1 month ago

same

akumathedyn123 commented 1 month ago

@davletbaevtr @ItsPanny14 @MShawon @actions-user https://github.com/akumathedyn123/js-yt-view-bot