python -m easy_install is just a way to use easy_install as a library, instead of invoking the easy_install shell command (which is problematic, since on some machines I have up to 4 different versions of Python: 2.6, 2.7, PyPy, Jython).
if I use easy_install directly, I get the exact same error: sudo easy_install -U Twisted [sudo] password for jacekf: Searching for Twisted Reading http://pypi.python.org/simple/Twisted/ Reading http://www.twistedmatrix.com Reading http://twistedmatrix.com/products/download Reading http://twistedmatrix.com/ Reading http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/ Reading http://twistedmatrix.com/projects/core/ Reading http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/ Reading http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/ Reading http://tmrc.mit.edu/mirror/twisted/Twisted/10.0/ Best match: Twisted 11.1.0 Downloading http://pypi.python.org/packages/source/T/Twisted/Twisted-11.1.0.tar.bz2#md5=972f3497e6e19318c741bf2900ffe31c Processing Twisted-11.1.0.tar.bz2 Running Twisted-11.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Un9XH3/Twisted-11.1.0/egg-dist-tmp-Pq7ihl Traceback (most recent call last): File "/usr/local/bin/easy_install", line 8, in <module> load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')() File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1712, in main File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1716, in <lambda> File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 211, in run File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 446, in easy_install File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 476, in install_item File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 655, in install_eggs File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 930, in build_and_install File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 919, in run_setup File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 62, in run_setup File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 105, in run File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 64, in <lambda> File "setup.py", line 103, in <module> File "setup.py", line 74, in main File "setup.py", line 31, in getExtensions File "twisted/topfiles/setup.py", line 21, in <module> ImportError: cannot import name _isCPython Will file a ticket for both Cheers Jacek On Thu, Nov 17, 2011 at 11:02 PM, <[email protected]> wrote: > On 17 Nov, 07:59 pm, [email protected] wrote: > >Under python2.7 > > > >*sudo python2.7 -m easy_install -U twisted* > >[snip] > >* File "setup.py", line 103, in <module>* > >* File "setup.py", line 74, in main* > >* File "setup.py", line 31, in getExtensions* > >* File "twisted/topfiles/setup.py", line 21, in <module>* > >*ImportError: cannot import name _isCPython* > > "easy_install -U twisted" isn't something we ever test or claimed to > support. I don't recall anyone ever asking for support for it either. > We do test "easy_install <local twisted tarball filename>" and that > works, at least on Python 2.5, on Twisted 11.1. We don't test it on any > other Python version. > >Under PyPy, same errors as before: > > > >*pypy -m easy_install -U twisted* > >[snip] > >* File > >"/home/jacekf/bin/pypy-1.6/site- > >packages/distribute-0.6.19-py2.7.egg/setuptools/sandbox.py", > >line 32, in <lambda>* > >* {'__file__':setup_script, '__name__':'__main__'}* > >* File "setup.py", line 103, in <module>* > >* File "setup.py", line 45, in main* > >*ImportError: cannot import name 'copyright'* > > Apart from the same comments about -U above, I don't recall this error > on PyPy ever being reported. The install errors we fixed had to do with > extension compilation, not a failure to import the name 'copyright'. > > Please file tickets for issues you encounter or features you'd like > supported. For these, the testing path likely involves setting up a new > BuildSlave in the appropriate environment, so if you can donate hardware > to run these slaves, that would help out a lot. Otherwise we're not > likely to be able to test the configurations, so they won't be > supported. > > Thanks, > Jean-Paul > > _______________________________________________ > Twisted-web mailing list > [email protected] > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web >
_______________________________________________ Twisted-web mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
