juancarlospaco / faster-than-requests

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

ImportError: dynamic module does not define module export function (PyInit_faster_than_requests) #216

Closed itschasa closed 1 year ago

itschasa commented 1 year ago

Architecture

x86_64 (Default)

Operating System

Windows

Disk

SSD (Solid)

Memory

16 Gigabytes

CPU Cores

6 CPU Cores

Internet Connection

Optical Fiber (very fast)

What is your web browser?

Chrome/Chromium

Device

Desktop PC

Where are you from?

United Kingdom

What happened?

ive downloaded nim, and have compiled to a .pyd file successfully. however when i import the lib, it gives the error ImportError: dynamic module does not define module export function (PyInit_faster_than_requests)

image

inside faster_than_requests image

Standard Output Logs

nim c -d:ssl -d:danger --app:lib --tlsEmulation:on --out:faster_than_requests.pyd faster_than_requests.nim

Hint: used config file 'C:\Users\chasa\.choosenim\toolchains\nim-1.6.12\config\nim.cfg' [Conf]
Hint: used config file 'C:\Users\chasa\.choosenim\toolchains\nim-1.6.12\config\config.nims' [Conf]
Hint: used config file 'D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim.cfg' [Conf]
......................................................................................................................
D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim(140, 8) template/generic instantiation of `fetch` from here
D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim(91, 7) Warning: The bare except clause is deprecated; use `except CatchableError:` instead [BareExcept]
D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim(140, 8) template/generic instantiation of `fetch` from here
D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim(94, 5) Warning: The bare except clause is deprecated; use `except CatchableError:` instead [BareExcept]
D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim(144, 8) template/generic instantiation of `fetch` from here
D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim(91, 7) Warning: The bare except clause is deprecated; use `except CatchableError:` instead [BareExcept]
D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim(144, 8) template/generic instantiation of `fetch` from here
D:\Coding\personal shit\sniper test py\faster_than_requests\faster_than_requests.nim(94, 5) Warning: The bare except clause is deprecated; use `except CatchableError:` instead [BareExcept]
Hint:  [Link]
Hint: gc: refc; threads: on; opt: speed; options: -d:danger
64499 lines; 1.956s; 93.77MiB peakmem; proj: faster_than_requests; out: faster_than_requests.pyd [SuccessX]

py main.py

Traceback (most recent call last):
  File "D:\Coding\personal shit\sniper test py\main.py", line 23, in <module>
    import faster_than_requests
  File "D:\Coding\personal shit\sniper test py\faster_than_requests\__init__.py", line 7, in <module>
    from . faster_than_requests import *
ImportError: dynamic module does not define module export function (PyInit_faster_than_requests)
github-actions[bot] commented 1 year ago

Welcome itschasa

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")