New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for the M1 #114
Comments
I also tried getting the repository and running the tests, same issue. I'm not well versed in Python to understand how Python reacts to the discrepancies between the normal Macs and the M1s. If anyone has a pointer, please share. We can get a fix up for this asap. |
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 for this, @stweller I tried getting earlier versions of Python using pyenv — 3.8.x and 3.6.x — and I can't seem to build it on my mac either
Could you get this working with other versions of Python at least? |
Hi @igbanam , I was only suspecting that python 3.9 could be the culprit. To check this, I now installed python3.8, but unfortunately I run into the exact same error. So there must be some other reason for this. Let's wait whether the developer has something to say about this... |
Thanks for your time in helping triage this |
Hey aur maintainer here. I just did a chroot and updated all my depends packages. From what I've seen it does work. Any logs would be appreciated. |
Sure, what logs do you need? My traceback from python looks very similar to the one posted above:
|
Strangely, I tried this on another machine I have access to (Debian; python3.7) and get the exact same issue... |
To be honest, when looking at the code, I don't understand how it could work. I'm not familiar with the marshmallow framework that is used here, but as far as I can understand, class LineRange(Schema):
start = fields.Integer(default=0, missing=0)
end = fields.Integer(default=None, missing=None) declares a new schema, which is supposed to support serialization/deserialization for objects with start and end, both of which are integers. Now, the following should serialize such an object: LineRange().dump({'start':5,'end':10}) and indeed that works as expected when I try it. However, the LineRange().dump(LineRange()) which means that I try to serialize an object, but as object I pass a schema, not an object that follows this schema. Now why should this work? I understand the error message @igbanam and myself are getting, but I don't understand why it works in other cases. Note that this is not the only lines where similar constructs are used. Just changing the default value to |
Alright, guys, I think I narrowed this down a bit further. I installed an older version of the @igbanam : If you want a workaround, try installing |
Thank you all for your patience on this! I'm working on a fix to make lookatme compatible with the latest version of marshmallow. |
For context: LineRange().dump(LineRange()) The method above used to be a way to get a fully instantiated |
Please comment if you're still running into any issues - from what I can tell (and from what I've read in this issue), everything should be good-to-go with the latest version of lookatme.
|
Thanks a lot, @d0c-s4vage ! I can confirm the fix works. |
Describe the bug
LookAtMe does not run on M1 Macs
To Reproduce
Install
lookatme
with pipCheck the installed version
Expected behavior
…to see the version
Screenshots
Environment (please complete the following information):
lookatme --version
] 👈🏾 👈🏾 👈🏾 this is the issue 😅Additional context
n/a
The text was updated successfully, but these errors were encountered: