On Mar 3, 2010, at 2:24 PM, Bill Janssen wrote:
Preston Holmes <sanroque.t...@gmail.com> wrote:
I've used the 10.5 binary egg from here with great success:
http://pyqrcode.sourceforge.net/
However trying to compile from source on 10.6 has not yet worked
for me.
I pip install JCC and it compiles fine
But when I try to run make in the pyqrcode project, make fails when
trying to run jcc with the line that starts like:
python -m jcc ....
the error is:
/Users/admin/.virtualenvs/qrcode/bin/python: jcc is a package and
cannot be directly executed
There are three different ways to invoke JCC. With 2.5, you use
"-m jcc", with 2.6 (which is what you have on Snow Leopard) you use
" -m jcc.__main__".
Thanks Bill - that did it (just edited that bit of the Makefile). For
anyone else who comes on this, the other thing I needed to fix was
what I assume was a change in JCC.
Line 21 of qrcode-0.2.1-py2.6-macosx-10.6-universal.egg/qrcode/
__init__.py
Needs to be edited from
_qrcode._setExceptionTypes(JavaError, InvalidArgsError)
to
_qrcode._set_exception_types(JavaError, InvalidArgsError)
otherwise a quick decode test worked - no test suite to push it
through a complete set of paces, so not sure what other breakage might
be lurking - but it decodes what I need it to.
-Preston
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG