You are not logged in.

#1 2007-08-05 10:56:44

danlarkin
Member
Registered: 2007-08-05
Posts: 3

bazaar & trac-bzr

I'm using bazaar version control [0] for my django site.  Developing locally and then (hopefully) pushing up to my webfaction account.  Is it possible to have the bazaar binary installed on the servers?  And set up so that I can push/pull from a repository on my account?  Or do I need to download the source myself and install it.  If so, not a big deal; but other webfaction users might appreciate the option to use bazaar version control as well.

Also, I'd love to have the option to use trac with the bazaar version control plugin [1].


--Dan Larkin


[0] http://bazaar-vcs.org/
[1] https://launchpad.net/trac-bzr

Offline

 

#2 2007-08-05 11:55:24

remi
Member
From: London
Registered: 2006-09-19
Posts: 716
Website

Re: bazaar & trac-bzr

danlarkin wrote:

I'm using bazaar version control [0] for my django site.  Developing locally and then (hopefully) pushing up to my webfaction account.  Is it possible to have the bazaar binary installed on the servers?  And set up so that I can push/pull from a repository on my account?  Or do I need to download the source myself and install it.  If so, not a big deal; but other webfaction users might appreciate the option to use bazaar version control as well.

Also, I'd love to have the option to use trac with the bazaar version control plugin [1].


--Dan Larkin


[0] http://bazaar-vcs.org/
[1] https://launchpad.net/trac-bzr

I installed bazaar on your server. I also installed the python cElementTree and paramiko modules.

For the Trac module, can you try to run it on your own ?


Cheers,

Remi.


WebFaction - Smarter web hosting

Offline

 

#3 2007-08-05 13:35:00

danlarkin
Member
Registered: 2007-08-05
Posts: 3

Re: bazaar & trac-bzr

remi wrote:

danlarkin wrote:

I'm using bazaar version control [0] for my django site.  Developing locally and then (hopefully) pushing up to my webfaction account.  Is it possible to have the bazaar binary installed on the servers?  And set up so that I can push/pull from a repository on my account?  Or do I need to download the source myself and install it.  If so, not a big deal; but other webfaction users might appreciate the option to use bazaar version control as well.

Also, I'd love to have the option to use trac with the bazaar version control plugin [1].


--Dan Larkin


[0] http://bazaar-vcs.org/
[1] https://launchpad.net/trac-bzr

I installed bazaar on your server. I also installed the python cElementTree and paramiko modules.

For the Trac module, can you try to run it on your own ?


Cheers,

Remi.

Thanks for the swift response Remi.

I've got trac-bzr up and running (after a slight headache mucking through the install).

One more question though: To install trac via the panel I need to have an application of type subversion to tie it to.  But I'm never going to use svn, only bazaar.  I have no need for the subversion application and it's using up one of my valuable "application" slots :'(  Is there a solution?

P.S. Instructions on how I installed trac-bzr on webfaction in a post to follow.

Offline

 

#4 2007-08-05 13:58:39

danlarkin
Member
Registered: 2007-08-05
Posts: 3

Re: bazaar & trac-bzr

How I installed trac-bzr on webfaction:

I'm assuming you know how to install a trac application from the webfaction panel.  Do that first.

1) Obtain the trac-bzr sources from https://launchpad.net/trac-bzr/
    a) I used: "wget http://launchpadlibrarian.net/7517262/t … r.gz" but by the time you read this there may be a new version available, so you should get that one.

2) Unpack the sources
    a) I unpacked in ~/src/

3) On a server that you administer this step would be a little easier, but since we're running in a constrained shared-hosting environment we have to get a little bit creative.
    a) Create a symlink in ~/lib/python2.4/ named site-packages pointing to ~/lib/python2.4/
        1) run: "ln -s ~/lib/python2.4 ~/lib/python2.4/site-packages"
    b) The reason we have to do this is because of the limitations of python setuptools, --install-dir seems not to work, so we need to use --prefix, which requires a directory named site-packages.

4) Now install the trac-bzr sources
    a) run: "setup.py install --prefix=/home/danlarkin/lib/python2.4/" from the directory where you unpacked the sources.

