On Wed, 22 Apr 2009, Christian Heimes wrote:

Helmut Jarausch schrieb:
Hi,

has anybody tried to install PyLucene on a system running Python-2.6
(2.6.2 in my case)
 .. snip ..
/usr/bin/python: jcc is a package and cannot be directly executed
make: *** [compile] Error 1

Hello Helmut!

Your problem ca be fixed easily. You simple have to replace "-m jcc"
with "-m jcc.__main__" in your Makefile. Python 2.6 refuses to execute a
package but the new jcc.__main__ modules takes care of the issue.

In Python 2.6, it is not allowed to execute a package directly. It was determined that the Python 2.5 feature allowing this was actually a bug.

This was discussed and resolved in Python issue 4195 by making it possible to use -m <package> again if the package has a __main__ module. In Python 2.7, -m jcc works again and is equivalent to -m jcc.__main__.

http://bugs.python.org/issue4195

Andi..

Reply via email to