Add git repo to an existing Trac Enviroment

193 views
Skip to first unread message

ynoslenav

unread,
Sep 22, 2012, 1:23:39 PM9/22/12
to trac-...@googlegroups.com
I can not bare adicinar a repo to an existing trac environment, it presents errors:

$ sudo trac-admin / var / trac / sites / myproj repository resync '*'
TypeError
: 'NoneType' object is not subscriptable

And the browser is always the message:
Warning:

     Error with navigation contributor "BrowserModule"
     Error with navigation contributor "BrowserModule
"

My trac.log
2012-09-22 14:13:32,397 Trac[main] DEBUG: Dispatching <Request "GET '/admin/versioncontrol/repository'">
2012-09-22 14:13:32,397 Trac[graphviz] INFO: version: 0.7.5dev - id: $Id$
2012-09-22 14:13:32,398 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,400 Trac[session] DEBUG: Retrieving session for ID u'admin'
2012-09-22 14:13:32,403 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2012-09-22 14:13:32,405 Trac[main] DEBUG: Negotiated locale: None -> en_US
2012-09-22 14:13:32,412 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,412 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,412 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,412 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,412 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,412 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,412 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,412 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,413 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,413 Trac[env] INFO: The legacy TracWebAdmin plugin has been automatically disabled, and the integrated administration interface will be used instead.
2012-09-22 14:13:32,424 Trac[git_fs] INFO: detected GIT version 1.7.4.1
2012-09-22 14:13:32,424 Trac[svn_fs] DEBUG: Subversion bindings imported
2012-09-22 14:13:32,425 Trac[PyGIT] DEBUG: requested PyGIT.Storage instance 140672168937448 for '/opt/git/pyECF.git'
2012-09-22 14:13:32,426 Trac[chrome] DEBUG: Prepare chrome data for request
2012-09-22 14:13:32,429 Trac[PyGIT] DEBUG: requested PyGIT.Storage instance 140672168937448 for '/opt/git/pyECF.git'
2012-09-22 14:13:32,429 Trac[chrome] ERROR: Error with navigation contributor BrowserModule: TypeError: 'NoneType' object is not subscriptable
                                                                                                                                   


Thanks
[]s

Steffen Hoffmann

unread,
Sep 22, 2012, 4:17:35 PM9/22/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22.09.2012 19:23, ynoslenav wrote:
> *$ sudo trac-admin / var / trac / sites / myproj repository resync '*'

You did add spaces to the path above, didn't you? This patch wouldn't
make sense otherwise.

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlBeHN4ACgkQ31DJeiZFuHe0/QCgo6p1oNGC37uIr4iq++LAkOqX
edkAnAgJKFx7hrqSaORrAfv3tKicvAvz
=pVFi
-----END PGP SIGNATURE-----

Ivanelson Nunes

unread,
Sep 22, 2012, 10:22:07 PM9/22/12
to trac-...@googlegroups.com
Sorry! I do not insert spaces the command is this:

$ sudo trac-admin /va /trac/sites/myproj repository resync '*'

Bad of Ctrl + C / Ctrl + P

Twitter


2012/9/22 Steffen Hoffmann <hof...@web.de>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.



Steffen Hoffmann

unread,
Sep 23, 2012, 5:13:38 AM9/23/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23.09.2012 04:22, Ivanelson Nunes wrote:
> Sorry! I do not insert spaces the command is this: $ sudo trac-admin
> /va /trac/sites/myproj repository resync '*'Bad of Ctrl + C / Ctrl +
> P

Ok, just to be clear. Btw, I've never experienced string alteration in a
copy-n-paste action. What ever tool you use, you shouldn�t use it, at
least not for coding.

Sorry, that I can't help much on the original subject. I don't use Trac
with repositories at all. In general it's wise to check Trac tickets at
trac.edgewall.org for already reported issues as well as to do a mailing
list search and later on a web research on some keywords.

I'm quite sure I've seen
'TypeError : 'NoneType' object is not subscriptable'
mentioned before. An a quick search on
"trac git TypeError NoneType"
yields this ticket
http://trac.edgewall.org/ticket/10474

http://sfohart.blogspot.de/2012/01/trac-git-browsemodule-error.html
> It looks like the trac-git package that ships with Ubuntu Oneiric is
> broken, removing it and installing using easy_install from github
> fixed the problem for me.
>
> Foi o momento em que eu resolvi desinstalar o pacote trac-git do
> Ubuntu e instalar o plugin Git do Trac manualmente:
>
> easy_install http://github.com/hvr/trac-git-plugin/tarball/master
>
> Fonte: http://trac-hacks.org/ticket/9552

