juancarlospaco / faster-than-requests

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

FileNotFoundError: [Errno 2] No such file or directory: 'nimble' #223

Closed Vildnex closed 2 months ago

Vildnex commented 4 months ago

Architecture

x86_64 (Default)

Operating System

Linux

Disk

SSD (Solid)

Memory

16 Gigabytes

CPU Cores

16 CPU Cores

Internet Connection

Optical Fiber (very fast)

What is your web browser?

Chrome/Chromium

Device

Desktop PC

Where are you from?

Romania

What happened?

I have the same problem as previously discussed in this bug but I do get it with the newer versions.

Dockerfile:

FROM ubuntu:24.04

RUN apt-get update -y && apt-get install -y \
    python3 \
    python3-pip \
    curl \
    git

RUN curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s - -y
RUN echo 'export PATH="$HOME/.nimble/bin:$PATH"' >> ~/.bashrc
RUN /bin/bash -c "source ~/.bashrc"

COPY . /app

WORKDIR /app

RUN pip3 install -r requirements.txt  --break-system-packages

ENTRYPOINT [ "python3" ]
CMD [ "main.py" ]

main.py:

import faster_than_requests as requests
print("DONE")

requirements.txt:

setuptools~=69.1.0
git+https://github.com/Pebaz/nimporter
faster_than_requests~=21.3.3

Standard Output Logs

The full output of my error:

Traceback (most recent call last):
2024-02-20T16:00:26.210019242Z   File "/app/kucoin_bot.py", line 13, in <module>
2024-02-20T16:00:26.210042359Z     from kucoin_client import Client
2024-02-20T16:00:26.210054792Z   File "/app/kucoin_client.py", line 1, in <module>
2024-02-20T16:00:26.210067712Z     import faster_than_requests as requests
2024-02-20T16:00:26.210081471Z   File "/usr/local/lib/python3.11/dist-packages/faster_than_requests/__init__.py", line 7, in <module>
2024-02-20T16:00:26.210102005Z     from . faster_than_requests import *
2024-02-20T16:00:26.210114856Z   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
2024-02-20T16:00:26.210127288Z   File "<frozen importlib._bootstrap>", line 1138, in _find_and_load_unlocked
2024-02-20T16:00:26.210140069Z   File "<frozen importlib._bootstrap>", line 1078, in _find_spec
2024-02-20T16:00:26.210152152Z   File "/usr/local/lib/python3.11/dist-packages/nimporter/nimporter.py", line 259, in <lambda>
2024-02-20T16:00:26.210167797Z     lambda fullname, path, _: nimport(fullname, path, library=False)
2024-02-20T16:00:26.210181696Z                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-20T16:00:26.210196363Z   File "/usr/local/lib/python3.11/dist-packages/nimporter/nimporter.py", line 221, in nimport
2024-02-20T16:00:26.210208306Z     compile_extension_to_lib(ext)
2024-02-20T16:00:26.210219830Z   File "/usr/local/lib/python3.11/dist-packages/nimporter/nimporter.py", line 64, in compile_extension_to_lib
2024-02-20T16:00:26.210248465Z     ensure_nimpy()
2024-02-20T16:00:26.210270117Z   File "/usr/local/lib/python3.11/dist-packages/nimporter/lib.py", line 215, in ensure_nimpy
2024-02-20T16:00:26.210305178Z     code, *_ = run_process(shlex.split('nimble path nimpy'), show_output)
2024-02-20T16:00:26.210321521Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-20T16:00:26.210335699Z   File "/usr/local/lib/python3.11/dist-packages/nimporter/lib.py", line 156, in run_process
2024-02-20T16:00:26.210352950Z     process = subprocess.run(
2024-02-20T16:00:26.210367687Z               ^^^^^^^^^^^^^^^
2024-02-20T16:00:26.210382983Z   File "/usr/lib/python3.11/subprocess.py", line 548, in run
2024-02-20T16:00:26.210948150Z     with Popen(*popenargs, **kwargs) as process:
2024-02-20T16:00:26.210976646Z          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-20T16:00:26.210984887Z   File "/usr/lib/python3.11/subprocess.py", line 1026, in __init__
2024-02-20T16:00:26.211089861Z     self._execute_child(args, executable, preexec_fn, close_fds,
2024-02-20T16:00:26.211111791Z   File "/usr/lib/python3.11/subprocess.py", line 1953, in _execute_child
2024-02-20T16:00:26.211250918Z     raise child_exception_type(errno_num, err_msg, err_filename)
2024-02-20T16:00:26.211286259Z FileNotFoundError: [Errno 2] No such file or directory: 'nimble'

I have this problem in any other versions of faster_than_requests I've tried so far.

github-actions[bot] commented 4 months ago

Welcome Vildnex

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 2 months ago

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.

github-actions[bot] commented 2 months ago

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