Build for the M1
See original GitHub issueDescribe the bug LookAtMe does not run on M1 Macs
To Reproduce
Install lookatme
with pip
python3 -m pip install lookatme
Check the installed version
lookatme --version
Expected behavior …to see the version
Screenshots
Traceback (most recent call last):
File "/opt/homebrew/bin/lookatme", line 33, in <module>
sys.exit(load_entry_point('lookatme===-VERSION-', 'console_scripts', 'lookatme')())
File "/opt/homebrew/bin/lookatme", line 25, in importlib_load_entry_point
return next(matches).load()
File "/opt/homebrew/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/opt/homebrew/Cellar/python@3.9/3.9.4/Frameworks/Python.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 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/opt/homebrew/lib/python3.9/site-packages/lookatme/__main__.py", line 17, in <module>
import lookatme.tui
File "/opt/homebrew/lib/python3.9/site-packages/lookatme/tui.py", line 16, in <module>
from lookatme.contrib import shutdown_contribs, contrib_first
File "/opt/homebrew/lib/python3.9/site-packages/lookatme/contrib/__init__.py", line 15, in <module>
from . import file_loader
File "/opt/homebrew/lib/python3.9/site-packages/lookatme/contrib/file_loader.py", line 42, in <module>
class FileSchema(Schema):
File "/opt/homebrew/lib/python3.9/site-packages/lookatme/contrib/file_loader.py", line 49, in FileSchema
default=LineRange().dump(LineRange()),
File "/opt/homebrew/lib/python3.9/site-packages/marshmallow/schema.py", line 547, in dump
result = self._serialize(processed_obj, many=many)
File "/opt/homebrew/lib/python3.9/site-packages/marshmallow/schema.py", line 515, in _serialize
value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute)
File "/opt/homebrew/lib/python3.9/site-packages/marshmallow/fields.py", line 318, in serialize
return self._serialize(value, attr, obj, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/marshmallow/fields.py", line 898, in _serialize
ret = self._format_num(value) # type: _T
File "/opt/homebrew/lib/python3.9/site-packages/marshmallow/fields.py", line 873, in _format_num
return self.num_type(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Integer'
Environment (please complete the following information):
- OS: OS X — Big Sur
- Lookatme Version [e.g.
lookatme --version
] 👈🏾 👈🏾 👈🏾 this is the issue 😅
Additional context n/a
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
How to make an M1-only (native-only) app? - Apple Developer
I moved my Intel-based project to my new M1 machine (Pro Max), and it builds and runs fine, but only as a Intel/Rosetta...
Read more >M1 Build Programming - John Reed Racing
$120/hr. M1 Build programming to customer specification. Time is sold in hour increments, and must be purchased before programming begins.
Read more >Faster Android Build | M1 Ultra vs Intel Core i9 - YouTube
Android build speed tests on Mac Studio with M1 Ultra vs Intel 12th Gen machine. ▶️My recent tests of M1 Pro/Max MacBooks for...
Read more >Docker build with Mac M1 - Medium
Docker build with Mac M1. Minimal guide to building your image for multiple architectures. Error about the architecture mismatch (image by ...
Read more >M1 stacks - Bitrise Docs
Selecting an M1-based stack for your build. You have two options for selecting an M1-based stack, just like with any other stack: Selecting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @igbanam ,
I don’t think this is related to M1 Macs. I’m getting the same error on Arch Linux. I’m getting this with the AUR package, but also if I install with pip directly. The only thing I can think of that our systems have in common is the relatively recent python version (3.9).
Thanks a lot, @d0c-s4vage ! I can confirm the fix works.