squeaky-pl / japronto

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

hello.py not working (pip install associated with anaconda python) #109

Closed raybellwaves closed 6 years ago

raybellwaves commented 6 years ago

I know it's a bit of sin to mix package installation with conda install, pip install and even brew install. I assume there is no conda-forge build yet?

I'm using python installed via anaconda: $ python Python 3.6.4 | packaged by conda-forge | (default, Dec 23 2017, 16:54:01) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin Type "help", "copyright", "credits" or "license" for more information.

In my virtual environment (as not wanting to mix up package installation) I did: pip install japronto

and tried running hello.py. Here is the traceback:


(cfd) UM-404XFVH4:jp_test Ray$ python hello.py
Accepting connections on http://0.0.0.0:8080
Exception in callback UVTransport._call_connection_made
handle: <Handle UVTransport._call_connection_made>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 52, in uvloop.loop.Handle._run
  File "uvloop/handles/tcp.pyx", line 149, in uvloop.loop.TCPTransport._call_connection_made
  File "uvloop/handles/basetransport.pyx", line 156, in uvloop.loop.UVBaseTransport._call_connection_made
  File "uvloop/handles/basetransport.pyx", line 153, in uvloop.loop.UVBaseTransport._call_connection_made
SystemError: NULL result without error in PyObject_Call
Exception in callback UVTransport._call_connection_made
handle: <Handle UVTransport._call_connection_made>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 52, in uvloop.loop.Handle._run
  File "uvloop/handles/tcp.pyx", line 149, in uvloop.loop.TCPTransport._call_connection_made
  File "uvloop/handles/basetransport.pyx", line 156, in uvloop.loop.UVBaseTransport._call_connection_made
  File "uvloop/handles/basetransport.pyx", line 153, in uvloop.loop.UVBaseTransport._call_connection_made
SystemError: NULL result without error in PyObject_Call```

As it's a basic test i'm guessing it's failing because of a build issue.
squeaky-pl commented 6 years ago

This is a duplicate of https://github.com/squeaky-pl/japronto/issues/99

raybellwaves commented 6 years ago

Ah thanks. Don't suppose any plans for the future for a build using conda-forge?