5) Now you can delete the symlink
    a) run: rm ~/lib/python2.4/site-packages

6) Now edit the trac.ini file in your trac webapp
    a) I used: "emacs ~/webapps/trac/conf/trac.ini"
    b) Under the [trac] section change "repository_type = svn" to "repository_type = bzr"
    c) Also under [trac] change the "repository_dir" to something along the lines of "/home/USERNAME/bzr"
    d) Add a new section to the bottom of the file called "[components]" and add "tracbzr.* = enabled" underneath it.

7) Create the directory you put for the repository_dir
    a) I used: "mkdir ~/bzr"


Now you can but your bazaar repositories in ~/bzr/ and they'll show up in trac.  Sweet, eh?

P.S. Hopefully I wrote this up right; please correct me if I missed a step or misspoke about something.

--Dan Larkin

Offline

 

#5 2007-08-05 22:27:11

IAIHMB
Member
From: Hudson, Florida.
Registered: 2006-09-19
Posts: 1362

Re: bazaar & trac-bzr

Hello Dan,

danlarkin wrote:

One more question though: To install trac via the panel I need to have an application of type subversion to tie it to.  But I'm never going to use svn, only bazaar.  I have no need for the subversion application and it's using up one of my valuable "application" slots :'(  Is there a solution?

You can delete the application of type Subversion after you've created the application of type Trac but you're right, I don't think that you should have to create an application of type Subversion first. I'll bring it up in our next meeting.

danlarkin wrote:

P.S. Instructions on how I installed trac-bzr on webfaction in a post to follow.

Thank you sir. smile


-David Sissitka

Offline

 

#6 2007-12-17 12:01:57

dkiesow
Member
Registered: 2007-12-10
Posts: 19

Re: bazaar & trac-bzr

How would I go about requesting an install of Bazaar?

Coming across a few django projects using it - so would be a great feature to have.

thanks

Damon

Offline

 

#7 2007-12-17 12:28:12

IAIHMB
Member
From: Hudson, Florida.
Registered: 2006-09-19
Posts: 1362

Re: bazaar & trac-bzr

I was able to install Bazaar in a test account's home directory by executing the following command:

easy_install-2.4 -d $HOME/lib/python2.4/ -s $HOME/bin/ http://bazaar-vcs.org/releases/src/bzr-1.0.tar.gz

If you'd like to install Bazaar for Python 2.5 use easy_install-2.5 and $HOME/lib/python2.5/.

Hope it helps. smile


-David Sissitka

Offline

 

#8 2007-12-17 12:32:13

dkiesow
Member
Registered: 2007-12-10
Posts: 19

Re: bazaar & trac-bzr

That worked. I am still learning my way around UNIX had not used easy install before.

thanks

Damon

Last edited by dkiesow (2007-12-17 12:37:08)

Offline

 

#9 2008-01-26 20:49:56

pygi
Member
Registered: 2006-09-29
Posts: 15

Re: bazaar & trac-bzr

Hello,

I am interested how you managed to implement anonymous reading of repositories & writing for developers.
Advices and steps on how to accomplish that are more then welcome.

Note: This isn't related to trac, but rather to bzr itself.
Thanks!

Offline

 

#10 2008-07-21 15:53:29

mvferrer
Member
Registered: 2007-05-22
Posts: 1

Re: bazaar & trac-bzr

I'm currently hosted on a shared hosting plan, so I ran into trouble with the above instructions on installing Bazaar (bzr). So here's what worked for me:

*Note: I use python2.5. If you use a different version, then make sure you make the appropriate changes to the commands below. Don't forget to replace each instance of "USERNAME" with your own username. (These instructions are for accounts on *shared hosting*)

1. Check if you have site-packages directory in your Python install.
    RUN: "ls ~/lib/python2.5"

2. If you see "site-packages" listed as one of the results, go to step 3. If not, make the directory:
    RUN: "mkdir ~/lib/python2.5/site-packages"
   
3. Make sure you have the site-packages directory in your Python path.
    RUN: "export PYTHONPATH=/home/USERNAME/lib/python2.5/site-packages"
   
4. Now we're ready to install bzr.
    RUN: "easy_install-2.5 --prefix=/home/USERNAME -s /home/USERNAME/bin/ http://bazaar-vcs.org/releases/src/bzr- … r.gz"
   
*Note: I'm using version 1.5, but there may be a newer version by now. Change the "http://bazaar-vcs.org/releases/src/bzr-[Version/Release].tar.gz" part to match what you want.

5. Sit back and watch the install. (optional)



That should do it. Happy Bzr-ing!

- Mark Ferrer

Last edited by mvferrer (2008-07-21 16:02:11)

Offline

 

#11 2009-01-14 15:32:27

sebzur
Member
Registered: 2009-01-05
Posts: 3

Re: bazaar & trac-bzr

Can I please have bazaar installed at my server? It is web63.

Offline

 

#12 2009-01-15 15:51:54

seanf
Administrator
From: New Mexico, USA
Registered: 2008-02-01
Posts: 1642
Website

Re: bazaar & trac-bzr

sebzur wrote:

Can I please have bazaar installed at my server? It is web63.

You can install bzr into your home directory with the following command:

Code:

easy_install-2.5 -d $HOME/lib/python2.5 -s $HOME/bin https://launchpadlibrarian.net/20236262/bzr-1.10.tar.gz

Just copy and paste that into a SSH session - it's that easy!

Regards,

Sean F
--
WebFaction - Agile hosting for everyone
http://webfaction.com - http://twitter.com/webfaction

Online

 

#13 2009-03-09 08:51:43

filipa.andrade
Member
Registered: 2009-03-09
Posts: 2

Re: bazaar & trac-bzr

Hi,

I have installed bzr and trac-bzr on my area. I believe I followed all the directions but in trac I see the following error:

Warning: Can't synchronize with the repository (Unsupported version control system "bzr". Check that the Python support libraries for "bzr" are correctly installed.)

In the timeline I see:

TracError: Unsupported version control system "bzr". Check that the Python support libraries for "bzr" are correctly installed.

I am using python2.5 and I followed the instructions to install bzr and trac-bzr on this post.

Thanks for your help!

Offline

 

#14 2009-03-10 12:47:29

seanf
Administrator
From: New Mexico, USA
Registered: 2008-02-01
Posts: 1642
Website

Re: bazaar & trac-bzr

Are you sure your Trac is using Python2.5? The version installed via our control panel uses Python 2.4, so you'll need to either change the easy_install command above to use 2.4, or change your Trac to use 2.5

Online

 

#15 2009-03-11 05:45:05

filipa.andrade
Member
Registered: 2009-03-09
Posts: 2

Re: bazaar & trac-bzr

Yes, that was the problem, thank you!

Offline

 

#16 2009-06-27 14:07:40

nbv4
Member
Registered: 2009-05-22
Posts: 20

Re: bazaar & trac-bzr

Are you sure bzr is installed? I can't get it to work.

[nbv4@web82 utils]$ bzr branch lp:django-openid-auth
-bash: bzr: command not found

Offline

 

#17 2009-06-28 04:42:40

sime
Member
Registered: 2006-10-24
Posts: 96

Re: bazaar & trac-bzr

nbv4 wrote:

Are you sure bzr is installed? I can't get it to work.

Have you followed instructions to install it in your home directory? You might also need to adjust your PATH environment variable, something in the form of:

Code:

export PATH=$HOME/bin:$PATH

in your .bashrc file.

Regards,


WebFaction - Smarter web hosting
http://webfaction.com - http://twitter.com/webfaction

Offline

 

#18 2009-06-28 15:41:57

nbv4
Member
Registered: 2009-05-22
Posts: 20

Re: bazaar & trac-bzr

sime wrote:

nbv4 wrote:

Are you sure bzr is installed? I can't get it to work.

Have you followed instructions to install it in your home directory? You might also need to adjust your PATH environment variable, something in the form of:

Code:

export PATH=$HOME/bin:$PATH

