Comments (6)
I would agree with @HeeebsInc since faster_than_requests came up few months back, i tried to use it and putted too much effort but i was not able to even run it till this day.
Windows 10 64-bit
Python 3.10.5
Following Error when trying to use the compiled version using nim
import faster_than_requests as requests
ImportError: dynamic module does not define module export function (PyInit_faster_than_requests)
And when tried using pip install faster_than_requests
then following error
Traceback (most recent call last):
File "C:\Users\Mani\Desktop\image_scraper.py", line 1, in <module>
import faster_than_requests as requests
File "C:\Users\Mani\AppData\Local\Programs\Python\Python310\lib\site-packages\faster_than_requests\__init__.py", line 7, in <module>
from . faster_than_requests import *
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 945, in _find_spec
File "C:\Users\Mani\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter\nimporter.py", line 253, in <lambda>
lambda fullname, path, _: nimport(fullname, path, library=False)
File "C:\Users\Mani\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter\nimporter.py", line 214, in nimport
ext = ExtLib(module_path, Path(), library)
File "C:\Users\Mani\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter\lib.py", line 316, in __init__
self.import_namespace = get_import_path(self.relative_path, root)
File "C:\Users\Mani\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter\lib.py", line 111, in get_import_path
import_prefix = get_import_prefix(module_path.parent, root)
File "C:\Users\Mani\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter\lib.py", line 104, in get_import_prefix
assert full_path >= root_path, 'Extension path is not within root dir.'
AssertionError: Extension path is not within root dir.
from faster-than-requests.
solved guys
you need to use python 3.8
this is my output
py -3.8 -m pip install faster-than-requests
Collecting faster-than-requests
Using cached https://files.pythonhosted.org/packages/f0/9b/f392487c0ddb086aad681a781fbb1da4fcd2761920d20cfae18ecb724e67/faster_than_requests-21.03.03.zip
Collecting nimporter (from faster-than-requests)
Downloading https://files.pythonhosted.org/packages/96/3c/ded65fcf69a8a487be84f96ab3072bfd4133ec40617ab60421f87c9684f5/nimporter-1.1.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: nimporter
Building wheel for nimporter (PEP 517) ... done
Created wheel for nimporter: filename=nimporter-1.1.0-cp38-none-any.whl size=24144 sha256=2e5beadf4d9233d1032786bb6e820123e4bff4bae6dc2e087648b1a404e16587
Stored in directory: C:\Users\kamel\AppData\Local\pip\Cache\wheels\0b\27\f1\ae2dddddf2b8afa7efefb45d58caa4c5067cf75b39f1265f55
Successfully built nimporter
Installing collected packages: nimporter, faster-than-requests
Running setup.py install for faster-than-requests ... done
Successfully installed faster-than-requests-21.3.3 nimporter-1.1.0
Worked
from faster-than-requests.
Welcome HeeebsInc
- Remember to ⭐ Star the project on GitHub!.
- Congrats for your first issue!, please provide a minimal code example that reproduces the 🐛 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,
❤️ Send crypto today to speed up development!:
Bitcoin BTC
BEP20 Binance Smart Chain Network BSC
0xb78c4cf63274bb22f83481986157d234105ac17e
BTC Bitcoin Network
1Pnf45MgGgY32X4KDNJbutnpx96E4FxqVi
Lightning Network
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
from faster-than-requests.
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.
from faster-than-requests.
This issue has been marked as Stale and closed due to inactivity after 100 days.
from faster-than-requests.
@dev-mani did you find a solution to your problem? i have the same issue
from faster-than-requests.
Related Issues (20)
- Can't install with pip [bug] HOT 10
- Can't locate my nim installation on EC2 Server [bug] HOT 1
- [Errno 2] No such file or directory: 'nimble' HOT 6
- [bug] No puedo instalarlo en python3.11 HOT 3
- Installing with pip returns an error HOT 2
- [bug] HOT 3
- Segmentation fault [bug] HOT 3
- FAQ: How is faster-than-requests faster than requests? HOT 2
- [bug] Cannot find reference 'put' in __init__.py HOT 4
- [bug] faster-than-requests doesn't work on Apple Silicon HOT 9
- its broken bruh HOT 4
- Is it possible to use a proxy with download ? HOT 4
- ImportError: dynamic module does not define module export function (PyInit_faster_than_requests) HOT 1
- [bug] CANNT INSTALL ON ARM64 HOT 3
- [bug] Nim documentation missing from README.md HOT 5
- [bug] The bare except clause is deprecated; use `except CatchableError:` instead [BareExcept] HOT 3
- [bug] No module named 'faster_than_requests' in ubuntu 22.04 install via pip using root access HOT 2
- [bug] Cant import faster_than_requests.pyd HOT 3
- [bug] unable to install from pip HOT 3
- FileNotFoundError: [Errno 2] No such file or directory: 'nimble' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faster-than-requests.