Brennan Williams | 18 Jul 03:48

Re: Attempting to build and install latest ETS>3.0.0b1 on Windows XP

Brennan Williams wrote:
> Brennan Williams wrote:
>   
>> I'm trying to download, build and install all the latest bleeding edge 
>> ETS, Traits 3, Chaco 3 etc under Windows XP.
>>
>> My initial problem is that I have failed to get "ets co" installed and 
>> working.
>>
>> A bit of background, I'm downloading and building on my main notebook 
>> which currently has ETS 3.0.0b1, Traits 3 and Chaco 3 from around February.
>>
>> I'm going to download into a g:\enthought directory structure, then 
>> probably use egg_builder.py (mine is dated Jan 16th 2008 so I'll have a 
>> look around the website first to see if I should be using something newer).
>>
>> Once I've built the eggs I'm going to do a clean install of Python 2.5 
>> on another notebook, using the .msi from python.org. Then I'll install 
>> the newly built eggs and then my app and then see what happens.
>>
>> Sound ok?
>>
>> So far, I have
>>
>> (1) looked at http://code.enthought.com/source/ and read about 
>> ETSPackageTools
>>
>> (2) looked at https://svn.enthought.com/enthought/wiki/Build but decided 
>> it wasn't what I wanted as I want to build ETS 3 on XP
>>
>> (3) gone to https://svn.enthought.com/enthought/wiki/SVNScripts, then 
>> have done ...
>>
>>      
>>
>> svn co https://svn.enthought.com/svn/enthought/ETSProjectTools/trunk ETSProjectTools
>> cd ETSProjectTools
>> python setup.py install
>>
>>
>> (4) checked that I have setuptools 0.6c7 or greater (I have 0.7a1dev_r53614)
>>     I also have an enthought.setuptools.0.3.0a1_devr13502 dated Dec 19th 2007
>>
>> (5) done "ets co -h" which produced the following error....
>>
>>
>> Traceback (most recent call last):
>>   File "c:\python25\scripts\ets-script.py", line 8, in <module>
>>     load_entry_point('ETSProjectTools==0.4.0a1.dev-r19423', 'console_scripts', 'ets')()
>>   File
"C:\Python25\lib\site-packages\setuptools-0.7a1dev_r53614-py2.5.egg\pkg_resources.py",
line 236, in load_entry_point
>>     return get_distribution(dist).load_entry_point(group, name)
>>   File
"C:\Python25\lib\site-packages\setuptools-0.7a1dev_r53614-py2.5.egg\pkg_resources.py",
line 2015, in load_entry_point
>>     return ep.load()
>>   File
"C:\Python25\lib\site-packages\setuptools-0.7a1dev_r53614-py2.5.egg\pkg_resources.py",
line 1748, in load
>>     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
>>   File
"c:\python25\lib\site-packages\ETSProjectTools-0.4.0a1.dev_r19423-py2.5.egg\enthought\ets\ets.py",
line 19, in <module>
>>     from enthought.ets.build import Build
>>   File
"c:\python25\lib\site-packages\ETSProjectTools-0.4.0a1.dev_r19423-py2.5.egg\enthought\ets\build.py",
line 13, in <module>
>>     from enthought.ets.base_subcommand import BaseSubcommand
>>   File
"c:\python25\lib\site-packages\ETSProjectTools-0.4.0a1.dev_r19423-py2.5.egg\enthought\ets\base_subcommand.py",
line 20, in <module>
>>     from enthought.proxy.api import setup_proxy, setup_authentication
>> ImportError: cannot import name setup_authentication
>>
>> (6) went back and clicked on "Troubleshooting", read the bit about setup_authentication and
Enstaller, edited my easy-install.pth
>>     and removed the following two lines...
>>
>> ../enthought.enstaller.gui-2.2.0b4.dev_r16373-py2.5.egg
>> ../enthought.enstaller-2.2.0b4.dev_r16404-py2.5.egg
>>
>> (7) tried "ets co -h" again but I still have the same error. How do I get my installation to recognise the
updated easy-install.pth?
>>
>>  (8) rebooted but still same problem
>>
>> (9) moved my enstaller egg and enthought.enstaller egg into an /obsolete directory but still same problem.
>>
>> Brennan
>>
>>
>>   
>>     
> an update to the above. I did a find . -name "proxy" -print in my 
> site-packages directory (I like using Unix tools under Windows) and 
> found another proxy in packagetools.
>
> And taking another look at the http://code.enthought.com/source/ page I 
> see it mentions both ETSPackageTools and ETSProjectTools
>
> So I'm guessing that ETSPackageTools replaced PackageTools and then was 
> renamed to ETSProjectTools. I'm sure I've glanced at some postings about 
> this.
>
> So I've moved my old PackageTools eggs to my obsolete directory and now 
> it looks like "ets co" is going to work.
>
> So perhaps the TroubleShooting info should be modified to mention the 
> proxy in PackageTools?
>
> Moving on...
>   
OK, ets co "ETS>3.0.0b" worked with the final messages

All project source has been checked out to "G:\enthought\ETS_3.0.0b1"

THE SOURCE FOR THE FOLLOWING PROJECTS COULD NOT BE LOCATED:
        configobj       No match found for project specification 
"configobj" --
Required by parent project ETSProjectTools
HINT: Perhaps try again with more "-r" options?

I have configobj 4.4.0 and 4.5.3 installed so not sure why I got that 
last message.

On to building the eggs....

The code.enthought.com/source page has a section called "Building from 
Source" with a link "Installation from Source" which takes you to
the https://svn.enthought.com/enthought/wiki/Build page titled 
"Enthought Installation from Source Home Page"

This page doesn't explicitly help me to work out how to build the eggs 
as I'm trying to build ETS 3.0.0b1 on WIndows XP. So I clicked on the 
2.6.0b1 link for Windows XP which took me to the 
https://svn.enthought.com/enthought/wiki/Build/ETS_2.6.0b1/Py2.5/Win_XP_i386 
page
in which I found a note about how to get egg_builder.py

I think I would have struggled to find this if it wasn't for the fact 
that I already know I need egg_builder.py as I have an older version.

I've now run egg_builder.py which has built the eggs and put them into a 
/dist directory which is as follows...

dist:
total 16929
a-----    746553 17-Jul-108 23:00 AppTools-3.0.0b1.dev_r19953-py2.5.egg
a-----   1374782 17-Jul-108 23:01 
BlockCanvas-3.0.0b1.dev_r19987-py2.5-win32.egg
a-----    877451 17-Jul-108 23:01 Chaco-3.0.0b1.dev_r20004-py2.5-win32.egg
a-----    260106 17-Jul-108 23:01 CodeTools-3.0.0b1-py2.5.egg
a-----    922128 17-Jul-108 23:01 
DevTools-3.0.0b1.dev_r19998-py2.5-win32.egg
a-----      1333 17-Jul-108 23:01 ETS-3.0.0b1.dev_r19081-py2.5.egg
a-----    295462 17-Jul-108 23:01 
ETSProjectTools-0.4.0a1.dev_r19423-py2.5.egg
a-----   1726187 17-Jul-108 23:03 Enable-3.0.0b1.dev_r19990-py2.5-win32.egg
a-----    306404 17-Jul-108 23:03 EnthoughtBase-3.0.0b1.dev_r19978-py2.5.egg
a-----    193719 17-Jul-108 23:03 EnvisageCore-3.0.0b1.dev_r19974-py2.5.egg
a-----    208110 17-Jul-108 23:04 
EnvisagePlugins-3.0.0b1.dev_r19976-py2.5.egg
a-----   7320674 17-Jul-108 23:05 Mayavi-3.0.0a1.dev_r19985-py2.5-win32.egg
a-----    298517 17-Jul-108 23:05 SciMath-3.0.0b1.dev_r20002-py2.5-win32.egg
a-----    753695 17-Jul-108 23:05 Traits-3.0.0b1.dev_r19994-py2.5-win32.egg
a-----    388252 17-Jul-108 23:05 
TraitsBackendQt-3.0.0b1.dev_r19483-py2.5.egg
a-----    711545 17-Jul-108 23:05 
TraitsBackendWX-3.0.0b1.dev_r19970-py2.5.egg
a-----    939380 17-Jul-108 23:05 TraitsGUI-3.0.0b1.dev_r19999-py2.5.egg

Next I'm going to do a complete clean install of Python 2.5 on another 
machine and then install the eggs.

I normally use easy_install to install eggs so I'll install Setuptools 
after installing Python.

So far so good.

Brennan

Gmane