Easy, right?

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlBe0sAACgkQ31DJeiZFuHdXngCfdXxDel3ocXe3kbDpYzEyOpE/
1sUAn3oBI68MQKak4r5eQ3/HKEgFHFyz
=SqH8
-----END PGP SIGNATURE-----

ynoslenav

unread,
Sep 24, 2012, 2:34:14 PM9/24/12
to trac-...@googlegroups.com

As the help(Ticket #9552) I removed the "trac-git"

$ sudo apt-get remove trac-git -y   #
My Ubuntu 11.04 Natty.


And then installed the trac-git at github.

For Trac 0.12

easy_install http://github.com/hvr/trac-git-plugin/tarball/master

Note: I'm using Trac 1.0 -
I migrated from version 0.12 to 1.0

And the previous(
Error with navigation contributor "BrowserModule") error has been resolved! But generated a new error:

2012-09-24 15:20:26,040 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/browser'">
2012-09-24 15:20:26,043 Trac[session] DEBUG: Retrieving session for ID '16c4761e459949b54c35cfe0'
2012-09-24 15:20:26,045 Trac[main] DEBUG: Negotiated locale: None -> en_US
2012-09-24 15:20:26,053 Trac[chrome] DEBUG: Prepare chrome data for request
2012-09-24 15:20:26,055 Trac[PyGIT] DEBUG: requested PyGIT.Storage instance 140114303361552 for '/opt/git/pyECF.git'
2012-09-24 15:20:26,055 Trac[git_fs] DEBUG: disabled CachedRepository for '/opt/git/pyECF.git'
2012-09-24 15:20:26,056 Trac[perm] DEBUG: No policy allowed anonymous performing ACCTMGR_CONFIG_ADMIN on None
2012-09-24 15:20:26,056 Trac[perm] DEBUG: No policy allowed anonymous performing ACCTMGR_USER_ADMIN on None
2012-09-24 15:20:26,056 Trac[perm] DEBUG: No policy allowed anonymous performing TRAC_ADMIN on None
2012-09-24 15:20:26,056 Trac[perm] DEBUG: No policy allowed anonymous performing PERMISSION_GRANT on None
2012-09-24 15:20:26,056 Trac[perm] DEBUG: No policy allowed anonymous performing PERMISSION_REVOKE on None
2012-09-24 15:20:26,057 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on None
2012-09-24 15:20:26,057 Trac[perm] DEBUG: No policy allowed anonymous performing VERSIONCONTROL_ADMIN on None
2012-09-24 15:20:26,058 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_CREATE on None
2012-09-24 15:20:26,059 Trac[main] WARNING: [127.0.0.1] HTTPNotFound: 404 Trac Error (No node /)
2012-09-24 15:20:26,084 Trac[perm] DEBUG: No policy allowed anonymous performing EMAIL_VIEW on None

ynoslenav

unread,
Sep 24, 2012, 9:51:31 PM9/24/12
to trac-...@googlegroups.com
Friends,

I'm very sorry! The problem was actually just the name of the repository that pyECF typed instead pyecf.

[repositories]
.alias = pyecf
pyecf.description = This is the ''main'' project pyECF.
pyecf.dir = /opt/git/pyECF.git
pyecf.hidden = true
pyecf.type = git

Now I am a happy user Trac today that migrated from version 0.12 to 1.0
[]s 
\o/ 

Steffen Hoffmann

unread,
Sep 25, 2012, 2:52:19 AM9/25/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25.09.2012 03:51, ynoslenav wrote:
> Friends,
>
> I'm very sorry! The problem was actually just the name of the repository
> that pyECF typed instead pyecf.
>
> [repositories]
> .alias = pyecf
> pyecf.description = This is the ''main'' project pyECF.
> pyecf.dir = /opt/git/pyECF.git
> pyecf.hidden = true
> pyecf.type = git
>
>
> Now I am a happy user Trac today that migrated from version 0.12 to 1.0

Great! Thanks for the report.

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlBhVKEACgkQ31DJeiZFuHeeTACguJ6OSKxvN1nDUoSSU7kzx3Yd
Ep0AoKCjY9lgV6Rlzfp2Gbod2WT8cj+b
=ZFwi
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages