Wine won't let me print!

Questions about Wine on Linux
Locked
Pelly
Level 2
Level 2
Posts: 29
Joined: Tue Dec 25, 2012 7:48 am

Wine won't let me print!

Post by Pelly »

I have to use BSL Lessons for and university class, but that stupid thing doesn't let me print anything. Instead, it throws a hissy fit about my printer not being installed. I tried to install my printer, but the installation fails every time. I checked printing with Notepad and it won't cooperate with me for the same reason.
How do I set up a dummy printer in Wine? I heard that Wine uses CUPS for printing.
Specs: Wine 4.0, 32-bit CUPS installed, Pisi Linux 2.1, HP DeskJet 1050
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Wine won't let me print!

Post by Bob Wya »

Hi Pelly,

If you can start notepad with:

Code: Select all

export WINEDEBUG=+winspool
wine notepad &>~/wine_winspool_log.txt
to enable the winspool Wine Debug channel.

Please post the resulting log file - "${HOME}/wine_winspool_log.txt" - here, using the forum Code tags:

Code: Select all

...
For reference on my system I get:

Code: Select all

wine notepad

0009:trace:winspool:load_cups 0x7c829030: libcups.so.2 loaded
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 1 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW Printer 0 is L"Canon_MG6350"
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 1 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW Printer 0 is L"Canon_MG6350"
0009:trace:winspool:WINSPOOL_GetStringFromReg L"Name": L"Canon_MG6350"
0009:trace:winspool:WINSPOOL_GetStringFromReg L"Port": L"CUPS:Canon_MG6350"
0009:trace:winspool:CUPS_LoadPrinters Found 1 CUPS printer:
0009:trace:winspool:CUPS_LoadPrinters Printer 0: L"Canon_MG6350". printer_type 82901c
0009:trace:winspool:CUPS_LoadPrinters Printer already exists
0009:trace:winspool:SetDefaultPrinterW (L"Canon_MG6350")
0009:trace:winspool:SetDefaultPrinterW set device to L"Canon_MG6350,wineps.drv,CUPS:Canon_MG6350"
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 1 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW Printer 0 is L"Canon_MG6350"
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 1 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW Printer 0 is L"Canon_MG6350"
0009:trace:winspool:WINSPOOL_GetStringFromReg L"Name": L"Canon_MG6350"
0009:trace:winspool:WINSPOOL_GetStringFromReg L"Port": L"CUPS:Canon_MG6350"
on my laptop.

Bob
Pelly
Level 2
Level 2
Posts: 29
Joined: Tue Dec 25, 2012 7:48 am

Re: Wine won't let me print!

Post by Pelly »

Code: Select all

0009:trace:winspool:WINSPOOL_EnumPrintersW Found 0 printers
0009:trace:winspool:PRINTCAP_ParseEntry name=Deskjet_1050_J410| entry=:rm=squeekers:rp=Deskjet_1050_J410:
0009:trace:winspool:PRINTCAP_ParseEntry 	"Deskjet_1050_J410"
0009:trace:winspool:PRINTCAP_ParseEntry 	""
0009:trace:winspool:PRINTCAP_ParseEntry Printer already exists
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 0 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 0 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW ignoring PRINTER_ENUM_CONNECTIONS
0009:fixme:winspool:WINSPOOL_EnumPrintersW We don't handle PRINTER_ENUM_CONNECTIONS
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine won't let me print!

Post by dimesio »

Pelly wrote:How do I set up a dummy printer in Wine? I heard that Wine uses CUPS for printing.
Specs: Wine 4.0, 32-bit CUPS installed, Pisi Linux 2.1, HP DeskJet 1050
You could install the cups-pdf driver, which will print to a PDF file. That should be enough to get past the complaints from the application about no printer being installed. However, if you want to actually print anything from Wine, your printer needs to be working in the host system. According to https://developers.hp.com/hp-linux-imag ... ices/index, the HP Deskjet 1050 j410 is fully supported by the hplip driver, version 3.10.6 or later.
Pelly
Level 2
Level 2
Posts: 29
Joined: Tue Dec 25, 2012 7:48 am

Re: Wine won't let me print!

Post by Pelly »

Code: Select all

0009:trace:winspool:WINSPOOL_EnumPrintersW Found 0 printers
0009:trace:winspool:PRINTCAP_ParseEntry name=Deskjet_1050_J410| entry=:rm=squeekers:rp=Deskjet_1050_J410:
0009:trace:winspool:PRINTCAP_ParseEntry 	"Deskjet_1050_J410"
0009:trace:winspool:PRINTCAP_ParseEntry 	""
0009:trace:winspool:PRINTCAP_ParseEntry Printer already exists
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 0 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 0 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW ignoring PRINTER_ENUM_CONNECTIONS
0009:fixme:winspool:WINSPOOL_EnumPrintersW We don't handle PRINTER_ENUM_CONNECTIONS
0009:trace:winspool:WINSPOOL_EnumPrintersW Found 0 printers
0009:trace:winspool:WINSPOOL_EnumPrintersW ignoring PRINTER_ENUM_CONNECTIONS
0009:fixme:winspool:WINSPOOL_EnumPrintersW We don't handle PRINTER_ENUM_CONNECTIONS
This is what I get after installing the cups-pdf driver (I had to compile it, I installed both 32-bit and 64-bit). I can use the printer fine from Linux-native applications but not from Wine.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Wine won't let me print!

Post by Bob Wya »

@Pelly

The clue is in the first statement of my log:

Code: Select all

0009:trace:winspool:load_cups 0x7c829030: libcups.so.2 loaded
- a line which isn't in your log...
32-bit CUPS installed
That's pretty vague.

Anyway I'm presuming you haven't installed: libcups2:i386 ,,,

Bob
Pelly
Level 2
Level 2
Posts: 29
Joined: Tue Dec 25, 2012 7:48 am

Re: Wine won't let me print!

Post by Pelly »

I have it installed, but it's in /usr/lib32.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Wine won't let me print!

Post by Bob Wya »

Pelly wrote:I have it installed, but it's in /usr/lib32.
@Pelly

Sorry I just skimmed over your first post and didn't realise you were using Pisi Linux. :oops:
In my defence these forums are inundated by an army of Ubuntu users...

I'll help out with Arch, Suse, Fedora, Gentoo, Debian/Ubuntu.
But my knowledge of more obscure distributions is pretty limited.
I'd file a bug about, this issue, with your distribution.
It does sound like a packaging issue.

Bob
chowbok
Newbie
Newbie
Posts: 1
Joined: Mon Sep 02, 2019 2:13 pm

Re: Wine won't let me print!

Post by chowbok »

I had this same problem. The issue is, in both my case and the OP's, that the printer is missing a description in CUPS. I added one and it worked fine after that. Filed bug 47221 on this issue.
Locked