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: [WinError 2] The system cannot find the file specified #198

Closed Arthavruksha closed 1 year ago

Arthavruksha commented 2 years ago

Architecture

x86_64 (Default)

Operating System

Windows

Disk

Others (USB)

Memory

8 Gigabytes

CPU Cores

1 CPU Cores

Internet Connection

Wifi (WLAN, Wireless)

What is your web browser?

Chrome/Chromium

Device

Desktop PC

Where are you from?

India

What happened?

This error is coming raised when running the python file for the first time after installation of faster-than-requests in Windows via Pip

Standard Output Logs

Traceback (most recent call last):
  File "c:\Shodh by Arthavruksha\Realtime\pdftotext.py", line 1, in <module>
    from faster_than_requests import requests
  File "C:\Users\shweta\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
    return Nimporter.import_nim_code(fullname, path, library=False)
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 944, in import_nim_code
    NimCompiler.compile_nim_code(
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 696, in compile_nim_code
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 294, in ensure_nimpy
    out, errors, _, _ = cls.invoke_compiler('nimble path nimpy'.split())
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 269, in invoke_compiler
    process = subprocess.run(
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
PS C:\Shodh by Arthavruksha\Realtime> python -u "c:\Shodh by Arthavruksha\Realtime\pdftotext.py"
Traceback (most recent call last):
  File "c:\Shodh by Arthavruksha\Realtime\pdftotext.py", line 1, in <module>
    from faster_than_requests import requests
ModuleNotFoundError: No module named 'faster_than_requests'
PS C:\Shodh by Arthavruksha\Realtime> pip install faster-than-requests
Collecting faster-than-requests
  Using cached faster_than_requests-21.3.3-py3-none-any.whl
Requirement already satisfied: nimporter in c:\users\shweta\appdata\local\programs\python\python310\lib\site-packages (from faster-than-requests) (1.1.0)
Installing collected packages: faster-than-requests
Successfully installed faster-than-requests-21.3.3
PS C:\Shodh by Arthavruksha\Realtime> python -u "c:\Shodh by Arthavruksha\Realtime\pdftotext.py"
Traceback (most recent call last):
  File "c:\Shodh by Arthavruksha\Realtime\pdftotext.py", line 1, in <module>
    from faster_than_requests import requests
  File "C:\Users\shweta\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\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 1269, in find_spec
    return Nimporter.import_nim_code(fullname, path, library=False)
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 944, in import_nim_code
    NimCompiler.compile_nim_code(
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 696, in compile_nim_code
    cls.ensure_nimpy()
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 294, in ensure_nimpy
    out, errors, _, _ = cls.invoke_compiler('nimble path nimpy'.split())
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\site-packages\nimporter.py", line 269, in invoke_compiler
    process = subprocess.run(
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\shweta\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
github-actions[bot] commented 2 years ago

Welcome Arthavruksha

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")
ShodhArthavruksha commented 2 years ago

Facing same issue . If anyone knows do help to solve it

asdcxfrt commented 1 year ago

I installed NIM. Reinstalled this library. Rebooted the computer. And this error disappeared.

github-actions[bot] commented 1 year 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 1 year ago

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