Hi,
i have installed pylons 9.7 and SQLAlchemy 5.4.
While trying to create HelloWorld project, Following error occured
File "/usr/lib/python2.5/os.py", line 171, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: './HelloWorld'
What went wrong here. Pls help. Full error code is given below.
=========================================================
paster create -t pylons HelloWorld
Selected and implied templates:
Pylons#pylons Pylons application template
Variables:
egg: HelloWorld
package: helloworld
project: HelloWorld
Enter template_engine (mako/genshi/jinja2/etc: Template language)
['mako']: y
Enter sqlalchemy (True/False: Include SQLAlchemy 0.5 configuration)
[False]: y
Creating template pylons
Creating directory ./HelloWorld
Traceback (most recent call last):
File "/usr/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
paste/script/command.py", line 123, in invoke
exit_code = runner.run(args)
File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
paste/script/command.py", line 218, in run
result = self.command()
File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
paste/script/create_distro.py", line 137, in command
template, output_dir, vars)
File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
paste/script/create_distro.py", line 196, in create_template
template.run(self, output_dir, vars)
File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
paste/script/templates.py", line 58, in run
self.write_files(command, output_dir, vars)
File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
paste/script/templates.py", line 118, in write_files
os.makedirs(output_dir)
File "/usr/lib/python2.5/os.py", line 171, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: './HelloWorld'
=================================================================
Thanks in advance
Bijoy
On Jun 20, 11:36 am, Ben Bangert <[email protected]> wrote:
> On Jun 19, 2009, at 9:53 PM, bijoy wrote:
>
> > yes i wanted to use sqlalchemy... Forgot to mention earlier...
>
> > Model directory doesn't have meta.py file, It have __init__.py file,
> > which is blank, no lines of code in it.
> > in config/environment.py file, following line is missing "from
> > sqlalchemy import engine_from_config"
>
> > I am using pylons 9.6 and sqlalchhemy 4.7.
>
> The book assumes you're using at least Pylons 0.9.7, which has a
> SQLAlchemy option that sets up the meta.py file the book refers to.
> I'd highly recommend using Pylons 0.9.7 with SQLAlchemy 0.5.4.
>
> Cheers,
> Ben
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---