alysogorov / Ricoh_Aficio_SP1XX_CUPS_driver

CUPS driver for Ricoh Aficio SP1XX printer(possibly works for SP2XX)
16 stars 3 forks source link

just executing py file install the driver .. #4

Open chaitusvk opened 7 years ago

chaitusvk commented 7 years ago

i am a new user . may i know how to install . ... i just checked my dependencies and executed py file

please help me thank you....

alysogorov commented 7 years ago

Hi, how to install is written in README.txt file. If there are questions - ask here. Just run py file - is wrong. it is driver for CUPS, and it is CUPS who is calling him. Regards, Alex

salaros commented 7 years ago

Hi, first of all thanks for supporting Ricoh devices on Ubuntu! I just want to figure out which python do I have to use with your driver. I sneaked inside stub and driver files and it says just "python", on my Ubuntu 16.04 it defaults to Python 2.7, same as python2 binary (while python3 obviously points to Python 3.x). So with Python 2.7 CUPS says "Filter error" on any attempt to print. I've already tried to switch to Python3 in both stub script and python driver header, but in that case CUPS just marks the job as done and nothing happens.

BTW madlynx's works fine, but it seems that your driver has more features, so I want to switch to it.

How can test it / debug it without using CUPS?

sudo enscript --media=A4 -o - TEST_FILE.txt |python ricoh-sp1xx-drv.py PageSize=A4 > XXX.OUT [ 1 page * 1 copy ] left in - sudo cat XXX.OUT >/dev/usb/lp0 bash: /dev/usb/lp0: Permission denied bash: /dev/usb/lp0: Permission denied

alysogorov commented 7 years ago

Hi. sorry for long answer. just google this problem. "/dev/usb/lp0: Permission denied" - it's problem not of the driver, but with access to lp0. I had the same problem, but if i remember it could be solved if you added yourself to "lp" group. seem only member of this group can access printer. sudo adduser $USER lp problem is widely discussed in inet. if file XXX.OUT created, then driver successfully finished, but output file cannot be copied to lp device due to linux permission rules. Alex. ps. my python version is 2.7.6.