i am new to restish. I just wanted get my hands wet with it, so
decided to do what is give in the documentation.
And i ended up with this
sam@csslabs ~/Code/Python/restish/sample $ paster create --
template=restish
Selected and implied templates:
restish#restish Template for creating a basic Restish package
Enter project name: test
Variables:
egg: test
package: test
project: test
Creating template restish
Creating directory ./test
Traceback (most recent call last):
File "/usr/local/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 123, in invoke
exit_code = runner.run(args)
File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py", line 218, in run
result = self.command()
File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/create_distro.py", line 137, in command
template, output_dir, vars)
File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/create_distro.py", line 196, in create_template
template.run(self, output_dir, vars)
File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/templates.py", line 58, in run
self.write_files(command, output_dir, vars)
File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/templates.py", line 127, in write_files
template_renderer=self.template_renderer)
File "/usr/local/lib/python2.6/dist-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/copydir.py", line 68, in copy_dir
names = os.listdir(source)
OSError: [Errno 2] No such file or directory: '/usr/local/lib/
python2.6/dist-packages/restish-0.11dev-py2.6.egg/restish/
pastertemplate'
Could someone help.
Sam
It looks like restish hasn't installed correctly. I'm not sure if
that's a problem with restish's setup.py or your environment.
I just tried the same thing using a virtualenv and it worked ok. I've
never installed to /usr/local so perhaps that's the problem, although
it looks like your entire Python 2.6 is installed there so it seems
unlikely.
Can you tell me more about your environment and how you installed
restish so I can try to duplicate the problem. Do you have the same
problem installing the 0.10 release available on PyPI?
- Matt
Here is are steps that i have done
1. easy_install webob
2. easy_install decorator
3. apt-get install python-pastescript
4. easy_install restish
And i have python 2.6 install, which you have already gathered. And I
am running all this on LinuxMint 8.0
Sam
On Mar 24, 3:00 pm, Matt Goodall <matt.good...@gmail.com> wrote:
> Hi Sam,
>
> It looks like restish hasn't installed correctly. I'm not sure if
> that's a problem with restish's setup.py or your environment.
>
> I just tried the same thing using a virtualenv and it worked ok. I've
> never installed to /usr/local so perhaps that's the problem, although
> it looks like your entire Python 2.6 is installed there so it seems
> unlikely.
>
> Can you tell me more about your environment and how you installed
> restish so I can try to duplicate the problem. Do you have the same
> problem installing the 0.10 release available on PyPI?
>
> - Matt
>
OK, you're installing restish from a local git clone and you're using
setuptools (not distribute), right? If so, you have a few options:
1. Install setuptools-git from PyPI, http://pypi.python.org/pypi/setuptools-git.
2. Use distribute instead of setuptools, http://pypi.python.org/pypi/distribute.
3. Install restish from PyPI. Nothing significant has changed since then anyway.
The problem is that setuptools uses information from the VCS to find
non-python data files, i.e. the paster template, to include in the
package. Unfortunately, setuptools doesn't know about git without the
setuptools-git plugin. The distribute package seems to have support
for git built in :).
Hope this helps & that you enjoy playing with restish.
- Matt
> --
> You received this message because you are subscribed to the Google Groups "ish.io" group.
> To post to this group, send an email to is...@googlegroups.com.
> To unsubscribe from this group, send email to ishio+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ishio?hl=en-GB.
>
>
Thanks for the help. I took the one from PyPI and it worked like a
charm. Will be in touch for more.
So long and thanks for all the (f)ish.
Sam
On Mar 24, 6:31 pm, Matt Goodall <matt.good...@gmail.com> wrote:
> On 24 March 2010 12:57, SamG <mad.vi...@gmail.com> wrote:
>
> > Thanks Matt,
>
> > Here is are steps that i have done
>
> > 1. easy_install webob
> > 2. easy_install decorator
> > 3. apt-get install python-pastescript
> > 4. easy_install restish
>
> OK, you're installing restish from a local git clone and you're using
> setuptools (not distribute), right? If so, you have a few options:
>
> 1. Install setuptools-git from PyPI,http://pypi.python.org/pypi/setuptools-git.
> 2. Use distribute instead of setuptools,http://pypi.python.org/pypi/distribute.