$ env1/bin/easy_install pyttk Searching for pyttk Reading http://pypi.python.org/simple/pyttk/ Reading http://code.google.com/p/python-ttk Best match: pyttk 0.3-py3k Downloading http://pypi.python.org/packages/source/p/pyttk/pyttk-0.3- py3k.tar.gz#md5=c4aa78176b366ee710a8a6f5d2b9ddab Processing pyttk-0.3-py3k.tar.gz Running pyttk-0.3-py3k/setup.py -q bdist_egg --dist-dir /tmp/easy_install- gn2upb/pyttk-0.3-py3k/egg-dist-tmp-jCrskj Traceback (most recent call last): File "env1/bin/easy_install", line 8, in <module> load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')() File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1671, in main File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1659, in with_ei_usage File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1675, in <lambda> File "/opt/ActivePython-2.6/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/opt/ActivePython-2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/opt/ActivePython-2.6/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 211, in run File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 446, in easy_install File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 476, in install_item File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 655, in install_eggs File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 930, in build_and_install File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 919, in run_setup File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 27, in run_setup File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 63, in run File "/home/sridharr/as/pydk/python-ttk/env1/lib/python2.6/site-packages/ setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 29, in <lambda> File "setup.py", line 2, in <module> File "/tmp/easy_install-gn2upb/pyttk-0.3-py3k/ttk.py", line 28, in <module> ImportError: No module named tkinter
Comment #1
Posted on Jul 21, 2009 by Quick Horse(No comment was entered for this change.)
Comment #2
Posted on Jul 21, 2009 by Quick HorseUhm, easy_install is picking the wrong version there.
I tried adding an .egg there for python 2.6, thinking easy_install would consider it as the best match but it doesn't.
Right now you can workaround that by doing: easy_install pyttk==0.3
I hope I won't be forced to rename the pyttk-py3k filename just because of that, I'm not particularly an setuptools expert so maybe there is a way to fix this.
Comment #3
Posted on Dec 26, 2009 by Quick RhinoI don't see a setup.py in the source repository. !? Where did you get the setup.py in the source tarball?
BTW, do you need help in making one common source - pyttk-0.3.tar.gz - that would work both on py2k and py3k? I can also fix it to include PKG-INFO. (Otherwise, it won't be available in pypm.activestate.com)
Comment #4
Posted on Dec 26, 2009 by Quick HorseI did that setup.py just to facilitate its installation, and it is included only on those distributed via pypi.
I will prepare a 0.3.1 today, which will fix a issue reported a bugs.python.org, and will adjust it to run on both 2.x and 3.x. Is there something special you want on PKG-INFO ?
Comment #5
Posted on Dec 26, 2009 by Quick RhinoGood to hear about the new release!
PKG-INFO is essential in that it contains the package metadata.
If you use the "python setup.py sdist" command, it will take care of generating the .tar.gz file with a PKG-INFO in it.
See the section "Making the installation tarball" in http://wiki.python.org/moin/Distutils/Tutorial
Comment #6
Posted on Dec 26, 2009 by Quick HorseSure, but I was questioning if you had any special needs towards the contents of PKG-INFO.
Comment #7
Posted on Dec 26, 2009 by Quick RhinoOh, yes. It is only from the PKG-INFO I can reliably tell the version number of a source distribution (parsing the filename is not always reliable). Only then, will it be built on all supported platforms and published on pypm.activestate.com for ActivePython users to install the package using the PyPM client: http://docs.activestate.com/activepython/2.6/pypm.html
Almost all packages published on PyPI have the PKG-INFO file .. because it is a convention to generate the source distribution using "python setup.py sdist".
The fields supported by PKG-INFO are documented in this PEP: http://www.python.org/dev/peps/pep-0345/ .. what is most relevant to PyPM, at the moment, are these fields: Name, Version and Summary.
Comment #8
Posted on Dec 26, 2009 by Quick HorseCan you give it another try now ? Just sent pyttk 0.3.2 to pypi.
Comment #9
Posted on Dec 26, 2009 by Quick RhinoWorks good for me using easy_install/pip (Python 2.6) on Linux.
Comment #10
Posted on Dec 26, 2009 by Quick HorseThanks, closing.
Status: Fixed
Labels:
Type-Defect
Priority-Medium