Ok Morrie,

I had a look myself thanks to your guidance:
andrewg@andrewg:/> rpm -ql python-qrtools
/
/usr
/usr/lib
/usr/lib/python2.6
/usr/lib/python2.6/dist-packages
/usr/lib/python2.6/dist-packages/qrtools.py
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/qrtools.py
/usr/share
/usr/share/doc
/usr/share/doc/python-qrtools
/usr/share/doc/python-qrtools/changelog.gz
/usr/share/doc/python-qrtools/copyright
/usr/share/python-qrtools

and it is definitely in the dist-packages directories but does not work.
Is it confused by the two dist-packages addresses?  Should I delete the
file from the python2.6/dist-packages location?

Thanks

Andrew







On Mon, 2015-02-02 at 20:41 +1100, Morrie Wyatt wrote:
> Hi Andrew.
> 
>  
> 
> Just tried the same on my Fedora 20 box at home, and
> 
> had exactly the same error.
> 
>  
> 
> The problem is easily discovered using:
> 
>  
> 
> rpm -ql python-qrtools
> 
>  
> 
> /qrtools.py
> 
> /usr/share/doc/python-qrtools
> 
> /usr/share/doc/python-qrtools/LICENCE
> 
> /usr/share/doc/python-qrtools/copyright
> 
>  
> 
> You will not that the qrtools.py ends up under the
> 
> root directory, not in the usual site-packages
> 
> directory /usr/lib/python2.7/site-packages/
> 
>  
> 
> I'm guessing the reason is that Fedora 20, and
> 
> probably Suse too, have python versions 2.7 and 3.3
> 
> both simultaneously installed, so the packager took
> 
> the lazy way out, leaving it up to the end user
> 
> to put qrtools.py in in a more sensible place.
> 
>  
> 
> I just moved qrtools.py to the above site-packages
> 
> directory, and away it went.
> 
>  
> 
> (It also doesn't seem to work under python3, probably
> 
> as the various other python modules are not present
> 
> under the /usr/lib/python3.3/site-packages/ directory.)
> 
>  
> 
> So give it a try and see how you go.
> 
>  
> 
> Regards,
> 
> Morrie.
> 
>  
> 
> 
> From: luv-main [mailto:[email protected]] On Behalf Of
> Andrew Greig
> Sent: Monday, 2 February 2015 4:23 PM
> To: LUV Main
> Subject: QR code generator
> 
> 
> 
>  
> 
> Hi all,
> 
> Could I please get some advice concerning my failure to get the QtQR
> program running under SuSe 13.1
> 
> I have downloaded the rpm and installed qtqr as well as python-qrtools
> 
> I have no joy from the GUI "run" process
> and from the cli I get
> 
> andrewg@andrewg:~> /usr/bin/qtqr
> Traceback (most recent call last):
>   File "/usr/bin/qtqr", line 15, in <module>
>     from qrtools import QR
> ImportError: No module named qrtools
> andrewg@andrewg:~> 
> 
> I tried modprobe but that command no longer works.
> 
> I have a project where I need to generate around 350 different QR
> codes, all of the same format.
> 
> And then I need to print them in such a way as to recognise each label
> easily to correctly locate them.
> 
> Thanks
> 
> Andrew Greig 
> 
> 
> 
> _______________________________________________
> luv-main mailing list
> [email protected]
> http://lists.luv.asn.au/listinfo/luv-main


_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to