openpaperwork / paperwork

Personal document manager (Linux/Windows) -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/paperwork
2.43k stars 149 forks source link

Scanner not listed in the preferences window #295

Closed StreakyCobra closed 10 years ago

StreakyCobra commented 10 years ago

Context

I'm using paperwork for one year now, and it works well. I recently bought a new computer and made a fresh install of archlinux, the same installation as possible as my previous one.

Problem

After installing cups, hplip and adding my printer/scanner, I am able to print documents, and also to scan from xsane (launched from hp-toolbox). But sadly, the scanner is not listed in the settings windows of paperwork on my new installation, whether with the version 0.1.2 or the one compiled from the last git commit (archlinux packages paperwork or paperwork-git). Only my webcam is listed in the drop-down list.

So I tried, as workaround, to replace directly the scanner device value in .config/paperwork.conf by the one in my previous computer, and surprisingly it works.

[Scanner]
device = hpaio:/net/Photosmart_C7200_series?ip=192.168.1.200

Any idea why the scanner doesn't show up in the list? For me it is not a problem right now, but it can discourage new users.

Details

A log is available here. I have:

  1. Opened the program
  2. Opened the preferences window to see if the scanner is listed: no
  3. Closed the preferences window
  4. Closed the program

System informations:

jflesch commented 10 years ago

1) What does "scanimage -L" returns ? (run it as a user, not root) 2) When you run Paperwork from a terminal, when you open the settings window, is there any Python exception displayed at some point in the terminal ?

StreakyCobra commented 10 years ago

1) What does "scanimage -L" returns ? (run it as a user, not root)

$ scanimage -L
device `v4l:/dev/video0' is a Noname USB2.0 HD UVC WebCam virtual device

and even when launched as root the output is the same.

2) When you run Paperwork from a terminal, when you open the settings window, is there any Python exception displayed at some point in the terminal ?

I have attached a link to the log for this exact situation in my first post (log here). Since I am not very familiar with all this I let you interpret the log for useful information ;-)

jflesch commented 10 years ago

If 'scanimage -L' doesn't find your scanner, it means Sane doesn't either. If Sane doesn't find it, Paperwork won't either. In other words, it's not a Paperwork problem, it's a Sane problem.

I assume programs like "simple-scan" don't find your scanner either ?

StreakyCobra commented 10 years ago

In other words, it's not a Paperwork problem, it's a Sane problem.

Yep, after answering your questions I realized that the problem was with sane and not with paperwork. So I just investigate a bit, and there is a line that need to be uncomment for sane to recognize hp scanners.

In /etc/sane.d/dll.conf the following line must be uncommented (at least for Archlinux as explained in archlinux wiki):

#hpaio

So, it is solved, thanks for the support. Maybe this information (running scanimage -L and be sure to have hpaio uncommented for HP printers) can be added in the FAQ?