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] Extension path is not within root dir #195

Closed chriseomi closed 1 year ago

chriseomi commented 2 years ago

Architecture

x86_64 (Default)

Operating System

Linux

Disk

SSD (Solid)

Memory

256 Gigabytes

CPU Cores

16 CPU Cores

Internet Connection

LAN (RJ45, Local, etc)

What is your web browser?

Chrome/Chromium

Device

Server PC

Where are you from?

United States

What happened?

Python script exits with error on the the library invocation:

import faster_than_requests as ftr

Standard Output Logs

Traceback (most recent call last):
  File "/home/zzz/blah/latest/test.py", line 19, in <module>
    import faster_than_requests as ftr
  File "/home/zzz/.local/lib/python3.10/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 "/home/zzz/.local/lib/python3.10/site-packages/nimporter/nimporter.py", line 253, in <lambda>
    lambda fullname, path, _: nimport(fullname, path, library=False)
  File "/home/zzz/.local/lib/python3.10/site-packages/nimporter/nimporter.py", line 214, in nimport
    ext = ExtLib(module_path, Path(), library)
  File "/home/zzz/.local/lib/python3.10/site-packages/nimporter/lib.py", line 316, in __init__
    self.import_namespace = get_import_path(self.relative_path, root)
  File "/home/zzz/.local/lib/python3.10/site-packages/nimporter/lib.py", line 111, in get_import_path
    import_prefix = get_import_prefix(module_path.parent, root)
  File "/home/zzz/.local/lib/python3.10/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.
github-actions[bot] commented 2 years ago

Welcome chriseomi

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 1 year ago

This issue is Stale because it has been open for 90 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 1 year ago

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