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)
inside faster_than_requests
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)
Congrats for your first issue!, please provide a minimal code example that reproduces the :bug: Bug!.
Reports with full repro code and descriptive detailed information will be fixed faster.
Please, keep in mind there is ZERO FUNDING for the project!, we have no sponsors, no company behind, no dev team,
:heart: Send crypto today to speed up development!:
Bitcoin BTC
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)
inside faster_than_requests
Standard Output Logs