autotab-starter
autotab-starter copied to clipboard
Couldn't run on Mac M1
Couldn't run this on M1 computer. I know this is not the issue of your product but rather dependencies. But FYI, it was a blocker for me since i'm not a Python developer, and couldn't solve that quickly.
I followed Quickstart section and on autotab record
I got the following error:
/Users/pavel/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
Traceback (most recent call last):
File "/Users/pavel/Library/Python/3.9/bin/autotab", line 33, in <module>
sys.exit(load_entry_point('autotab', 'console_scripts', 'autotab')())
File "/Users/pavel/Library/Python/3.9/bin/autotab", line 25, in importlib_load_entry_point
return next(matches).load()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/pavel/projects/autotab-starter/src/main.py", line 4, in <module>
from record import record
File "/Users/pavel/projects/autotab-starter/src/record.py", line 8, in <module>
from mirror.mirror import mirror
File "/Users/pavel/projects/autotab-starter/src/mirror/mirror.py", line 7, in <module>
from server.server import run_server
File "/Users/pavel/projects/autotab-starter/src/server/server.py", line 13, in <module>
class Session(BaseModel):
File "/Users/pavel/projects/autotab-starter/src/server/server.py", line 61, in Session
def run(self, code: str | List[str]):
TypeError: unsupported operand type(s) for |: 'type' and '_GenericAlias'
you can replace that line with -- def run(self, code: Union[str, List[str]]):