Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm attempting to run QGIS on Redhat 5 64 bit architecture. Version of Python is 2.4.3. Version of QGIS is 1.7.4 (wroclaw).

When I run qgis, the splash screen appears, followed by a QMessageBox that says

Couldn't load PyQGIS
Python support will be disabled

can't import cStringIO

However, here's the kicker. The Python version is blank and the Python path is blank. (QGIS Version is set appropriated).

Because of my company's configuration, everything is installed from source.

python is on my PATH.

PYTHONPATH  = /usr/lib64/python_2.4:/usr/lib64/python_2.4/site-packages
LD_LIBRARY_PATH = /usr/lib64/python_2.4/site-packages/PyQt4:/apps/qgis_1.7.4/lib/qgis:/apps/qgis_1.7.4/lib

I find it really strange that QGIS doesn't seem to be finding python or the PYTHONPATH environment variable. Any suggestions??

Why is no traceback printed like I see in many other forum questions?

share|improve this question
    
Is the quoted code actually how you're setting the path variables? There shouldn't be any spaces around the equals sign. It throws an error, but you likely wouldn't notice it if you put it in some init script. –  lynxlynxlynx Jul 25 '12 at 20:59
    
Thanks for the response. No that's not how I'm setting the variables. Using setenv without the equals sign. No problem there... –  Jmoney38 Jul 26 '12 at 12:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.