juancarlospaco / faster-than-requests

Faster requests on Python 3
https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e
MIT License
1.09k stars 91 forks source link

[bug] There is an issue with installing the library using pip on Jupyter Notebook #224

Closed dhruvilshah25 closed 1 month ago

dhruvilshah25 commented 3 months ago

Architecture

x86_64 (Default)

Operating System

Linux

Disk

SSD (Solid)

Memory

1 Gigabytes

CPU Cores

1 CPU Cores

Internet Connection

Optical Fiber (very fast)

What is your web browser?

Chrome/Chromium

Device

Desktop PC

Where are you from?

Afghanistan

What happened?

I used !pip install faster-than-requests --disable-pip-version-check --no-binary :all: --use-deprecated=legacy-resolver

Collecting faster-than-requests Using cached faster_than_requests-21.03.03.zip (4.9 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [96 lines of output] /opt/conda/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) /opt/conda/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [51 lines of output]
        running bdist_wheel
        running build
        /opt/conda/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        installing to build/bdist.linux-x86_64/wheel
        running install
        running install_egg_info
        running egg_info
        writing choosenim_install.egg-info/PKG-INFO
        writing dependency_links to choosenim_install.egg-info/dependency_links.txt
        deleting choosenim_install.egg-info/requires.txt
        writing top-level names to choosenim_install.egg-info/top_level.txt
        writing manifest file 'choosenim_install.egg-info/SOURCES.txt'
        reading manifest file 'choosenim_install.egg-info/SOURCES.txt'
        writing manifest file 'choosenim_install.egg-info/SOURCES.txt'
        Copying choosenim_install.egg-info to build/bdist.linux-x86_64/wheel/choosenim_install-0.5.5-py3.10.egg-info
        running install_scripts
        /bin/sh: 1: choosenim: not found
        choosenim-init: Downloading choosenim-0.8.4_linux_amd64
        could not load: libcurl.so(|.4)
        (compile with -d:nimDebugDlOpen for more information)
        /tmp/pip-wheel-aqqhhcug/choosenim-install_5b6c163f020b4c16b7c72dfaad1aafc3/setup.py:107: UserWarning: Failed to run sh init.sh -y
          warnings.warn("Failed to run " + choosenim_cmd)
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/tmp/pip-wheel-aqqhhcug/choosenim-install_5b6c163f020b4c16b7c72dfaad1aafc3/setup.py", line 210, in <module>
            setuptools.setup(
          File "/opt/conda/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
          File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
            return run_commands(dist)
          File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
            dist.run_commands()
          File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
            self.run_command(cmd)
          File "/opt/conda/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/opt/conda/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 335, in run
            self.run_command('install')
          File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
            self.distribution.run_command(command)
          File "/opt/conda/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/tmp/pip-wheel-aqqhhcug/choosenim-install_5b6c163f020b4c16b7c72dfaad1aafc3/setup.py", line 208, in run
            raise Exception(IOError, "Failed to install choosenim")
        Exception: (<class 'OSError'>, 'Failed to install choosenim')
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for choosenim_install
  ERROR: Failed to build one or more wheels
  Traceback (most recent call last):
    File "/opt/conda/lib/python3.10/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
      subprocess.check_call(cmd)
    File "/opt/conda/lib/python3.10/subprocess.py", line 369, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['/opt/conda/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpobhhzy7s', '--quiet', 'choosenim_install']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-oc6h03ig/faster-than-requests/setup.py", line 2, in <module>
      setuptools.setup(package_data = {"": ["*.nim", "*.nims", "*.cfg", "*.dll", "*.so", "*.h", "*.hpp"]})
    File "/opt/conda/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup
      _install_setup_requires(attrs)
    File "/opt/conda/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/opt/conda/lib/python3.10/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
    File "/opt/conda/lib/python3.10/site-packages/pkg_resources/__init__.py", line 789, in resolve
      dist = best[req.key] = env.best_match(
    File "/opt/conda/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1075, in best_match
      return self.obtain(req, installer)
    File "/opt/conda/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1087, in obtain
      return installer(requirement)
    File "/opt/conda/lib/python3.10/site-packages/setuptools/dist.py", line 945, in fetch_build_egg
      return fetch_build_egg(self, req)
    File "/opt/conda/lib/python3.10/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
      raise DistutilsError(str(e)) from e
  distutils.errors.DistutilsError: Command '['/opt/conda/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpobhhzy7s', '--quiet', 'choosenim_install']' returned non-zero exit status 1.
  [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. ╰─> faster-than-requests

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

Standard Output Logs

No response

github-actions[bot] commented 3 months ago

Welcome dhruvilshah25

BEP20 Binance Smart Chain Network BSC

0xb78c4cf63274bb22f83481986157d234105ac17e

BTC Bitcoin Network

1Pnf45MgGgY32X4KDNJbutnpx96E4FxqVi

Lightning Network

juancarlospaco@bitrefill.me

Ethereum ETH Dai DAI Uniswap UNI Axie Infinity AXS Smooth Love Potion SLP **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Tether USDT **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **TRC20 Tron Network** ``` TWGft53WgWvH2mnqR8ZUXq1GD8M4gZ4Yfu ```
Solana SOL **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **SOL Solana Network** ``` FKaPSd8kTUpH7Q76d77toy1jjPGpZSxR4xbhQHyCMSGq ```
Cardano ADA **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ADA Cardano Network** ``` DdzFFzCqrht9Y1r4Yx7ouqG9yJNWeXFt69xavLdaeXdu4cQi2yXgNWagzh52o9k9YRh3ussHnBnDrg7v7W2hSXWXfBhbo2ooUKRFMieM ```
Sandbox SAND Decentraland MANA **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Algorand ALGO **ALGO Algorand Network** ``` WM54DHVZQIQDVTHMPOH6FEZ4U2AU3OBPGAFTHSCYWMFE7ETKCUUOYAW24Q ```
Binance [https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3](https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3 "Send via Binance Pay")
github-actions[bot] commented 1 month ago

This issue is Stale because it has been open for 100 days with no activity. Contribute a fix or comment on the issue, or it will be closed in a few days.

github-actions[bot] commented 1 month ago

This issue has been marked as Stale and closed due to inactivity after 100 days.