Wine won't let me print!

Questions about Wine on Linux
Post Reply
Pelly
Level 2
Level 2
Posts: 28
Joined: Tue Dec 25, 2012 7:48 am

Wine won't let me print!

Post by Pelly » Sat Mar 09, 2019 6:05 am

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: 2746
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Wine won't let me print!

Post by Bob Wya » Sat Mar 09, 2019 6:52 am

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: 28
Joined: Tue Dec 25, 2012 7:48 am

Re: Wine won't let me print!

Post by Pelly » Sat Mar 09, 2019 6:58 am

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: 12656
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine won't let me print!

Post by dimesio » Sat Mar 09, 2019 7:56 am

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: 28
Joined: Tue Dec 25, 2012 7:48 am

Re: Wine won't let me print!

Post by Pelly » Sat Mar 09, 2019 2:59 pm

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: 2746
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Wine won't let me print!

Post by Bob Wya » Sat Mar 09, 2019 3:33 pm

@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: 28
Joined: Tue Dec 25, 2012 7:48 am

Re: Wine won't let me print!

Post by Pelly » Sat Mar 09, 2019 4:29 pm

I have it installed, but it's in /usr/lib32.

User avatar
Bob Wya
Level 12
Level 12
Posts: 2746
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Wine won't let me print!

Post by Bob Wya » Sat Mar 09, 2019 6:23 pm

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 » Mon Sep 02, 2019 2:16 pm

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.

Post Reply