Skip to content
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

Not running on MacBook M1 #57

Closed
AndCouvel opened this issue Mar 18, 2023 · 6 comments
Closed

Not running on MacBook M1 #57

AndCouvel opened this issue Mar 18, 2023 · 6 comments

Comments

@AndCouvel
Copy link

I downloaded the resources and the bare version, and this is the output:

andrescouvel@Macbook-Air-de-Andy Cat-Printer-0.6.2.0 % cd /Users/andrescouvel/Downloads/cat-printer-2 andrescouvel@Macbook-Air-de-Andy cat-printer-2 % python3 server.py Traceback (most recent call last): File "/Users/andrescouvel/Downloads/cat-printer-2/server.py", line 22, in <module> from printer import PrinterDriver, PrinterError, i18n, info File "/Users/andrescouvel/Downloads/cat-printer-2/printer.py", line 48, in <module> i18n = I18nLib(path).translate ^^^^^^^^^^^^^ File "/Users/andrescouvel/Downloads/cat-printer-2/printer_lib/i18n.py", line 23, in __init__ self.lang = lang or (locale.getdefaultlocale()[0] or fallback).replace('_', '-') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'replace' andrescouvel@Macbook-Air-de-Andy cat-printer-2 %

Python 3.11.2

@NaitLee
Copy link
Owner

NaitLee commented Mar 19, 2023

I feel it’s #38 revived, or at least something similar.

I’d try to look into it when I have some time.

NaitLee added a commit that referenced this issue Apr 3, 2023
@NaitLee
Copy link
Owner

NaitLee commented Apr 3, 2023

So that I did an incomplete fix to #38. I tried to really fix it in the newest commit.

I can’t determine what time to release a new version, but you can always clone this repository and use the newest source code as you like :)

@NaitLee NaitLee added the needs-verification Let’s see if this problem is fixed (in new version) label Apr 28, 2023
@NaitLee
Copy link
Owner

NaitLee commented Apr 28, 2023

There’s a new version with fix attempt to this. Waiting for you to try it :)

@jedahan
Copy link

jedahan commented Apr 28, 2023

I was able to get python server.py running on my M1 fine with latest main

@NaitLee NaitLee removed the needs-verification Let’s see if this problem is fixed (in new version) label Apr 30, 2023
@krim404
Copy link

krim404 commented Feb 15, 2024

this can be closed as it works perfectly fine with M1, even cups printing.

@NaitLee
Copy link
Owner

NaitLee commented Feb 15, 2024

ok, closing this one

@NaitLee NaitLee closed this as completed Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants