Fwd: Troubles installing 11.1.0 - is this expected?
Under python2.7 *sudo python2.7 -m 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=... * *Processing Twisted-11.1.0.tar.bz2* *Running Twisted-11.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YBvWK_/Twisted-11.1.0/egg-dist-tmp-zIO__W* *Traceback (most recent call last):* * File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main* * "__main__", fname, loader, pkg_name)* * File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code* * exec code in run_globals* * File "build/bdist.linux-i686/egg/easy_install.py", line 5, in <module>* * 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* Under PyPy, same errors as before: *pypy -m easy_install -U twisted* *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=... * *Processing Twisted-11.1.0.tar.bz2* *Running Twisted-11.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-K4bVb9/Twisted-11.1.0/egg-dist-tmp-e8Q1QN* *Traceback (most recent call last):* * File "app_main.py", line 53, in run_toplevel* * File "/home/jacekf/bin/pypy-1.6/lib-python/2.7/runpy.py", line 162, in _run_module_as_main* * "__main__", fname, loader, pkg_name)* * File "/home/jacekf/bin/pypy-1.6/lib-python/2.7/runpy.py", line 72, in _run_code* * exec code in run_globals* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/easy_install.py", line 5, in <module>* * main()* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 1864, in main* * with_ei_usage(lambda:* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 1845, in with_ei_usage* * return f()* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 1868, in <lambda>* * distclass=DistributionWithoutHelpCommands, **kw* * File "/home/jacekf/bin/pypy-1.6/lib-python/modified-2.7/distutils/core.py", line 152, in setup* * dist.run_commands()* * File "/home/jacekf/bin/pypy-1.6/lib-python/modified-2.7/distutils/dist.py", line 953, in run_commands* * self.run_command(cmd)* * File "/home/jacekf/bin/pypy-1.6/lib-python/modified-2.7/distutils/dist.py", line 972, in run_command* * cmd_obj.run()* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 345, in run* * self.easy_install(spec, not self.no_deps)* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 585, in easy_install* * return self.install_item(spec, dist.location, tmpdir, deps)* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 615, in install_item* * dists = self.install_eggs(spec, download, tmpdir)* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 805, in install_eggs* * return self.build_and_install(setup_script, setup_base)* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 1082, in build_and_install* * self.run_setup(setup_script, setup_base, args)* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/easy_install.py", line 1071, in run_setup* * run_setup(setup_script, args)* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/sandbox.py", line 30, in run_setup* * lambda: execfile(* * File "/home/jacekf/bin/pypy-1.6/site-packages/distribute-0.6.19-py2.7.egg/setuptools/sandbox.py", line 72, in run* * return func()* * 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'* Sorry :-( Jacek
Under python2.7, I was always able to install Twisted 11.0.0, no problem. Under pypy 1.6, never (but I am not sure if 11.1.0 is supposed to fix it or not). I am running this on Ubuntu 10.04 LTS.Python 2.7 was manually installed (compiled the actual packages from source, not sure if that makes a difference), Will try on a different laptop with Ubuntu 11.10 to see if at least the default python2.7 works there...give me a second... Jacek On Thu, Nov 17, 2011 at 3:14 PM, Glyph <glyph@twistedmatrix.com> wrote:
On Nov 17, 2011, at 2:59 PM, Jacek Furmankiewicz wrote: (tracebacks snipped for brevity)
Sorry :-(
Did you have these errors under the prerelease as well? Under 11.0?
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
Installed fine on brand new install of Ubuntu 11.10 using python2.7. So that's good news. let me know if I can help debugging why it fails to install on the older Ubuntu build... Jacek On Thu, Nov 17, 2011 at 3:29 PM, Jacek Furmankiewicz <jacek99@gmail.com>wrote:
Under python2.7, I was always able to install Twisted 11.0.0, no problem.
Under pypy 1.6, never (but I am not sure if 11.1.0 is supposed to fix it or not).
I am running this on Ubuntu 10.04 LTS.Python 2.7 was manually installed (compiled the actual packages from source, not sure if that makes a difference), Will try on a different laptop with Ubuntu 11.10 to see if at least the default python2.7 works there...give me a second...
Jacek
On Thu, Nov 17, 2011 at 3:14 PM, Glyph <glyph@twistedmatrix.com> wrote:
On Nov 17, 2011, at 2:59 PM, Jacek Furmankiewicz wrote: (tracebacks snipped for brevity)
Sorry :-(
Did you have these errors under the prerelease as well? Under 11.0?
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
Followup: failed to install with the regular default python (2.6) interpreter on the 10.04 box as well, exact same error. So it doesn't seem to be related to my custom compiled install of 2.7 on that box. Would be good to see if others get the same error on the current Ubuntu 10.04 LTS release.... Jacek
On 17 Nov, 07:59 pm, jacek99@gmail.com 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
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=... 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, <exarkun@twistedmatrix.com> wrote:
On 17 Nov, 07:59 pm, jacek99@gmail.com 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 Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
On 02:26 pm, jacek99@gmail.com wrote:
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:
It's the "-U" I was trying to highlight.
sudo easy_install -U Twisted [snip] File "twisted/topfiles/setup.py", line 21, in <module> ImportError: cannot import name _isCPython
Will file a ticket for both
And contribute a host to run a build slave? :) Jean-Paul
Sorry, I am just a lonely developer with no funds for extra slaves :-( My interest in Twisted is personal, not work-related (although that may change one day) Cheers Jacek On Fri, Nov 18, 2011 at 2:51 PM, <exarkun@twistedmatrix.com> wrote:
On 02:26 pm, jacek99@gmail.com wrote:
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:
It's the "-U" I was trying to highlight.
sudo easy_install -U Twisted [snip] File "twisted/topfiles/setup.py", line 21, in <module> ImportError: cannot import name _isCPython
Will file a ticket for both
And contribute a host to run a build slave? :)
Jean-Paul
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
participants (3)
-
exarkun@twistedmatrix.com
-
Glyph
-
Jacek Furmankiewicz