squeaky-pl / japronto

Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
MIT License
8.62k stars 580 forks source link

Unable to install japronto on Mac M1 #185

Open eshafik opened 2 years ago

eshafik commented 2 years ago

I have tried this way - python3 setup.py install

Error Message: `/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:14:2: error: this header is for x86 only

error this header is for x86 only

^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:286:5: error: invalid output constraint '=a' in asm cpuid(leaf, eax, ebx, ecx, edx); ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:251:11: note: expanded from macro 'cpuid' : "=a"(eax), "=r" (ebx), "=c"(ecx), "=d"(edx) \ ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:301:5: error: invalid output constraint '=a' in asm cpuid(leaf, *eax, __ebx, ecx, *edx); ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:251:11: note: expanded from macro 'cpuid' : "=a"(eax), "=r" (ebx), "=c"(ecx), "=d"(edx) \ ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:315:5: error: invalid output constraint '=a' in asm cpuid_count(leaf, subleaf, __eax, ebx, *ecx, *edx); ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:258:11: note: expanded from macro 'cpuid_count' : "=a"(eax), "=r" (ebx), "=c"(ecx), "=d"(edx) \ ^ 4 errors generated. error: command 'clang' failed with exit status 1`

How can i fix this??

cirospaciari commented 1 year ago

I think that's no support for MacOS M1, the lack of development in years here is the reason I'm developing https://github.com/cirospaciari/socketify.py

Should work in M1 (I don't tested my self yet) but if you have some problem open one discussion or issue and I will fixed it for you

eirnym commented 1 year ago

Nice, I'll try it

cirospaciari commented 1 year ago

Nice, I'll try it

You can get some performance numbers and development progress here: https://github.com/cirospaciari/socketify.py/discussions/10

Http and Https are fully supported, WebSockets started today and will be out soon. And Http3/Quic experimental support will come too.