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

MacPorts noreply at macports.org
Mon Mar 7 02:17:12 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@…):

 Hi,

 vince said:

   This is plain wrong. It means that one of your python
   has somehow been installed not in the Macports tree,
   but in the system tree.

 I think this is the one installed by Apple, together with
 mac os. Don't you have the same?
 If not, can you detail why it is wrong?

 {{{
 $ cat /opt/local/etc/select/python/python26-apple
 /usr/bin/python2.6
 /usr/bin/pythonw2.6
 /usr/bin/python2.6-config
 -
 /usr/bin/pydoc2.6
 /usr/bin/smtpd2.6.py
 -
 /usr/share/man/man1/python2.6.1.gz
 }}}
 I don't know what this file is, and what its content means.
 But it might suggest that the {{{/usr/bin/python2.6}}} is
 indeed from Apple.

 vince said::

   As you see, when you invoke python via python you get
   another version that when you type
   {{{/opt/local/bin/python2.6}}}.

 What's wrong with that? Moreover, I also have python 2.7
 and 3.2 installed (from macport).

 vince said:

   Besides, there is no need to use sudo to launch executables;
   on the contrary, it defeats the superuser protection mechanism.

 The problem is not with the version of python my user uses,
 but with the one port uses during qgis setup.
 As I run port through sudo, I think I need to use sudo here to
 get meaningful information.

 By the way, because of my bashrc plays, I would not be the same
 version:
 {{{
 $ python
 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.
 >>>
 $ 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.
 >>>
 }}}

 vince said:

   You must clean that before going on.

 I don't think there is anything wrong with my current setup.
 So I don't know what and how I should clean.

 Do you have a link to some documentation about the clean way?

 By the way, thank you a lot for your help.

 PS: there is also the problem with the fcgi dependency

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


More information about the macports-tickets mailing list