-
Notifications
You must be signed in to change notification settings - Fork 69
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
Printer Problem on Unix-like systems USBNotFoundError: USB device not found
#125
Comments
I solved. this with $brew install libusb |
The problem when i click a ticket is: Traceback (most recent call last): |
Do you mind attaching a screenshot of Interesting 🤔 |
Yes, Same problem on Linux
… El jun. 5, 2020, a la(s) 8:30 p. m., Mohamed Feddad ***@***.***> escribió:
Do you mind attaching a screenshot of Customization > Ticket > Select USB Printer options and your data.sqlite file here ?
Interesting 🤔 libusb should be installed by default alongside PyUSB package, but probably that's a MacOS issue. Did you encounter the same error on Linux ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
You should add it in deploy.txt
… El jun. 5, 2020, a la(s) 8:30 p. m., Mohamed Feddad ***@***.***> escribió:
Do you mind attaching a screenshot of Customization > Ticket > Select USB Printer options and your data.sqlite file here ?
Interesting 🤔 libusb should be installed by default alongside PyUSB package, but probably that's a MacOS issue. Did you encounter the same error on Linux ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
But if the issue is still reproducible on Linux it means, there's still an issue on |
Sorry, there is no problem with slush under linux, only Mac have the problem
This is my data.sqlite:
alembic_version offices settings users
aliases operators slides vids
displays printers slides_c
media roles tasks
mtasks serials touchs
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 5 jun. 2020, a las 8:55 p. m., Mohamed Feddad ***@***.***> escribió:
PyUSB is already in deploy.txt . if you mean libusb then that's not possible it's a usb driver written in C that should be installed by default on your system, i guest that's the case in Linux, or gets installed by the PyUSB package.
But if the issue is still reproducible on Linux it means, there's still an issue on FQM side with parsing your printer ID. Can you please attach a screen shot of Customization > Ticket > Select USB Printer options and/or your data.sqlite file here ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG5RRX24NW72MQFQC7TRVGHYDANCNFSM4NVK76XA>.
|
why?: GET serial, should be USB 127.0.0.1 - - [2020-06-05 21:23:50] "GET /serial/1/1 HTTP/1.1" 302 828 0.074705 Traceback (most recent call last): 127.0.0.1 - - [2020-06-05 21:23:50] "GET /serial/1/1 HTTP/1.1" 302 828 0.074705 |
No worries, good to hear printing is working correctly on
Sorry i wasn't clear enough, i meant attaching the
Because |
I'm running python with the command python3, is that a problem? because with python i get the next error when installing: ERROR: Command errored out with exit status 1: so i decided to run FQM like this: python3 run.py --cli --port 8080 --ip 192.168.5.27 Here the link to the data https://wetransfer.com/downloads/a411fb5fcd07291063702e3b79702a0420200606015045/e83af78cee8dfb084e871ab86a8708d520200606015105/d49843 |
Yes. |
To run in python3.7 I need to put python3 run, the log I sent you is when I run python without the 3
… El 5 jun. 2020, a las 10:00 p. m., Mohamed Feddad ***@***.***> escribió:
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/
Yes. FQM officially supports Python 3.7 only. But your log is showing 2.7 which's no longer supported.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG27OXUQNOC33ZWQIP3RVGPNHANCNFSM4NVK76XA>.
|
Sorry i thought you were asking, why it's not supporting the default python on MacOS. Thanks for attaching the Thanks for taking the time, really appreciate it! |
USBNotFoundError: USB device not found
Hi @ernestoluciano , i took another look at your Please let me know if the issue still persists. |
Fix printer ID parsing on unix-like. Resolves #125
I am having now this Error and FQM is not working
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> f4efa0d99d19, Adding `strict_pulling` flag setting.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1283, in _execute_context
self.dialect.do_execute(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such column: printers.name
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "run.py", line 8, in <module>
run_app()
File "/Users/Ernesto/FQM/app/__init__.py", line 60, in run_app
interface()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/click/core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
File "/Users/Ernesto/FQM/app/__init__.py", line 28, in interface
app = bundle_app()
File "/Users/Ernesto/FQM/app/main.py", line 111, in bundle_app
create_db(app, testing=app.config.get('TESTING', False))
File "/Users/Ernesto/FQM/app/main.py", line 102, in create_db
create_default_records()
File "/Users/Ernesto/FQM/app/utils.py", line 329, in create_default_records
if not table.query.first():
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3375, in first
ret = list(self[0:1])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3149, in __getitem__
return list(res)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3481, in __iter__
return self._execute_and_instances(context)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3506, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1020, in execute
return meth(self, multiparams, params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1133, in _execute_clauseelement
ret = self._execute_context(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1323, in _execute_context
self._handle_dbapi_exception(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1517, in _handle_dbapi_exception
util.raise_(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
raise exception
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1283, in _execute_context
self.dialect.do_execute(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: printers.name
[SQL: SELECT printers.id AS printers_id, printers.vendor AS printers_vendor, printers.product AS printers_product, printers.in_ep AS printers_in_ep, printers.out_ep AS printers_out_ep, printers.active AS printers_active, printers.langu AS printers_langu, printers.value AS printers_value, printers.scale AS printers_scale, printers.name AS printers_name
FROM printers
LIMIT ? OFFSET ?]
[parameters: (1, 0)]
(Background on this error at: http://sqlalche.me/e/e3q8)
… El 6 jun. 2020, a las 12:12 p. m., Mohamed Feddad ***@***.***> escribió:
Closed #125 <#125> via 4b4b5b6 <4b4b5b6>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG3ONWBCQNT32ZU6GTLRVJTHZANCNFSM4NVK76XA>.
|
I deleted the data.sqlite and now is working.
System works like charm, no more crash, BUT, still not printing. I can lp foo.txt from my system, but I don’t know why the python-escpos can’t, have you tried using CUPS instate escpos?
… El 6 jun. 2020, a las 12:12 p. m., Mohamed Feddad ***@***.***> escribió:
Closed #125 <#125> via 4b4b5b6 <4b4b5b6>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG3ONWBCQNT32ZU6GTLRVJTHZANCNFSM4NVK76XA>.
|
Looks like it got stuck on running the first migration file there. The easiest solution is to remove
That's good to hear. I think |
I’m testing with the Star LSP100 this is like the ironman for POS Printing.
The problem is esc/pos need the next command
lsusb -vvv -d 0519:0003 | grep iInterface lsusb -vvv -d 0519:0003 | grep bEndpointAddress | grep OUT
And I am having the next result with the command: grep: unknown --directories option
2020-06-07 10:30:32.505 system_profiler[8080:300185] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
2020-06-07 10:30:32.505 system_profiler[8080:300185] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
So, is not posible to define the printer to esc/pos and esc/pos doesn’t assign a printer automatically
… El 7 jun. 2020, a las 11:09 a. m., Mohamed Feddad ***@***.***> escribió:
f4efa0d99d19, Adding strict_pulling flag setting.
Looks like it got stuck on running the first migration file there. The easiest solution is to remove data.sqlite like you did. But i think it's an issue that needs to be fixed. I've moved it to #129 <#129>
I deleted the data.sqlite and now is working. System works like charm, no more crash, BUT, still not printing. I can lp foo.txt from my system, but I don’t know why the python-escpos can’t, have you tried using CUPS instate escpos?
That's good to hear. I think python-escpos it the most stable library in Python for POS printing as far as I've tested. But definitely doesn't support every printer out there. Did it generate any errors this time ? BTW what the brand and name of the printer you're testing with ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG4MNNLCTZC6ZTGF62TRVOURLANCNFSM4NVK76XA>.
|
I updated the escpos to the newest beta and im having the next error from FQM
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/usb/core.py", line 223, in get_interface_and_endpoint
return self._ep_info[endpoint_address]
KeyError: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Ernesto/FQM/app/views/core.py", line 110, in serial
printer = assign(ticket_settings.vendor, ticket_settings.product,
File "/Users/Ernesto/FQM/app/printer.py", line 122, in assign
printer.text("\n")
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/escpos/escpos.py", line 518, in text
self.magic.write(txt)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/escpos/magicencode.py", line 268, in write
self.write_with_encoding(encoding, to_write)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/escpos/magicencode.py", line 287, in write_with_encoding
self.driver._raw(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/escpos/printer.py", line 100, in _raw
self.device.write(self.out_ep, msg, self.timeout)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/usb/core.py", line 940, in write
intf, ep = self._ctx.setup_request(self, endpoint)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/usb/core.py", line 102, in wrapper
return f(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/usb/core.py", line 215, in setup_request
intf, ep = self.get_interface_and_endpoint(device, endpoint_address)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/usb/core.py", line 102, in wrapper
return f(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/usb/core.py", line 231, in get_interface_and_endpoint
raise ValueError('Invalid endpoint address ' + hex(endpoint_address))
ValueError: Invalid endpoint address 0x1
|
Good point. I think I've encountered a similar issue once before while trying to get an old EPSON printer to work. I think the issue as you've pointed out: failing to get the USB
Therefore it will default to not assigning any values to Really not sure if there's anything that could be done on |
Yes, Sir, but don’t worry, we are going to find a solution for this. Let’s make FQM the best system.
Is there any connection between escpos and CUPS? Because CUPS is more generic.
I Found this https://github.com/mike42/escpos-php/blob/development/src/Mike42/Escpos/PrintConnectors/CupsPrintConnector.php <https://github.com/mike42/escpos-php/blob/development/src/Mike42/Escpos/PrintConnectors/CupsPrintConnector.php>
… El 7 jun. 2020, a las 11:42 a. m., Mohamed Feddad ***@***.***> escribió:
The problem is esc/pos need the next command
lsusb -vvv -d 0519:0003 | grep iInterface lsusb -vvv -d 0519:0003 | grep bEndpointAddress | grep OUT
Good point. I think I've encountered a similar issue once before while trying to get an old EPSON printer to work. I think the issue as you've pointed failing to get the USB bEndpointAddress::OUT.
So this is what's currently happening as far as i can tell:
FQM tries to get the in_ep and out_ep of the USB devices. using printer = PyUSB::usb.core.find()[0] and then it fails and gets a silenced exception when trying to access the device parsed configuration with printer.get_active_configuration() this part of the code-base can be found here <https://github.com/mrf345/FQM/blob/master/app/printer.py#L70-L99>.
Therefore it will default to not assigning any values to en_in and en_out so the default values set by python-escpos will be used when escpos.printers.Usb(vendor_id, product_id) and that will result in the last exception you've attached:
<https://user-images.githubusercontent.com/26286907/83973228-96dcf500-a8ed-11ea-9852-d2a70a871437.png>
Really not sure if there's anything that could be done one pyton-escpos side to fix this 🤔
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPGZBL7KL4JD5XFR56LLRVOYPNANCNFSM4NVK76XA>.
|
That's the spirit! I think we can take the easy route here. Add a flag setting to enable or disable using |
You are the Master, I am just a tester helping you, but I think it’s better than waiting for escpos to fix a communication problem. Let’s do it. Give me that comment
… El 7 jun. 2020, a las 11:57 a. m., Mohamed Feddad ***@***.***> escribió:
That's the spirit! I think we can take the easy route here. Add a flag setting to enable or disable using lp* on Unix-like systems instead of python-escpos and PyUSB. what do you think ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPGY67LZNOIVOMEA5GZTRVO2HVANCNFSM4NVK76XA>.
|
Alright that confirms it. I will be working on |
Ok master
Lic. Ernesto Luciano Batista
CEO | Founder
Corporacion Luciano Batista
http://corporacionluciano.com
Facebook.com/corporacionluciano
Instagram: @corporacionluciano
Twitter: @corporacionluba
Puerto Plata, Republica Dominicana
(809)571-3010
(829)760-1571
… El jun. 7, 2020, a la(s) 2:14 p. m., Mohamed Feddad ***@***.***> escribió:
Alright that confirms it. I will be working on lp alternative implementation. on the main time could you please open an issue on python-escpos repository, they might be able to resolve it before then.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
When are you going to upload changes?
Lic. Ernesto Luciano Batista
CEO | Founder
Corporacion Luciano Batista
http://corporacionluciano.com
Facebook.com/corporacionluciano
Instagram: @corporacionluciano
Twitter: @corporacionluba
Puerto Plata, Republica Dominicana
(809)571-3010
(829)760-1571
… El jun. 7, 2020, a la(s) 2:31 p. m., Ernesto Luciano ***@***.***> escribió:
Ok master
Lic. Ernesto Luciano Batista
CEO | Founder
Corporacion Luciano Batista
http://corporacionluciano.com
Facebook.com/corporacionluciano
Instagram: @corporacionluciano
Twitter: @corporacionluba
Puerto Plata, Republica Dominicana
(809)571-3010
(829)760-1571
> El jun. 7, 2020, a la(s) 2:14 p. m., Mohamed Feddad ***@***.***> escribió:
>
>
> Alright that confirms it. I will be working on lp alternative implementation. on the main time could you please open an issue on python-escpos repository, they might be able to resolve it before then.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hopefully late tomorrow, if everything went well. If not, it will have to wait until the weekend. |
Hi @ernestoluciano , i'm about to merge a PR #131 (comment) that adds support for printing with |
Add `lp` printing option for unix-like. Resolves #125
IN DEPLOY: you need to change to next versions:
Flask==1.1.2
gTTS 2.1.1
Jinja2 = 2.11.2
Pyecos 2.2.0
Pyusb 1.0.2
SQLAlchemy==1.3.17
Werkzeug==0.16.1
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 8 jun. 2020, a las 11:45 a. m., Mohamed Feddad ***@***.***> escribió:
Closed #125 <#125> via bba0489 <bba0489>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG5UPNEQNSSGKTALJADRVUBRXANCNFSM4NVK76XA>.
|
Not sure why ? i didn't update any package in the last change. I added a new setting to enable printing with |
I’m Testing but nothing, I can print with no problem with lp foo.txt from my terminal, but from your system is not sending anything
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 8 jun. 2020, a las 11:45 a. m., Mohamed Feddad ***@***.***> escribió:
Closed #125 <#125> via bba0489 <bba0489>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG5UPNEQNSSGKTALJADRVUBRXANCNFSM4NVK76XA>.
|
Yes, I can see all my printers, that’s nice, but nothing… I can’t print
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 8 jun. 2020, a las 11:45 a. m., Mohamed Feddad ***@***.***> escribió:
Closed #125 <#125> via bba0489 <bba0489>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG5UPNEQNSSGKTALJADRVUBRXANCNFSM4NVK76XA>.
|
Should I Delete data.sqlite ?
… El 8 jun. 2020, a las 12:08 p. m., Mohamed Feddad ***@***.***> escribió:
Are sure the setting is enabled ?
<https://user-images.githubusercontent.com/26286907/84051339-aa549280-a9b7-11ea-9046-5f30cb17ccd6.jpg>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG6O5FICVUVZJUGL3C3RVUEHZANCNFSM4NVK76XA>.
|
Maybe the commands aren't fully compatible. Can you try to run the following commands from the terminal and attach the output here: lpstat -a and replace echo "testing ticket" > testing.text
lp -d printer_name -o raw `pwd`/testing.text |
lp -d Star_TS143_STR_T_001_ -o raw `pwd`/testing.txt
lp: No such file or directory
Is not accepting this command:
lp -d printer_name -o raw `pwd`/testing.txt
But it does accept:
lp testing.txt (without -d or -o or raw
… El 8 jun. 2020, a las 12:30 p. m., Mohamed Feddad ***@***.***> escribió:
Maybe the commands aren't fully compatible. Can you try to run the following commands from the terminal and attach the output here:
lpstat -a
and replace printer_name with your printer name:
echo "testing ticket" > testing.text
lp -d printer_name -o raw `pwd`/testing.text
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG7RVUJEOY4AO5U6LEDRVUG2DANCNFSM4NVK76XA>.
|
It didn't find the file, make sure the file exists
|
Ok Now he found the file, and request id is Star_TSP143__STR_T_001_-1490 (1 file(s)) but nothing came out
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 8 jun. 2020, a las 12:30 p. m., Mohamed Feddad ***@***.***> escribió:
lpstat -a
|
It’s working lp -d Star_TSP143__STR_T_001_ `pwd`/foo.txt
But not with -o raw
|
The
|
It printed this: The output in the paper
\x1d!3\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00FQM\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00Version 0.7 beta\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x01\x1bM\x00\x1ba\x01\x1dB\x00\nhttps://fqms.github.io\n\x1b!\x00\x1b <nhttps://fqms.github.io\n\x1b!\x00\x1b>! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1d!"\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\ntesting\n\x1b!\x00\x1b! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x00\x1dB\x00\nOffice : testing\n\nCurrent ticket : testing\n\nTickets ahead : testing\n\nTask : testing\nTime : 2020-06-08 19:57:34\n\n\n\n\n\n\n\x1dV\x00\x1d!3\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00FQM\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00Version 0.7 beta\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x01\x1bM\x00\x1ba\x01\x1dB\x00\nhttps://fqms.github.io\n\x1b!\x00\x1b <nhttps://fqms.github.io\n\x1b!\x00\x1b>! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1d!"\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\ntesting\n\x1b!\x00\x1b! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x00\x1dB\x00\nOffice : testing\n\nCurrent ticket : testing\n\nTickets ahead : testing\n\nTask : testing\nTime : 2020-06-08 19:57:37\n\n\n\n\n\n\n\x1dV\x00
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 8 jun. 2020, a las 1:00 p. m., Mohamed Feddad ***@***.***> escribió:
\x1d!3\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00FQM\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00Version 0.7 beta\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x01\x1bM\x00\x1ba\x01\x1dB\x00\nhttps://fqms.github.io\n\x1b!\x00\x1b <nhttps://fqms.github.io\n\x1b!\x00\x1b>! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1d!"\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\ntesting\n\x1b!\x00\x1b! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x00\x1dB\x00\nOffice : testing\n\nCurrent ticket : testing\n\nTickets ahead : testing\n\nTask : testing\nTime : 2020-06-08 19:57:34\n\n\n\n\n\n\n\x1dV\x00\x1d!3\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00FQM\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00Version 0.7 beta\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x01\x1bM\x00\x1ba\x01\x1dB\x00\nhttps://fqms.github.io\n\x1b!\x00\x1b <nhttps://fqms.github.io\n\x1b!\x00\x1b>! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1d!"\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\ntesting\n\x1b!\x00\x1b! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x00\x1dB\x00\nOffice : testing\n\nCurrent ticket : testing\n\nTickets ahead : testing\n\nTask : testing\nTime : 2020-06-08 19:57:37\n\n\n\n\n\n\n\x1dV\x00
|
I was reading that Raw is not supported for my printer, because raw is for older models. Maybe
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 8 jun. 2020, a las 1:00 p. m., Mohamed Feddad ***@***.***> escribió:
The -o raw argument allows us to to send binaries to the printer, as far as i know. Well let's to send binaries without it. can you paste the following inside foo.txt and send it without -o raw:
\x1d!3\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00FQM\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00Version 0.7 beta\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x01\x1bM\x00\x1ba\x01\x1dB\x00\nhttps://fqms.github.io\n\x1b!\x00\x1b! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1d!"\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\ntesting\n\x1b!\x00\x1b! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x00\x1dB\x00\nOffice : testing\n\nCurrent ticket : testing\n\nTickets ahead : testing\n\nTask : testing\nTime : 2020-06-08 19:57:34\n\n\n\n\n\n\n\x1dV\x00\x1d!3\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00FQM\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00Version 0.7 beta\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x01\x1bM\x00\x1ba\x01\x1dB\x00\nhttps://fqms.github.io\n\x1b!\x00\x1b! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1d!"\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\ntesting\n\x1b!\x00\x1b! \x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x01\x1dB\x00\n---------------\n\x1b!\x00\x1b{\x00\x1db\x00\x1bE\x00\x1b-\x00\x1bM\x00\x1ba\x00\x1dB\x00\nOffice : testing\n\nCurrent ticket : testing\n\nTickets ahead : testing\n\nTask : testing\nTime : 2020-06-08 19:57:37\n\n\n\n\n\n\n\x1dV\x00
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG2KWQBIKJIQQLNDQJLRVUKL7ANCNFSM4NVK76XA>.
|
so using it without the |
lpoptions -p Star_TSP143__STR_T_001_ -l
PageSize/Media Size: X50D8MMY30MM X50D8MMY40MM X50D8MMY50MM X50D8MMY60MM X50D8MMY70MM X50D8MMY80MM X50D8MMY90MM X50D8MMY100MM X50D8MMY110MM X50D8MMY120MM X50D8MMY130MM X50D8MMY140MM X50D8MMY150MM X50D8MMY160MM X50D8MMY170MM X50D8MMY180MM X50D8MMY190MM X50D8MMY200MM X50D8MMY2000MM X72MMY30MM X72MMY40MM X72MMY50MM X72MMY60MM X72MMY70MM X72MMY80MM X72MMY90MM X72MMY100MM *X72MMY110MM X72MMY120MM X72MMY130MM X72MMY140MM X72MMY150MM X72MMY160MM X72MMY170MM X72MMY180MM X72MMY190MM X72MMY200MM X72MMY2000MM A4 Letter Legal Custom.WIDTHxHEIGHT
PrintSpeed/1. Print Speed: *0High 1Middle 2Low
PageType/2. Page Type: *0Variable 1Fixed
PageCutType/1. Page Cut Type: *0NoCutPage 1PartialCutPage
DocCutType/2. Document Cut Type: 0NoCutDoc *1PartialCutDoc
CashDrawerSetting/1. Cash Drawer: *0DoNotOpenDrawers 1OpenDrawer1 2OpenDrawer2 3OpenDrawer3
CashDrawer1PulseWidth/2. Cash Drawer 1 Pulse Width: 0Millis10 1Millis100 *2Millis200 3Millis300 4Millis400 5Millis500 6Millis600 7Millis700 8Millis800 9Millis900 10Millis1000 11Millis1100 12Millis1200
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 8 jun. 2020, a las 1:24 p. m., Mohamed Feddad ***@***.***> escribió:
lpoptions -p Star_TSP143__STR_T_001_ -l
|
Based on the options showing in the last command output and a little bit of googling, it seems to me the issue's with the If that's the case, unfortunately i don't think there's a way of getting it to work via the USB port with |
But if you remove the -o raw from your code, that maybe work
ATT.:
Lic. Ernesto Luciano
CEO & Founder CORPORACIÓN LUCIANO BATISTA
Puerto Plata · República Dominicana
Tel.: (809) 571-3010
Móvil: (829) 760-1571
No me imprimas si no es necesario. Protejamos el medio ambiente.
POLÍTICA DE PRIVACIDAD: Este mensaje y sus datos adjuntos pueden contener información confidencial o legalmente protegida y no puede ser utilizada ni divulgada por personas diferentes a su destinatario. Si por error, recibe este mensaje, por favor avise inmediatamente a su remitente y destruya toda copia que tenga del mismo. Cualquier uso, divulgación, copia, distribución, impresión o acto derivado del conocimiento total o parcial de este mensaje sin autorización de CORPORACION LUCIANO BATISTA y/o sus dependientes, será sancionado de acuerdo con las normas legales vigentes. De otra parte, al destinatario se le considera custodio de la información contenida y debe velar por su confidencialidad, integridad y privacidad.
Este correo puede contener datos en formatos PDF: Puede descargar un lector desde el siguiente enlace: LECTOR ADOBE PDF (GRATIS)
… El 8 jun. 2020, a las 1:55 p. m., Mohamed Feddad ***@***.***> escribió:
Based on the options showing in the last command output and a little bit of googling, it seems to me the issue's with the Star printer not supporting raw instructions unless it's sent through a local network connection here <https://stackoverflow.com/questions/14877716/sending-print-instructions-by-command-line-to-star-tsp143lan-thermal-receipt-pri> 🤔
If that's the case, unfortunately i don't think there's a way of getting it to work via the USB port. And adding support for local network printers is another hell i don't intend to explore anytime soon 🤣
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIMDPG3KHTGSZZJNLZDORU3RVUQZPANCNFSM4NVK76XA>.
|
It didn't work. you've tested already, the printer didn't convert the binary instructions #125 (comment) |
I will try to make a Raw connection with the printer, I’ll let you know.
Lic. Ernesto Luciano Batista
CEO | Founder
Corporacion Luciano Batista
http://corporacionluciano.com
Facebook.com/corporacionluciano
Instagram: @corporacionluciano
Twitter: @corporacionluba
Puerto Plata, Republica Dominicana
(809)571-3010
(829)760-1571
… El jun. 8, 2020, a la(s) 2:03 p. m., Mohamed Feddad ***@***.***> escribió:
It didn't work. you've tested already, the printer didn't convert the binary instructions #125 (comment)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks, good luck! |
Traceback (most recent call last):
File "/Users/Ernesto/FQM/app/printer.py", line 131, in listp
for ll in usb.core.find(find_all=True, custom_match=find_class(7)):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/usb/core.py", line 1263, in find
raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available
The text was updated successfully, but these errors were encountered: