using genshi >=0.5

15 views
Skip to first unread message

didley

unread,
Apr 7, 2008, 7:08:41 AM4/7/08
to Trac Users
Hi all,

know's anybody how can I use Genshi >=0.5. After installing the newest
trunk I got the message from Webserver

"The site can't be displayed"

My Platform is Windows Server 2000. I'm using

* Trac: 0.11dev
* Python: 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32
bit (Intel)]
* setuptools: 0.6c6
* SQLite: 3.3.4
* pysqlite: 2.3.2
* Genshi: 0.4.5dev
* jQuery: 1.2.1

didley

John Hampton

unread,
Apr 7, 2008, 10:20:29 AM4/7/08
to trac-...@googlegroups.com
didley wrote:
> know's anybody how can I use Genshi >=0.5. After installing the newest
> trunk I got the message from Webserver

easy_install http://svn.edgewall.org/repos/genshi/trunk

-John

didley

unread,
Apr 8, 2008, 4:54:09 AM4/8/08
to Trac Users


>
> easy_installhttp://svn.edgewall.org/repos/genshi/trunk
>
> -John

Dear John,

the same message again. To use the easy_install seems the same as to
use http://genshi.edgewall.org/browser/trunk and cooking a egg.

didley

Chris Shelton

unread,
Apr 8, 2008, 11:37:43 AM4/8/08
to trac-...@googlegroups.com

I went through an upgrade of genshi to the current trunk version from
svn just yesterday afternoon so that I could install the Timing and
Estimation plugin. Here are my notes:

svn co http://svn.edgewall.org/repos/genshi/trunk
cd trunk
su
python setup.py install

This seemed to work fine to upgrade genshi from 0.4.4 to the current
trunk version.

chris

John Hampton

unread,
Apr 8, 2008, 12:01:03 PM4/8/08
to trac-...@googlegroups.com
didley wrote:
> the same message again. To use the easy_install seems the same as to
> use http://genshi.edgewall.org/browser/trunk and cooking a egg.

Assuming that you downloaded a zip from the above link, it should be the
same. However, you said in your first email that you were using Genshi
0.4.5dev. If you actually installed trunk, this should not be the case.

http://genshi.edgewall.org/browser/trunk/setup.py#L70

Clearly shows that the version you should be seeing is 0.5. So if you
really are seeing 0.4.5dev, then you must have that version lying around
someplace and it's being loaded instead of trunk.

Also, you original message just said that you're getting a "The site
can't be displayed" message. Are you sure that this is actually related
to Genshi? Are there any tracebacks or errors in the log? The "The
site can't be displayed" message is generally a message from the browser
saying that it can't contact the site.

-John

didley

unread,
Apr 10, 2008, 10:44:06 AM4/10/08
to Trac Users


On Apr 8, 6:01 pm, John Hampton <pacopa...@pacopablo.com> wrote:
> didley wrote:
> > the same message again. To use the easy_install seems the same as to
> > usehttp://genshi.edgewall.org/browser/trunkand cooking a egg.
>
> Assuming that you downloaded a zip from the above link, it should be the
> same.  However, you said in your first email that you were using Genshi
> 0.4.5dev.  If you actually installed trunk, this should not be the case.
>
I told you I can't use genshi>=0.5 . So I went back to 0.4.5dev. And
my question about cooking a egg was just for interesting if there any
different between cook an egg or use easy_install.

> http://genshi.edgewall.org/browser/trunk/setup.py#L70
>
> Clearly shows that the version you should be seeing is 0.5.  So if you
> really are seeing 0.4.5dev, then you must have that version lying around
> someplace and it's being loaded instead of trunk.

See above. I can't see because I can't connect to the webserver. The
egg after using easy_install is named "Genshi-0.5dev-py2.5-win32.egg"
>
> Also, you original message just said that you're getting a "The site
> can't be displayed" message.  Are you sure that this is actually related
> to Genshi?
I'm not sure. after installing Genshi 0.5 I can't connect to the
webserver. When I go back to 0.4.5dev than it works.

didley

didley

unread,
Apr 10, 2008, 10:49:07 AM4/10/08
to Trac Users
> This seemed to work fine to upgrade genshi from 0.4.4 to the current
> trunk version.
>

That's what I want to have also. :-))

I will try it with python setup install (and not with python setup
bdist_egg and copy into site-packages folder).

Thanx

Gab

unread,
Apr 12, 2008, 7:53:31 AM4/12/08
to Trac Users
Hi there,
I tried the same operation than described above (svn co ..., then
setup.py install), and after restarting the Apache Server, I've got
the following message in the log file:

2008-04-12 13:48:37,687 Trac[chrome] DEBUG: Prepare chrome data for
request
2008-04-12 13:48:37,703 Trac[main] ERROR: unknown encoding: /trac/my-
project/register
Traceback (most recent call last):
File "c:\python25\lib\site-packages\trac\web\main.py", line 419, in
_dispatch_request
dispatcher.dispatch(req)
File "c:\python25\lib\site-packages\trac\web\main.py", line 218, in
dispatch
data, content_type)
File "c:\Python25\lib\site-packages\trac\web\chrome.py", line 673,
in render_template
data = self.populate_data(req, data)
File "c:\Python25\lib\site-packages\trac\web\chrome.py", line 581,
in populate_data
d['chrome'].update(req.chrome)
File "c:\Python25\lib\site-packages\trac\web\api.py", line 168, in
__getattr__
value = self.callbacks[name](self)
File "c:\Python25\lib\site-packages\trac\web\chrome.py", line 452,
in prepare_request
for category, name, text in contributor.get_navigation_items(req):
File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 302, in
get_navigation_items
(req.href.register()))
LookupError: unknown encoding: /trac/my-project/register


During installation, I only had one warning that seemed not so
significant to me (but I might be wrong) :

running build_ext
**********************************************************************
WARNING:
An optional C extension could not be compiled, speedups will not be
available.
**********************************************************************
creating build\bdist.win32


Does anyone a clue to solve this ?
many thanks

Gabriel

Jeroen Ruigrok van der Werven

unread,
Apr 12, 2008, 9:59:07 AM4/12/08
to trac-...@googlegroups.com
-On [20080412 13:54], Gab (gabriel...@gmx.net) wrote:
>I tried the same operation than described above (svn co ..., then
>setup.py install), and after restarting the Apache Server, I've got
>the following message in the log file:
>
>2008-04-12 13:48:37,703 Trac[main] ERROR: unknown encoding: /trac/my-
>project/register

> File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 302, in


>get_navigation_items
> (req.href.register()))
>LookupError: unknown encoding: /trac/my-project/register

Sounds like a problem with accountmanager, older version perhaps?

>WARNING:
>An optional C extension could not be compiled, speedups will not be
>available.

This is merely Genshi letting you know it did not find a suitable compiler
to build the C-language speedups, which improve throughput.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
Questions are the beginning of wisdom...

Gab

unread,
Apr 12, 2008, 10:14:21 AM4/12/08
to Trac Users
> >LookupError: unknown encoding: /trac/my-project/register
>
> Sounds like a problem with accountmanager, older version perhaps?

Disabling the account manager registration module enable to proceed
without error
acct_mgr.web_ui.registrationmodule = disabled

I've tried loading the latest version of the account manager from the
trunk and install it, but reactivating the registrationmodule leads to
the same error.

I'm using the Trac0.11 trunk and and Genshi trunk as well

thanks
regards
gabriel

>
> >WARNING:
> >An optional C extension could not be compiled, speedups will not be
> >available.
>
> This is merely Genshi letting you know it did not find a suitable compiler
> to build the C-language speedups, which improve throughput.
>
> --
> Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
> イェルーン ラウフロック ヴァン デル ウェルヴェンhttp://www.in-nomine.org/|http://www.rangaku.org/

Emmanuel Blot

unread,
Apr 12, 2008, 10:15:16 AM4/12/08
to trac-...@googlegroups.com
I would suspect an incorrect setting in your trac.ini file.

Please post it to the ML.

Cheers,
Manu

2008/4/12 Gab <gabriel...@gmx.net>:

--
Manu

Gabriel Scolan

unread,
Apr 12, 2008, 11:33:49 AM4/12/08
to trac-...@googlegroups.com
Attached is the trac.ini file I use.
thanks for the support
regards
gabriel


manu...@gmail.com a écrit :

trac.ini

Emmanuel Blot

unread,
Apr 12, 2008, 7:11:15 PM4/12/08
to trac-...@googlegroups.com
On Sat, Apr 12, 2008 at 5:33 PM, Gabriel Scolan <gabriel...@gmx.net> wrote:
> Attached is the trac.ini file I use.

It looks right.
Can you look for the occurences of "trac/my-project" in your Apache
config file and post these entries as well ?

Gabriel Scolan

unread,
Apr 13, 2008, 7:10:35 AM4/13/08
to trac-...@googlegroups.com
Here are the httpd.conf file extract concerning trac:

<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir "c:/www/projects/trac"
PythonOption TracUriRoot /trac
</Location>

<Directory "c:/www/projects/trac/my-project">
Options Indexes FollowSymLinks
# AllowOverride None
AllowOverride All
Order allow,deny
Allow from all
PythonPath "[r'c:/www/projects/trac/my-project/plugins'] + sys.path"
</Directory>

For information, with the exact same configuration, downgrading only
genshi to 0.4.4, it works fine.

I attached the httpd.conf file as well, so you've got all info.

gabriel

manu...@gmail.com a écrit :

httpd.conf

didley

unread,
Apr 13, 2008, 11:35:56 AM4/13/08
to Trac Users

See my older Tickets:

http://trac.edgewall.org/ticket/6718

It seems there is no solution.

didley

Jeroen Ruigrok van der Werven

unread,
Apr 13, 2008, 3:21:43 PM4/13/08
to trac-...@googlegroups.com

You never added information after any of my updates that explicitly said
what to do and if the trunks of both Trac and Genshi were very recent.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai

イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/

Where can I find a man who has forgotten words? I would like to have a word
with him...

didley

unread,
Apr 14, 2008, 10:18:54 AM4/14/08
to Trac Users


On Apr 13, 9:21 pm, Jeroen Ruigrok van der Werven <asmo...@in-
nomine.org> wrote:
> -On [20080413 17:36], didley (did...@gmx.de) wrote:
>
> >See my older Tickets:
>
> >http://trac.edgewall.org/ticket/6718
>
> >It seems there is no solution.
>
> You never added information after any of my updates that explicitly said
> what to do and if the trunks of both Trac and Genshi were very recent.
>

You are right. Now I updated the accountmanager and see the newest
trunk of genshi works.

Thanx and best regards
didley

Eirik Schwenke

unread,
Apr 14, 2008, 11:01:17 AM4/14/08
to Trac Users
On Apr 10, 4:44 pm, didley <did...@gmx.de> wrote:
> On Apr 8, 6:01 pm, John Hampton <pacopa...@pacopablo.com> wrote:> didley wrote:
> > > the same message again. To use the easy_install seems the same as to
> > > usehttp://genshi.edgewall.org/browser/trunkandcooking a egg.
>
> > Assuming that you downloaded a zip from the above link, it should be the
> > same.  However, you said in your first email that you were using Genshi
> > 0.4.5dev.  If you actually installed trunk, this should not be the case.
>
> I told you I can't use genshi>=0.5 . So I went back to 0.4.5dev. And
> my question about cooking a egg was just for interesting if there any
> different between cook an egg or use easy_install.
>
> >http://genshi.edgewall.org/browser/trunk/setup.py#L70
>
> > Clearly shows that the version you should be seeing is 0.5.  So if you
> > really are seeing 0.4.5dev, then you must have that version lying around
> > someplace and it's being loaded instead of trunk.
>
> See above. I can't see because I can't connect to the webserver. The
> egg after using easy_install is named "Genshi-0.5dev-py2.5-win32.egg"
>
> > Also, you original message just said that you're getting a "The site
> > can't be displayed" message.  Are you sure that this is actually related
> > to Genshi?
>
> I'm not sure. after installing Genshi 0.5 I can't connect to the
> webserver. When I go back to 0.4.5dev than it works.
>

Hi,

I think I found the problem (and the solution) - please see:

http://trac-hacks.org/attachment/ticket/2907/genshi-0.5.patch


best regards,

Eirik Schwenke

Jeroen Ruigrok van der Werven

unread,
Apr 14, 2008, 3:02:07 PM4/14/08
to trac-...@googlegroups.com
-On [20080414 16:19], didley (did...@gmx.de) wrote:
>You are right. Now I updated the accountmanager and see the newest
>trunk of genshi works.

Cool.
Otherwise we would've had to dig in more to resolve this.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/

Don't always think in a straight line...

Reply all
Reply to author
Forward
0 new messages