Airtight
Airtight copied to clipboard
Test and compiler failing
Hi,
I have installed Airtight under Python 3.8.
One of the nostests fails, hinting at a missing file:
~/i/p/Airtight > nosetests
..E
======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'airtight.type_checker')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/fermigier/envs/py38/lib/python3.8/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/Users/fermigier/envs/py38/lib/python3.8/site-packages/nose/loader.py", line 417, in loadTestsFromName
module = self.importer.importFromPath(
File "/Users/fermigier/envs/py38/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/fermigier/envs/py38/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/fermigier/inspiration/python/Airtight/airtight/tests/type_checker_test.py", line 2, in <module>
from airtight.type_checker import TypeChecker
ModuleNotFoundError: No module named 'airtight.type_checker'
----------------------------------------------------------------------
Ran 3 tests in 0.010s
FAILED (errors=1)
Also, trying to use the compiler anyway, I guess this kind of errors:
~/i/p/Airtight > ./bin/airtight examples/m.py
Traceback (most recent call last):
File "./bin/airtight", line 47, in <module>
main(sys.argv[1], args)
File "./bin/airtight", line 22, in main
hm_ast = converter.PythonConverter().convert(python_ast)
File "/Users/fermigier/inspiration/python/Airtight/airtight/converter.py", line 38, in convert
return self.convert_node(python_ast)
File "/Users/fermigier/inspiration/python/Airtight/airtight/converter.py", line 47, in convert_node
return getattr(self, "convert_" + str(node.__class__.__name__).lower())(
TypeError: convert_module() got an unexpected keyword argument 'type_ignores'