Pip install error

I’ve tried downloading packages in 2 ways and I’m getting problems. I couldn’t find a solution, I uninstalled pip and reinstalled it, but it still didn’t work. Trying to download all version packages on path 1.

pip install reppy                                                                                                                                                          

Defaulting to user installation because normal site-packages is not writeable
Collecting reppy
  Downloading reppy-0.4.14.tar.gz (93 kB)
     |████████████████████████████████| 93 kB 856 kB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rj61qxfd/reppy_9b7e7f95557c424091d6baedd537b6bc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rj61qxfd/reppy_9b7e7f95557c424091d6baedd537b6bc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ewwk0e6r
         cwd: /tmp/pip-install-rj61qxfd/reppy_9b7e7f95557c424091d6baedd537b6bc/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/merlins/.local/lib/python3.9/site-packages/setuptools/__init__.py", line 20, in <module>
        from setuptools.dist import Distribution, Feature
      File "/home/merlins/.local/lib/python3.9/site-packages/setuptools/dist.py", line 34, in <module>
        from setuptools.depends import Require
      File "/home/merlins/.local/lib/python3.9/site-packages/setuptools/depends.py", line 7, in <module>
        from .py33compat import Bytecode
      File "/home/merlins/.local/lib/python3.9/site-packages/setuptools/py33compat.py", line 55, in <module>
        unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
    AttributeError: 'HTMLParser' object has no attribute 'unescape'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/b0/b9/8bb8a4cd95dfc6038fb721fad95da8e9558ec936688150302cbd7874c45c/reppy-0.4.14.tar.gz#sha256=ad98ca17bfc39f543e81b85278f71ceaa1ba3f7c6817ff5a18f7305afa5fff87 (from https://pypi.org/simple/reppy/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

merlins@jimmmmy ~$ sudo pip install reppy                                                                                                                                                1 ↵  

[sudo] password for merlins: 
Collecting reppy
  Downloading reppy-0.4.14.tar.gz (93 kB)
     |████████████████████████████████| 93 kB 819 kB/s 
Collecting cachetools
  Downloading cachetools-4.2.2-py3-none-any.whl (11 kB)
Requirement already satisfied: python-dateutil!=2.0,>=1.5 in /usr/lib/python3.9/site-packages (from reppy) (2.8.2)
Requirement already satisfied: requests in /usr/lib/python3.9/site-packages (from reppy) (2.26.0)
Requirement already satisfied: six in /usr/lib/python3.9/site-packages (from reppy) (1.16.0)
Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.9/site-packages (from requests->reppy) (4.0.0)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3.9/site-packages (from requests->reppy) (3.2)
Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.9/site-packages (from requests->reppy) (1.26.6)
Using legacy 'setup.py install' for reppy, since package 'wheel' is not installed.
Installing collected packages: cachetools, reppy
    Running setup.py install for reppy ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xps5gcqw/reppy_632086672296431490d26b52e018a483/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xps5gcqw/reppy_632086672296431490d26b52e018a483/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rawfsi9c/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/reppy
         cwd: /tmp/pip-install-xps5gcqw/reppy_632086672296431490d26b52e018a483/
    Complete output (43 lines):
    Building from C++
    /usr/lib/python3.9/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
      warnings.warn(
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.9
    creating build/lib.linux-x86_64-3.9/reppy
    copying reppy/ttl.py -> build/lib.linux-x86_64-3.9/reppy
    copying reppy/exceptions.py -> build/lib.linux-x86_64-3.9/reppy
    copying reppy/util.py -> build/lib.linux-x86_64-3.9/reppy
    copying reppy/__init__.py -> build/lib.linux-x86_64-3.9/reppy
    creating build/lib.linux-x86_64-3.9/reppy/cache
    copying reppy/cache/policy.py -> build/lib.linux-x86_64-3.9/reppy/cache
    copying reppy/cache/__init__.py -> build/lib.linux-x86_64-3.9/reppy/cache
    running build_ext
    building 'reppy.robots' extension
    creating build/temp.linux-x86_64-3.9
    creating build/temp.linux-x86_64-3.9/reppy
    creating build/temp.linux-x86_64-3.9/reppy/rep-cpp
    creating build/temp.linux-x86_64-3.9/reppy/rep-cpp/deps
    creating build/temp.linux-x86_64-3.9/reppy/rep-cpp/deps/url-cpp
    creating build/temp.linux-x86_64-3.9/reppy/rep-cpp/deps/url-cpp/src
    creating build/temp.linux-x86_64-3.9/reppy/rep-cpp/src
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -Ireppy/rep-cpp/include -Ireppy/rep-cpp/deps/url-cpp/include -I/usr/include/python3.9 -c reppy/rep-cpp/deps/url-cpp/src/psl.cpp -o build/temp.linux-x86_64-3.9/reppy/rep-cpp/deps/url-cpp/src/psl.o -std=c++11
    In file included from reppy/rep-cpp/deps/url-cpp/src/psl.cpp:7:
    reppy/rep-cpp/deps/url-cpp/include/punycode.h:56:54: error: ‘numeric_limits’ is not a member of ‘std’
       56 |         const punycode_uint MAX_PUNYCODE_UINT = std::numeric_limits<punycode_uint>::max();
          |                                                      ^~~~~~~~~~~~~~
    reppy/rep-cpp/deps/url-cpp/include/punycode.h:56:82: error: expected primary-expression before ‘>’ token
       56 |         const punycode_uint MAX_PUNYCODE_UINT = std::numeric_limits<punycode_uint>::max();
          |                                                                                  ^
    reppy/rep-cpp/deps/url-cpp/include/punycode.h:56:85: error: ‘::max’ has not been declared; did you mean ‘std::max’?
       56 |         const punycode_uint MAX_PUNYCODE_UINT = std::numeric_limits<punycode_uint>::max();
          |                                                                                     ^~~
          |                                                                                     std::max
    In file included from /usr/include/c++/11.1.0/algorithm:62,
                     from reppy/rep-cpp/deps/url-cpp/src/psl.cpp:1:
    /usr/include/c++/11.1.0/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
     3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
          |     ^~~
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xps5gcqw/reppy_632086672296431490d26b52e018a483/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xps5gcqw/reppy_632086672296431490d26b52e018a483/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rawfsi9c/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/reppy Check the logs for full command output.

thank you , master

1 Like