Giter Site home page Giter Site logo

Comments (6)

salehusman avatar salehusman commented on June 2, 2024 2

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.

Omar-TI avatar Omar-TI commented on June 2, 2024 1

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.

github-actions avatar github-actions commented on June 2, 2024

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
Binance

https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3

from faster-than-requests.

github-actions avatar github-actions commented on June 2, 2024

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.

github-actions avatar github-actions commented on June 2, 2024

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

from faster-than-requests.

itschasa avatar itschasa commented on June 2, 2024

@dev-mani did you find a solution to your problem? i have the same issue

from faster-than-requests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.