-
Notifications
You must be signed in to change notification settings - Fork 31
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
running on OSX #23
Comments
AF_BLUETOOTH isn't available on macOS (as far as I could find out on Google) - Bluetooth support would added using CoreBluetooth API. In the short term, you can try using the serial connection through a USB connection. You'd need to find your serial port - in the format described in README.md - and add it to the command line. |
Oh... I didn't even bother reading the USB part as B1 has no USB connection...Silly of me. So choosing usb and providing the
(printer.py", line 253,) error... It sure is a step forward. A big one. |
I also have a B1 :) |
tried with and without
|
This is an interesting one. I wrote a simple script to list the serial ports on my mbp and it would randomly fail to list my B1 printer in there. I couldn't find a pattern to why. I even managed to see it was missing once with Upon trying multiple times, when I connect to it, I usually get "OSError: [Errno 6] Device not configured". I did try using my fork as well, as it has more checks, but no success. By spamming the command I couldn't print the sticker once :/ Hopefully someone more experienced with RS232 and macOS can contribute here |
i think this is kinda obvious, but i’ll still say it… i had the mac connected to the b1 via bluetooth first.. then ran the cook and line to print… |
I gave up running it over a Mac, and setup an old RPi... Connection over Bluetooth works fine, but it just prints a blank label ... So close... 😂😂 |
tried different "D" params, all with the same result |
Looks like a duplicate of #17 |
cable? b1 supports USB printing? 🤔 |
It does - and I thought you attempted to do that when you used the parameter A somewhat shameless plug, I'm currently maintaining a fork that has more cable/serial/usb capabilities such as auto-detection. Works great on windows, but seems to have the same issues on macOS. Hopefully it will work nicely in Linux as well: https://github.com/TheZoc/niimprint |
@TheZoc I'm experiencing a severe lack of time recently, but it would be nice if we can merge at some point :) |
the usb address /dev/tty.B1… was created by the bluetooth connection … I will try again… and will try the fork as well |
@AndBondStyle Happy to have it merged if you like the changes and code style :) |
@MoonshineSG I wasn't aware macOS would convert a bluetooth device to a USB-like port, interesting. |
@TheZoc so found couple of errors in your fork, but all in the '_detect_port_and_model' which I don't need, so I just removed that whole function. And it work! It printed nicely but only via USB. I would prefer BT, but I can live with the USB as well. Thanks for the help.
|
Oh thanks for the report. It seems I did use double quotes inside double quotes and that's apparently only supported in python 3.12 Not sure why I missed that port not being self._port as well, and why it's working locally o.O I'll add a fix for both of those tomorrow :) |
@MoonshineSG |
No, I gave up on trying on MacOS... |
Unable run due to error "AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'"
Any ideas how to fix ? Installed "original" from python.org - had to downgrade from 3.12 to 3.11 (?!) as well as brew version and both give the same error... help please
The text was updated successfully, but these errors were encountered: