Closed srijanshetty closed 1 year ago
BEP20 Binance Smart Chain Network BSC
0xb78c4cf63274bb22f83481986157d234105ac17e
BTC Bitcoin Network
1Pnf45MgGgY32X4KDNJbutnpx96E4FxqVi
Lightning Network
juancarlospaco@bitrefill.me
We do not have any Apple hardware to work with, sorry. 😐
@juancarlospaco let me know how I can package this repository for Apple, I'll try my best and raise a PR for you all.
Please keep doing the good work!
Git clone and compile basically, there are instructions on the Readme, should be 2 commands: https://github.com/juancarlospaco/faster-than-requests#windows
I think on Apple the file extension should be .dynlib
instead of .pyd
.
Don't know if you made any changes since the last update, but FWIW I was able to install without issue on my M1 Mac just now. Subsequently however, upon import I encounter the error below:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/alecostrander/opt/anaconda3/envs/fpelo/lib/python3.11/site-packages/faster_than_requests/__init__.py", line 7, in <module>
from . faster_than_requests import *
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1080, in _find_spec
File "/Users/alecostrander/opt/anaconda3/envs/fpelo/lib/python3.11/site-packages/nimporter.py", line 1269, in find_spec
return Nimporter.import_nim_code(fullname, path, library=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alecostrander/opt/anaconda3/envs/fpelo/lib/python3.11/site-packages/nimporter.py", line 944, in import_nim_code
NimCompiler.compile_nim_code(
File "/Users/alecostrander/opt/anaconda3/envs/fpelo/lib/python3.11/site-packages/nimporter.py", line 705, in compile_nim_code
cls.check_compile_errors(errors, library, nim_args, output, tmp_cwd, warnings)
File "/Users/alecostrander/opt/anaconda3/envs/fpelo/lib/python3.11/site-packages/nimporter.py", line 492, in check_compile_errors
raise NimCompileException(errors[0])
nimporter.NimCompileException: std/asyncmacro(42, 5) Warning: The bare except clause is deprecated; use `except CatchableError:` instead [BareExcept]
Edit: following up per an old issue stating the package is not compatible with Anaconda - I confirmed the error persists on my base Python installation, as well as in an x86-64 ubuntu Docker instance.
It is compatible with the official CPython only.
That is what I'm using, yes?
Official CPython installed via the official way using PIP etc. Some alternative Pythons have custom "patches" that remove features and sometimes add bugs.
@alecglen did you manage to fix the issue that you mentioned above?
Architecture
arm64 (Apple Silicon)
Operating System
MacOS
Disk
SSD (Solid)
Memory
16 Gigabytes
CPU Cores
16 CPU Cores
Internet Connection
Optical Fiber (very fast)
What is your web browser?
Chromium
Device
Desktop PC
Where are you from?
India
What happened?
Tried to install using
pip install faster_than_requests
but it failed for Apple Silicon.Standard Output Logs