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] Cant import faster_than_requests.pyd #221

Closed soyandrey closed 6 months ago

soyandrey commented 8 months ago

Architecture

x86_64 (Default)

Operating System

Windows

Disk

SSD (Solid)

Memory

16 Gigabytes

CPU Cores

4 CPU Cores

Internet Connection

Wifi (WLAN, Wireless)

What is your web browser?

Firefox/Firefox Fork

Device

Desktop PC

Where are you from?

United States

What happened?

i was testing the libary with this code:

import faster_than_requests as requests

print(requests.get("https://example.com"))

But it never works and gets an error

Standard Output Logs

Traceback (most recent call last):
  File "C:\Users\syctxa\AppData\Local\Programs\Python\Python311\Lib\site-packages\nimporter.py", line 979, in __validate_spec
    util.module_from_spec(spec)
  File "<frozen importlib._bootstrap>", line 573, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 1233, in create_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
ImportError: DLL load failed while importing faster_than_requests: The specified module can not be found.

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

Traceback (most recent call last):
  File "c:\Users\Public\Programming\Nimrod\Lingojam\main2.py", line 1, in <module>
    import faster_than_requests as requests
  File "C:\Users\syctxa\AppData\Local\Programs\Python\Python311\Lib\site-packages\faster_than_requests\__init__.py", line 7, in <module>
    from . faster_than_requests import *
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1138, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1078, in _find_spec
  File "C:\Users\syctxa\AppData\Local\Programs\Python\Python311\Lib\site-packages\nimporter.py", line 1269, in find_spec
    return Nimporter.import_nim_code(fullname, path, library=False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\syctxa\AppData\Local\Programs\Python\Python311\Lib\site-packages\nimporter.py", line 957, in import_nim_code
    cls.__validate_spec(spec)
  File "C:\Users\syctxa\AppData\Local\Programs\Python\Python311\Lib\site-packages\nimporter.py", line 1025, in __validate_spec
    raise NimporterException(error_message) from import_error
nimporter.NimporterException: Error importing C:\Users\syctxa\AppData\Local\Programs\Python\Python311\Lib\site-packages\faster_than_requests\__pycache__\faster_than_requests.pyd
Error Message:

    DLL load failed while importing faster_than_requests: The specified module can not be found.

Python Version:

    3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]

Nim Version:

    Nim Compiler Version 2.0.0 [Windows: amd64]

CC Version:

    <No compatible C compiler installed>

Installed CCs:

    {'gcc': WindowsPath('C:/Users/syctxa/.nimble/bin/gcc.EXE')}
github-actions[bot] commented 8 months ago

Welcome soyandrey

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 6 months 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 6 months ago

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