in your .bashrc file.

Regards,

oh crap sorry I didnt see that post. it's working now. next time maybe i should try reading the thread...

Offline

 

#19 2009-08-28 20:07:52

codercpf
Member
Registered: 2009-02-12
Posts: 8

Re: bazaar & trac-bzr

Hi,

I tried to install trac-bzr as described above on my new Trac install (0.11.4), and although I'm sure I have followed the correct steps, and I already installed bzr before (bzr works)
However, I get the following error:

Code:

Warning: Can't synchronize with the repository (Unsupported version control system "bzr": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Despite it telling me to check the log, webapps/trac/log is empty...

Offline

 

#20 2009-08-29 10:16:14

seanf
Administrator
From: New Mexico, USA
Registered: 2008-02-01
Posts: 1642
Website

Re: bazaar & trac-bzr

I just looked in your home directory and saw that you're modifying your $PATH in .bash_profile. Try modifying it in your .bashrc instead (since .bash_profile is only used for interactive login sessions).

Online

 

#21 2009-08-29 15:13:53

codercpf
Member
Registered: 2009-02-12
Posts: 8

Re: bazaar & trac-bzr

Ok, that did help the lot (that + ln -s'ing bzrlib to $HOME/lib/python2.4)

Now I get this nice internal error, don't know why, don't know how, stuff like that. I'm googling the lot at the moment, but perhaps people here have heard of it and know the resolve?

Code:

Trac detected an internal error:

TypeError: can't compare datetime.datetime to float

[UPDATE]
So, the solution to this issue is quite simple, instead of using the above download link, it's best to use the newest revision (currently rev69)
The message of that revision is: "Fix TypeError, comparison of offset-naive and offset-aware datetimes."
Installing that version fixed the issues

Thanks for all the support smile

Last edited by codercpf (2009-08-29 15:40:56)

Offline

 

#22 2009-08-29 15:26:47

seanf
Administrator
From: New Mexico, USA
Registered: 2008-02-01
Posts: 1642
Website

Re: bazaar & trac-bzr

codercpf wrote:

Ok, that did help the lot (that + ln -s'ing bzrlib to $HOME/lib/python2.4)

Now I get this nice internal error, don't know why, don't know how, stuff like that. I'm googling the lot at the moment, but perhaps people here have heard of it and know the resolve?

Code:

Trac detected an internal error:

TypeError: can't compare datetime.datetime to float

Can you provide any more information about the error? Is there a full traceback? What are you doing immediately before you see the error?

Online

 

#23 2009-08-29 15:41:31

codercpf
Member
Registered: 2009-02-12
Posts: 8

Re: bazaar & trac-bzr

*bump*
Didn't notice you posted, see update @ previous post smile

Offline

 

#24 2009-08-29 16:05:18

seanf
Administrator
From: New Mexico, USA
Registered: 2008-02-01
Posts: 1642
Website

Re: bazaar & trac-bzr

Cool smile

Online

 

#25 2009-11-13 16:03:50

KeithM
Member
Registered: 2009-11-13
Posts: 4

Re: bazaar & trac-bzr

seanf wrote:

Are you sure your Trac is using Python2.5? The version installed via our control panel uses Python 2.4, so you'll need to either change the easy_install command above to use 2.4, or change your Trac to use 2.5

Hi, I'm very new to WebFaction, have kind of a noob question:

I noticed that Trac was installing with Python2.4 for some reason...
You say that we can change Trac install to use 2.5?  How does one go about doing that, exactly?  I'd rather go with 2.5 than 2.4.  I currently have bzr and Trac installed with 2.4.

Trying to get trac-bzr plugin working on web103 with everything using 2.4, but getting:

Trac detected an internal error:
AttributeError: 'int' object has no attribute 'isdigit'

This doesn't SEEM like the usual trac-bzr error, so maybe I have something else misconfigured?

I'm sure I'm missing something somewhere.  I have this working on a local Linux box.  I haven't moved my real source code up there yet, just trying it with some sample code in the repository in ~/code/trunk

Anyway, thanks for any help that can be provided.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson