On Jul 7, 2006, at 2:10 PM, Matthew Burgess wrote:

>
> Hi there.
>
> I've installed Pylons 0.8.2 using easy_install with the following
> .pydistutils.cfg:
>
> [install]
> install_lib = ~/python/lib
> install_scripts = ~/python/bin
>
> (my Linux host only allows writes in my home directory, hence not  
> being
> able to install Pylons system-wide).
>
> Now, when I try and create a helloworld using `paster create
> --template=pylons helloworld' I get:
>
>   File
> "/home/matthew/python/lib/PasteScript-0.9-py2.4.egg/paste/script/ 
> create_distro.py",
> line 218, in extend_templates
>     raise LookupError(
> LookupError: Template by name 'pylons' not found
>
> The only templates that apparently can be found (by printing
> 'entry.name') are 'basic_package' and 'paste_deploy'
>
> So, presumably this is a configuration error on my part (I'd guess to
> do with the fact that pylons is installed under $HOME) as Google
> doesn't show any previous occurences of this particular problem.  Any
> ideas on how I can fix this?
>

I'm not exactly sure of the cause of the problem (but like you say,  
most likely a PYTHONPATH/setuptools issue with your setup).

However the cleanest solution for your setup is to use Ian Bicking's  
virtual-python.py or the newer workingenv.py. Basically these scripts  
will provide you with a full python installation in your home directory.

You'll simply have to run everything through your local python  
environment's bin directory (It looks like the newer workingenv makes  
this fairly transparent), then your apps will automatically use the  
local python's lib dir. Then there's no need to  
tweak .pydistutils.cfg or PYTHONPATH, and you won't encounter issues  
like this one.

http://blog.ianbicking.org/workingenv-revisited.html

--
Philip Jenvey


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to