mugmuggy / pyfpdf

Automatically exported from code.google.com/p/pyfpdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Fail using easyinstall for MacOSX and python 3.4 #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tried the following from a MacOSX 10.9.4 console:

easy_install-3.4 fpdf

All ran well for a while, with one version matched:
Downloading http://pyfpdf.googlecode.com/files/fpdf-1.7.hg.zip

But then things went wrong: fpdf_py3k not found: see below.
Shouldn't this process be automatic?

Mick

Processing fpdf-1.7.hg.zip
Writing 
/var/folders/_y/d12fbngj3ll3_cmp8sbq9h6h0000gn/T/easy_install-9zhxd8f0/fpdf-1.7.
hg/setup.cfg
Running fpdf-1.7.hg/setup.py -q bdist_egg --dist-dir 
/var/folders/_y/d12fbngj3ll3_cmp8sbq9h6h0000gn/T/easy_install-9zhxd8f0/fpdf-1.7.
hg/egg-dist-tmp-9f4ge_te
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4", line 11, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1909, in main
    with_ei_usage(lambda:
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1896, in with_ei_usage
    return f()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1913, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 358, in run
    self.easy_install(spec, not self.no_deps)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 593, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 623, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 809, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1015, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1000, in run_setup
    run_setup(setup_script, args)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 50, in run_setup
    lambda: execfile(
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 100, in run
    return func()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 52, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/compat.py", line 78, in execfile
    exec(compile(source, fn, 'exec'), globs, locs)
  File "setup.py", line 8, in <module>
ImportError: No module named 'fpdf_py3k'

Original issue reported on code.google.com by micko.ma...@gmail.com on 16 Jul 2014 at 8:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same issue for installation via pip in a virtualenv using python 3.4:

pip install fpdf
Downloading/unpacking fpdf
  Downloading fpdf-1.7.zip
  Running setup.py (path:/Users/joel/.virtualenvs/pdf/build/fpdf/setup.py) egg_info for package fpdf
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/Users/joel/.virtualenvs/pdf/build/fpdf/setup.py", line 8, in <module>
        import fpdf_py3k as fpdf
    ImportError: No module named 'fpdf_py3k'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/Users/joel/.virtualenvs/pdf/build/fpdf/setup.py", line 8, in <module>

    import fpdf_py3k as fpdf

ImportError: No module named 'fpdf_py3k'

----------------------------------------

Original comment by joel.p...@gmail.com on 20 Nov 2014 at 9:11

GoogleCodeExporter commented 9 years ago
Please, if you can, for python 3.4 try the latest version from the repository 
and report any issue:

https://pyfpdf.googlecode.com/archive/45566059864c653db58068475f68abc07801dcd2.z
ip

We will make a new release ASAP once finding time to test and close these issues

Original comment by reingart@gmail.com on 2 Dec 2014 at 5:33

GoogleCodeExporter commented 9 years ago
I was able to install successfully using that zip and python 3.4.

Also was able to run the tutorial script. Thanks!

Original comment by joel.p...@gmail.com on 20 Dec 2014 at 2:50