limscoder / amfast

An Adobe AMF serialization and RPC implementation for Python, written as a C extension for speed.
MIT License
5 stars 6 forks source link

installation of setup.py encode problem. Workaround, use ez_setup.py, works fine #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Install
Python 2.6.3
Install setuptools 0.6c9
get AMFast with svn
python setup.py install

**Workaround this with python ez_setup.py**

Get long traceback below

running build_ext
Traceback (most recent call last):
  File "setup.py", line 50, in <module>
    "Topic :: Utilities"
  File "/usr/local/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.6/distutils/dist.py", line 975, in 
run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.6/distutils/dist.py", line 995, in 
run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/setupt                             ools/command/install.py", line 
76, in run
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/setupt                             ools/command/install.py", line 
96, in do_egg_install
  File "/usr/local/lib/python2.6/distutils/cmd.py", line 333, in 
run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.6/distutils/dist.py", line 995, in 
run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/setupt                             ools/command/bdist_egg.py", 
line 174, in run
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/setupt                             ools/command/bdist_egg.py", 
line 161, in call_command
  File "/usr/local/lib/python2.6/distutils/cmd.py", line 333, in 
run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.6/distutils/dist.py", line 995, in 
run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/setupt                             ools/command/install_lib.py", 
line 20, in run
  File "/usr/local/lib/python2.6/distutils/command/install_lib.py", line 
113, in                              build
    self.run_command('build_ext')
  File "/usr/local/lib/python2.6/distutils/cmd.py", line 333, in 
run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.6/distutils/dist.py", line 995, in 
run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/setupt                             ools/command/build_ext.py", 
line 46, in run
  File "/usr/local/lib/python2.6/distutils/command/build_ext.py", line 340, 
in r                             un
    self.build_extensions()
  File "/usr/local/lib/python2.6/distutils/command/build_ext.py", line 449, 
in b                             uild_extensions
    self.build_extension(ext)
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/setupt                             ools/command/build_ext.py", 
line 175, in build_extension
  File "/usr/local/lib/python2.6/distutils/command/build_ext.py", line 460, 
in b                             uild_extension
    ext_path = self.get_ext_fullpath(ext.name)
  File "/usr/local/lib/python2.6/distutils/command/build_ext.py", line 633, 
in g                             et_ext_fullpath
    filename = self.get_ext_filename(modpath[-1])
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/setupt                             ools/command/build_ext.py", 
line 85, in get_ext_filename
KeyError: 'encode'

What version of the product are you using? On what operating system?
CentOS

Linux version 2.6.9-023stab048.6-enterprise (root@rhel4-32) (gcc version 
3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Mon Nov 17 19:09:18 MSK 2008

Please provide any additional information below.

Original issue reported on code.google.com by JoshBWh...@gmail.com on 13 Oct 2009 at 9:23

GoogleCodeExporter commented 9 years ago
Turns out the defect is in setuptools. Python 2.6.3 killed setuptools current 
stable 
releases. There is a version that has been updated, no egg, but its in the svn. 
Once 
I installed the new setuptools the installation went off without a hitch.

I just did...

>> easy_install setuptools==dev
>> then python setup.py install

and golden.

More info
http://mail.python.org/pipermail/distutils-sig/2009-October/013822.html
http://74.125.113.132/search?
q=cache:fsQDTPC1dNsJ:planet.python.org/+python+setuptools+KeyError+'encode'&cd=7
&hl=e
n&ct=clnk&gl=us

Original comment by JoshBWh...@gmail.com on 13 Oct 2009 at 10:01

GoogleCodeExporter commented 9 years ago
Thanks for the work-around Josh!

Original comment by dthomp...@gmail.com on 13 Oct 2009 at 5:22