Traceback (most recent call last):
File "a.py", line 4, in <module>
import six
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 419, in load_module
return load_module(fullname, source_path, so_path=so_path, is_package=is_package)
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 233, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 216, in load_module
mod = imp.load_dynamic(name, so_path)
File "six.py", line 805, in init six
_add_doc(reraise, """Reraise an exception.""")
ImportError: Building module six failed: ["NameError: name 'reraise' is not defined\n"]
reraise
is defined with exec statement with reraise function as a string, so seems cython don't support this use case.
import six
to import requests
, with another error:Traceback (most recent call last):
File "a.py", line 4, in <module>
import requests
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 419, in load_module
return load_module(fullname, source_path, so_path=so_path, is_package=is_package)
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 233, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 216, in load_module
mod = imp.load_dynamic(name, so_path)
File "__init__.py", line 43, in init requests.__init__
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 419, in load_module
return load_module(fullname, source_path, so_path=so_path, is_package=is_package)
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 233, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
File "/Users/anlong/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 216, in load_module
mod = imp.load_dynamic(name, so_path)
File "__init__.py", line 8, in init urllib3.__init__
ImportError: Building module requests failed: ["ImportError: Building module urllib3 failed: ['ValueError: Attempted relative import in non-package\\n']\n"]
https://developers.redhat.com/blog/2020/01/20/mir-a-lightweight-jit-compiler-project/
I did notice that project too. Sounds interesting. Currently it says: This code is in initial stages of development. It is present only for familiarization with the project.
Looking forward to see what they come up with. Having an optimizing JIT which is faster than LLVM would be very nice :)