Mac bzr dependencies broken after installing latest Python (2.6.2)

Bug #404882 reported by Zearin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Expired
Undecided
Unassigned

Bug Description

Okay, so, I just installed the latest version of Bazaar. I previously installed the latest version of Python, too.

___MY SUSPICIONS___
 • Python comes preinstalled on OS X
 • The latest version of Python leaves the preinstalled version(s) alone, but I believe it changes some important paths
 • The Mac Installer for Bazaar expects (I *think*) the preinstalled version of Python, and does not like whatever changes occurred when I installed the latest version of Python for Mac.

___INSTALLED___
 • Bazaar 1.17 using Mac installer (http://bazaar-vcs.org/Download)
 • Python 2.6.2 (http://python.org/download/)

___TERMINAL OUTPUT___
$ bzr version
bzr: ERROR: Couldn't import bzrlib and dependencies.
Please check the directory containing bzrlib is on your PYTHONPATH.

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.6/bin/bzr", line 95, in <module>
    import bzrlib
ImportError: No module named bzrlib

$ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/fink/bin:/fink/sbin:/usr/local/bin:/usr/local/man:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin

Hope that helps.

Let me know if there is any more info I can provide.

Revision history for this message
Zearin (zearin) wrote :

Wow, I just noticed that the above PATH repeats the first 3 items. Weird. I'm going to remove those duplicates right now.

Revision history for this message
Zearin (zearin) wrote :

Okay, I just located the following directory which looks like it has all of my old Bazaar *.egg-info folders and bundled plugins:

 /Library/Python/2.5/site-packages

I *think* where these things want to go is…

 /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages

Can someone tell me if it's safe to move/copy the contents from the old to the new? Or am I guessing incorrectly about these locations?

Revision history for this message
Zearin (zearin) wrote :

One more bit of info if it helps…here's the output of `ls' in /Library/Python/2.5/site-packages :

$ ls
BzrTools-1.14.0-py2.5.egg-info bzr_upload-0.1.0-py2.5.egg-info
BzrTools-1.16.0-py2.5.egg-info bzrlib
Crypto paramiko
Extmerge-r10-py2.5.egg-info paramiko-1.7.1-py2.5.egg-info
Loom-1.4.0dev0-py2.5.egg-info paramiko-1.7.4-py2.5.egg-info
README pycrypto-2.0.1-py2.5.egg-info
bzr-1.0.0-py2.5.egg-info qbzr-0.11-py2.5.egg-info
bzr-1.10-py2.5.egg-info qbzr-0.8.0-py2.5.egg-info
bzr-1.16.1-py2.5.egg-info qbzr-0.9.0-py2.5.egg-info
bzr-1.17-py2.5.egg-info qbzr-0.9.5-py2.5.egg-info
bzr-1.3-py2.5.egg-info qbzr-0.9.9-py2.5.egg-info
bzr-1.5-py2.5.egg-info sip.so
bzr-1.9-py2.5.egg-info sipconfig.py
bzr_email-0.0.1-py2.5.egg-info sipconfig.pyc
bzr_extmerge-0.0.1-py2.5.egg-info sipdistutils.app
bzr_gtk-0.95.0-py2.5.egg-info sipdistutils.py
bzr_rebase-0.5.1-py2.5.egg-info subvertpy
bzr_rewrite-0.5.4-py2.5.egg-info subvertpy-0.6.1-py2.5.egg-info
bzr_search-1.7.0dev0-py2.5.egg-info subvertpy-0.6.8-py2.5.egg-info
bzr_svn-0.6.3-py2.5.egg-info

Revision history for this message
Wouter van Heyst (larstiq) wrote :

A different python means a different site-packages (or dist-packages), packages installed for a specific version of python are not installed for a different one (unless there is packaging support as Debian does).

You will need to install bzr for python2.6 specifically. Potentially someone will have to build a python 2.6 specific mac installer.

Revision history for this message
Wouter van Heyst (larstiq) wrote :

Guillermo, Szilveszter, can the Mac installer deal with other pythons?

Revision history for this message
Guillermo Gonzalez (verterok) wrote : Re: [Bug 404882] Re: Mac bzr dependencies broken after installing latest Python (2.6.2)

Hi Wouter.

You'r right, the installer depends on python 2.5.

On Sun, Aug 2, 2009 at 1:57 PM, Wouter van
Heyst<email address hidden> wrote:
> Guillermo, Szilveszter, can the Mac installer deal with other pythons?
>

It could be done, but the size of the installer might be increased
substantially (~ x2) as all the platform dependent packages (from the
top of my head: bzr, pycrypto) must be compiled for both python 2.5
and 2.6.
Also I don't know if all the packages need to be rebuilt with 2.6 in
order to work with the MacPython version.

I think the safest bet is to force the use of the default python2.5
installation in the current OS X 10.5 installer, and possibly provide
a 2.6 installer.

Cheers,

--
Guillermo Gonzalez
<http://launchpad.net/~verterok>

Revision history for this message
Zearin (zearin) wrote :

There are separate installers for Bazaar 1.17 on OS X 10.4, for Python 2.5 and 2.6 (see http://bazaar-vcs.org/Download).

Could someone build an installer for OS X 10.5 with Python 2.6? (For 1.17 and for 1.18 when it is released?)

Revision history for this message
Vincent Ladeuil (vila) wrote :

Is it still a problem with 1.18 installers ?

Changed in bzr:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
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.