[MacPorts] #28664: qgis @1.6.0: ImportError: No module named sipconfig

MacPorts noreply at macports.org
Mon Mar 7 01:34:59 PST 2011


#28664: qgis @1.6.0: ImportError: No module named sipconfig
----------------------------------+-----------------------------------------
 Reporter:  barthelemy@…          |       Owner:  vince@…           
     Type:  defect                |      Status:  new               
 Priority:  Normal                |   Milestone:                    
Component:  ports                 |     Version:  1.9.2             
 Keywords:                        |        Port:  qgis              
----------------------------------+-----------------------------------------

Comment(by barthelemy@…):

 sipconfig is available to macport's python but not to mac os version.

 {{{
 $ sudo python
 Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import sipconfig
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ImportError: No module named sipconfig
 }}}

 {{{
 $ sudo which python
 /opt/local/bin/python
 }}}


 {{{
 $ ls -l /opt/local/bin/python
 lrwxr-xr-x  1 root  admin    18B  2 jui  2010 /opt/local/bin/python ->
 /usr/bin/python2.6
 }}}

 {{{
 $ sudo /opt/local/bin/python2.6
 Python 2.6.6 (r266:84292, Dec 24 2010, 09:40:51)
 [GCC 4.2.1 (Apple Inc. build 5664)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import sipconfig
 >>>
 }}}

 Should I run {{{sudo python_select python26}}}? Or should qgis explicitly
 call macport's version?

 When I use python, I either call directly python26 or put
 {{{alias python='python2.6'}}} in my bashrc. I never messed with
 python_select.

-- 
Ticket URL: <https://trac.macports.org/ticket/28664#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list