on OS X 10.5 the installer does not recognize python 2.6 installation

Bug #776996 reported by kaleetos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Mac Installers
Fix Released
Undecided
Unassigned

Bug Description

After installing, the bzr command failed with an error stating to check if the directory containing 'bzrlib' was in PYTHONPATH. The issue has (to this point) been resolved by adding an alias for bzr (pointing to the directory where bzr was actually installed) and saving it in the bash_profile.

Revision history for this message
Gordon Tyler (doxxx) wrote :

Could you explain the problem in a bit more detail? Are you saying that a different 'bzr' is found on your PATH?

Changed in bzr-mac-installers:
status: New → Incomplete
Revision history for this message
kaleetos (kaleetos) wrote : Re: [Bug 776996] Re: on OS X 10.5 the installer does not recognize python 2.6 installation

 Sorry, you have to excuse me if my explanation is poor as I am new to
all of these commands involving the terminal. I had a very gracious
fellow on IRC by the name of vila helping me resolve the issue last
night. So here it goes:
 From what I understand, when I installed bzr for mac osx 10.5, the
bzr installation assumed that I am using python 2.5 (as that is what
comes built in with the mac). However, a while back I upgraded to the
2.6 from python.org and thus my primary python installation is 2.6.
When I tried to run my bzr installation I was receiving an error to
check that the directory containing 'bzrlib' was in my PYTHONPATH. As
it turns out, this is because my python 2.6 did not recognize the
installation of bzr because it was installed for python 2.5 (and thus
the directory for bzr was in '/library/python/2.5/site-packages'). The
directories in my PYTHONPATH were all referencing python 2.6 eg, '/
library/python/2.6/site-packages'.

 The solution provided to me: I created an alias for bzr:alias
bzr='PYTHONPATH=/Library/Python/2.5/site-packages python2.5 /usr/local/
bin/bzr'which referred to the 2.5 installation of bzr. I then opened
my .bash_profile using the following command: pico ~/.bash_profile,
and added this alias to the .bash_profile. After starting a new
terminal session, bzr loaded correctly.

If there is anything more I can provide you with, please shoot me
another email.

On May 4, 2011, at 8:06 AM, Gordon Tyler wrote:

> Could you explain the problem in a bit more detail? Are you saying
> that
> a different 'bzr' is found on your PATH?
>
> ** Changed in: bzr-mac-installers
> Status: New => Incomplete
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/776996
>
> Title:
> on OS X 10.5 the installer does not recognize python 2.6 installation
>
> Status in Mac Installers for Bazaar:
> Incomplete
>
> Bug description:
> After installing, the bzr command failed with an error stating to
> check if the directory containing 'bzrlib' was in PYTHONPATH. The
> issue has (to this point) been resolved by adding an alias for bzr
> (pointing to the directory where bzr was actually installed) and
> saving it in the bash_profile.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/bzr-mac-installers/+bug/776996/+subscribe

Revision history for this message
Gordon Tyler (doxxx) wrote :

Thanks for the reply, Carlos. This is similar, if not the same as bug 702467. I have an idea to workaround this problem in a future version of the installer that would in essence accomplish the same thing as your alias.

Revision history for this message
Gordon Tyler (doxxx) wrote :

I believe this should be fixed in the 2.5b4-2 installer. It should now explicitly use python 2.6 and ignores whatever python is on the PATH. Please let me know if it works for you.

Changed in bzr-mac-installers:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.