tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.06k stars 2.23k forks source link

I have a problem installing the package #3194

Open berk-efe opened 1 year ago

berk-efe commented 1 year ago

I tried to download the package as usual. But it did not work

Collecting yowsup
  Using cached yowsup-3.3.0-py3-none-any.whl (284 kB)
Collecting argparse
  Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting consonance==0.1.5
  Using cached consonance-0.1.5-py3-none-any.whl (35 kB)
Collecting python-axolotl==0.2.2
  Using cached python_axolotl-0.2.2-py3-none-any.whl (76 kB)
Collecting protobuf>=3.6.0
  Using cached protobuf-4.21.12-cp310-abi3-win_amd64.whl (527 kB)
Collecting readline
  Using cached readline-6.2.4.1.tar.gz (2.3 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error: this module is not meant to work on Windows
      [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.

Also when i could not do that i tried to download its zip file and install the requirements.txt file. But i got this error now

C:\Users\qzen\Downloads\yowsup-3.3.0>pip install -r requirements.txt
Collecting appdirs==1.4.4
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting cffi==1.15.0
  Downloading cffi-1.15.0-cp310-cp310-win_amd64.whl (180 kB)
     ---------------------------------------- 180.3/180.3 kB 1.2 MB/s eta 0:00:00
Collecting consonance==0.1.5
  Using cached consonance-0.1.5-py3-none-any.whl (35 kB)
Collecting cryptography==36.0.0
  Downloading cryptography-36.0.0-cp36-abi3-win_amd64.whl (2.2 MB)
     ---------------------------------------- 2.2/2.2 MB 2.2 MB/s eta 0:00:00
Collecting dissononce==0.34.3
  Downloading dissononce-0.34.3-py3-none-any.whl (51 kB)
     ---------------------------------------- 51.8/51.8 kB 2.6 MB/s eta 0:00:00
Collecting protobuf==4.0.0rc2
  Downloading protobuf-4.0.0rc2-py2.py3-none-any.whl (438 kB)
     ---------------------------------------- 438.4/438.4 kB 2.5 MB/s eta 0:00:00
Requirement already satisfied: pycparser==2.21 in c:\users\qzen\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 7)) (2.21)
Collecting python-axolotl==0.2.2
  Using cached python_axolotl-0.2.2-py3-none-any.whl (76 kB)
Collecting python-axolotl-curve25519==0.4.1.post2
  Downloading python-axolotl-curve25519-0.4.1.post2.tar.gz (79 kB)
     ---------------------------------------- 79.9/79.9 kB 4.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting six==1.10.0
  Using cached six-1.10.0-py2.py3-none-any.whl (10 kB)
Collecting transitions==0.8.10
  Downloading transitions-0.8.10-py2.py3-none-any.whl (83 kB)
     ---------------------------------------- 83.9/83.9 kB 4.6 MB/s eta 0:00:00
Requirement already satisfied: setuptools in c:\users\qzen\appdata\local\programs\python\python310\lib\site-packages (from protobuf==4.0.0rc2->-r requirements.txt (line 6)) (65.6.3)
WARNING: The candidate selected for download or install is a yanked version: 'protobuf' candidate (version 4.0.0rc2 at https://files.pythonhosted.org/packages/b7/d3/37c36b3f5b125ac0d5b9f10d51dbecca355e24c233fd8e447c9879338ec2/protobuf-4.0.0rc2-py2.py3-none-any.whl (from https://pypi.org/simple/protobuf/))
Reason for being yanked: 4.0.0 RC releases superseded by 3.13.0
Installing collected packages: six, python-axolotl-curve25519, appdirs, transitions, protobuf, cffi, cryptography, python-axolotl, dissononce, consonance
  DEPRECATION: python-axolotl-curve25519 is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for python-axolotl-curve25519 ... error
  error: subprocess-exited-with-error

  × Running setup.py install for python-axolotl-curve25519 did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      C:\Users\qzen\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:529: UserWarning: Normalizing '0.4.1-2' to '0.4.1.post2'
        warnings.warn(tmpl.format(**locals()))
      running install
      C:\Users\qzen\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      building 'axolotl_curve25519' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

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

× Encountered error while trying to install package.
╰─> python-axolotl-curve25519

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

python version: 3.10 I checked the pip and setup_tools package, both of them up to date.

I am using windows 10

ebaskoro commented 1 year ago

From the error message:

Microsoft Visual C++ 14.0 or greater is required

it looks like you don't have the tool installed.