Issue #13 resolved
Anonymous created an issue

Is there any work done for a port to python 3 ?

Comments (10)

  1. Ángel Guzmán Maeso

    Please, could you check this error? I get a syntax error trying to install for python3:

    sudo easy_install3 reportlab
    Searching for reportlab
    Reading http://pypi.python.org/simple/reportlab/
    Best match: reportlab 2.7
    Downloading https://pypi.python.org/packages/source/r/reportlab/reportlab-2.7.tar.gz#md5=78300e6fe8a0d020fc16734a3de80cc4
    Processing reportlab-2.7.tar.gz
    Writing /tmp/easy_install-s1ncjq/reportlab-2.7/setup.cfg
    Running reportlab-2.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-s1ncjq/reportlab-2.7/egg-dist-tmp-f6y4kk
    Traceback (most recent call last):
      File "/usr/bin/easy_install3", line 9, in <module>
        load_entry_point('distribute==0.6.37', 'console_scripts', 'easy_install')()
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 2002, in main
        with_ei_usage(lambda:
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1983, in with_ei_usage
        return f()
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 2006, in <lambda>
        distclass=DistributionWithoutHelpCommands, **kw
      File "/usr/lib/python3.3/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.3/distutils/dist.py", line 929, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.3/distutils/dist.py", line 948, in run_command
        cmd_obj.run()
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 378, in run
        self.easy_install(spec, not self.no_deps)
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 622, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 652, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 847, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1127, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1113, in run_setup
        run_setup(setup_script, args)
      File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 34, in run_setup
        lambda: exec(compile(open(
      File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 82, in run
        return func()
      File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 36, in <lambda>
        ).read(), "setup.py", 'exec'),
      File "setup.py", line 22
        print '!!!!! warning could not change directory to %r' % pkgDir
                                                             ^
    SyntaxError: invalid syntax
    
  2. th3l0nius

    Sorry, I'm in no way involved in writing reportlab. I'm just also waiting for a Python 3 compatible release (since about one year). As I interpret the postings on the mailing list it will take at least some months...

    It seems the number of the next version will be 3.0 not 2.8...

  3. Christian Jensen

    Here is a similar, but different stack trace:

    Downloading/unpacking reportlab (from xhtml2pdf->-r /home/christian/documents/projects/rh/requirements.txt (line 10))
      Downloading reportlab-2.7.tar.gz (2.0MB): 2.0MB downloaded
      Running setup.py egg_info for package reportlab
        Traceback (most recent call last):
          File "<string>", line 16, in <module>
          File "/tmp/pip_build_christian/reportlab/setup.py", line 22
            print '!!!!! warning could not change directory to %r' % pkgDir
                                                                 ^
        SyntaxError: invalid syntax
        Complete output from command python setup.py egg_info:
        Traceback (most recent call last):
    
      File "<string>", line 16, in <module>
    
      File "/tmp/pip_build_christian/reportlab/setup.py", line 22
    
        print '!!!!! warning could not change directory to %r' % pkgDir
    
                                                             ^
    
    SyntaxError: invalid syntax
    
    ----------------------------------------
    Cleaning up...
    Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_christian/reportlab
    Storing complete log in /home/christian/.pip/pip.log
    
  4. Robin Becker

    Christian, your stack trace is because the current python3 effort is going on in a branch called py33. After you download the repo just try hg update py33. Then try python setup.py. I have this working on win xp and various linuxes and mac os. I don't know how one tells pip etc etc about branches, but someone else here may know.

  5. Log in to comment