openpaperwork / pyinsane

Python library to access and use image scanners (Linux/Windows/etc) (Sane/WIA) -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/pyinsane
63 stars 24 forks source link

Scan.read() sys error with python 2.6 #17

Closed effem-git closed 7 years ago

effem-git commented 10 years ago

In the file abstract.py at line 216, there is a "sys" wrong instruction for python 2.6. if sys.version_info.major < 3: In python 2.6 _sys.versioninfo is a tuple and _versioninfo hasn't attribute major.

The following command is good for all python version. sys.version_info[0]

jflesch commented 7 years ago

Wow, I totally missed and forgot this ticket, sorry :( Anyway, Python 2.6 isn't officially supported (I only have Python 2.7 available on my systems ; I should clarify than in the README). For such problems, you can send a pull request if you want.

I'm closing this ticket. Please comment if it's still a problem for you.