Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Errno 20 when trying to run weblog 1.3
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jkn  
View profile  
 More options Jan 6 2009, 10:51 am
From: jkn <jkn...@nicorp.f9.co.uk>
Date: Tue, 6 Jan 2009 07:51:57 -0800 (PST)
Local: Tues, Jan 6 2009 10:51 am
Subject: Errno 20 when trying to run weblog 1.3
Hello there
    I've just installed Weblog 1.3 (and markdown; when I try to run it
I get this error:

$ weblog publish
Error while generating files ...
[Errno 20] Not a directory: '/usr/bin/weblog/templates/
archives.html.tmpl'

I have nothing under /usr/bin/weblog; what am I missing please?

    Thanks
    J^n


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henry Precheur  
View profile  
 More options Jan 6 2009, 1:01 pm
From: Henry Precheur <he...@precheur.org>
Date: Tue, 6 Jan 2009 19:01:08 +0100
Local: Tues, Jan 6 2009 1:01 pm
Subject: Re: [weblog-users] Errno 20 when trying to run weblog 1.3

On Tue, Jan 06, 2009 at 07:51:57AM -0800, jkn wrote:

> Hello there
>     I've just installed Weblog 1.3 (and markdown; when I try to run it
> I get this error:

> $ weblog publish
> Error while generating files ...
> [Errno 20] Not a directory: '/usr/bin/weblog/templates/
> archives.html.tmpl'

> I have nothing under /usr/bin/weblog; what am I missing please?

That's weird. Could you please run 'weblog publish --debug', it would
help me track the problem. Thank-you for reporting this problem!

--
  Henry Pręcheur


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jkn  
View profile  
 More options Jan 6 2009, 1:20 pm
From: jkn <jkn...@nicorp.f9.co.uk>
Date: Tue, 6 Jan 2009 10:20:44 -0800 (PST)
Local: Tues, Jan 6 2009 1:20 pm
Subject: Re: Errno 20 when trying to run weblog 1.3
Hi Henry

> That's weird. Could you please run 'weblog publish --debug', it would
> help me track the problem. Thank-you for reporting this problem!

No problem - here you go:

$ weblog publish --debug
DEBUG Ignoring 'weblog.ini'
DEBUG Loading 'first_post.txt'
DEBUG Ignoring 'output'
DEBUG Generating archives page
Traceback (most recent call last):
  File "/usr/bin/weblog", line 8, in <module>
    load_entry_point('weblog==1.3', 'console_scripts', 'weblog')()
  File "/usr/lib/python2.5/site-packages/weblog-1.3-py2.5.egg/weblog/
__init__.py", line 61, in main
    command_publish(args, options)
  File "/usr/lib/python2.5/site-packages/weblog-1.3-py2.5.egg/weblog/
publish.py", line 130, in command_publish
    generate_all()
  File "/usr/lib/python2.5/site-packages/weblog-1.3-py2.5.egg/weblog/
publish.py", line 77, in generate_all
    archives_template = env.get_template('archives.html.tmpl')
  File "/usr/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-linux-
i686.egg/jinja2/environment.py", line 499, in get_template
    template = self.loader.load(self, name, self.make_globals
(globals))
  File "/usr/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-linux-
i686.egg/jinja2/loaders.py", line 95, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-linux-
i686.egg/jinja2/loaders.py", line 306, in get_source
    return loader.get_source(environment, template)
  File "/usr/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-linux-
i686.egg/jinja2/loaders.py", line 145, in get_source
    f = open_if_exists(filename)
  File "/usr/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-linux-
i686.egg/jinja2/utils.py", line 188, in open_if_exists
    return file(filename, mode)
IOError: [Errno 20] Not a directory: '/usr/bin/weblog/templates/
archives.html.tmpl'

$

(a Jinja problem??)

BTW, if I explicitly run weblog.py and specify the right directories,
things work fine.

    HTH
    J^n


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henry Precheur  
View profile  
 More options Jan 7 2009, 11:45 pm
From: Henry Precheur <he...@precheur.org>
Date: Wed, 7 Jan 2009 20:45:33 -0800
Local: Wed, Jan 7 2009 11:45 pm
Subject: Re: [weblog-users] Re: Errno 20 when trying to run weblog 1.3

On Tue, Jan 06, 2009 at 10:20:44AM -0800, jkn wrote:
> No problem - here you go:

> [...]

> (a Jinja problem??)

> BTW, if I explicitly run weblog.py and specify the right directories,
> things work fine.

OK, I figured it out. I thought that Jinja would gently ignore all IO
errors when trying to load templates. It turns out Jinja just ignore
'reasonable' errors, if an error is a bit too squishy it passes the
error to the caller.

I have fixed this problem in the HG repository (you shouldn't probably
use it since it isn't backward compatible with Weblog 1.x)

The attached patch should fix your problem. To apply it:

cd /usr/lib/python2.*/site-packages
patch -p 1 < /path/to/the/patch/jinja.fix.diff

Tell me if it fixes your problem.

I might do a release this week to fix the problem.

Thanks!

--
  Henry Pręcheur

  jinja.fix.diff
1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »