python-central 4.8, 4.9 and 4.10 arrived in this morning's unstable updates but the problem remains:

Setting up python (2.3.5-7) ...

Setting up python2.3-dev (2.3.5-13) ...
Setting up python-parallel (0.2-3) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 89, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
pycentral: pycentral pkginstall: error byte-compiling files (3)
pycentral pkginstall: error byte-compiling files (3)
dpkg: error processing python-parallel (--configure):
 subprocess post-installation script returned error exit status 1
Setting up python-serial (2.2-2) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 89, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
pycentral: pycentral pkginstall: error byte-compiling files (5)
pycentral pkginstall: error byte-compiling files (5)
dpkg: error processing python-serial (--configure):
 subprocess post-installation script returned error exit status 1
Setting up python-minimal (2.3.5-7) ...
Setting up python-dev (2.3.5-7) ...
Errors were encountered while processing:
 python-parallel
 python-serial
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up python-parallel (0.2-3) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 89, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
pycentral: pycentral pkginstall: error byte-compiling files (3)
pycentral pkginstall: error byte-compiling files (3)
dpkg: error processing python-parallel (--configure):
 subprocess post-installation script returned error exit status 1
Setting up python-serial (2.2-2) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 89, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
pycentral: pycentral pkginstall: error byte-compiling files (5)
pycentral pkginstall: error byte-compiling files (5)
dpkg: error processing python-serial (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-parallel
 python-serial

It would be helpful if you could give me a URL for incoming.

Thanks for removing the -s line in the help text. With respect and no urgency I would suggest that the following code is a slight improvement:

         print msg
         print "usage: python compilefiles.py [-f] [-q] " \
               "[-x regexp] [file ...] [-]"
         print "-f: force rebuild even if timestamps are up-to-date"
         print "-q: quiet operation"
         print "-x regexp: skip files matching the regular expression regexp"
         print "   the regexp is search for in the full path of the file"
         print "-: read filenames from stdin"
         sys.exit(2)

I replaced

>             if arg == '-':
>                 for line in sys.stdin:      [line 90]
>                     files.append(line[:-1])

with

            if arg == '-':
                while 1:
                    line = sys.stdin.readline()
                    if line == '':
                        break
                    try:
                        files.append(line[:-1])
                    except:
                        pass

Which disposes of the errors above, but which instead gives

Setting up python-serial (2.2-2) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 113, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 105, in main
    elif not compile_files(files, ddir, force, rx, quiet):
  File "/usr/bin/py_compilefiles", line 32, in compile_files
    ftime = os.stat(fullname).st_mtime
AttributeError: 'tuple' object has no attribute 'st_mtime'
pycentral: pycentral pkginstall: error byte-compiling files (5)
pycentral pkginstall: error byte-compiling files (5)

So I commented out this code:

#            ftime = os.stat(fullname).st_mtime
#            try: ctime = os.stat(cfile).st_mtime
#            except os.error: ctime = 0
#            if (ctime > ftime) and not force: continue

And then suffered

Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 115, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 107, in main
    elif not compile_files(files, ddir, force, rx, quiet):
  File "/usr/bin/py_compilefiles", line 44, in compile_files
    except py_compile.PyCompileError,err:
AttributeError: 'py_compile' module has no attribute 'PyCompileError'

Enough for now.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to