Been trying lots of "solutions" from net research but nothing seems to work.
I have the current versions of QGIS from OSGEO and PyScripter 2.5
Based on one of the solutions I tried...
import syssys.path.extend([r"C:\OSGeo4W64\apps\qgis\python",r"C:\OSGeo4W64\apps\qgis\bin"])sys.path.reverse()import qgis.coregives me
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\; C:\OSGeo4W64\bin pythonpath includes
C:\OSGeo4W64\apps\qgis\binC:\OSGeo4W64\apps\qgis\pythonTried "solutions"
Problem with import qgis.core when writing a stand-alone PyQGIS script
after running the .bat in above I get "ImportError: no module name qgis.core" in python within osgeo shell as well.
أكثر...
I have the current versions of QGIS from OSGEO and PyScripter 2.5
Based on one of the solutions I tried...
import syssys.path.extend([r"C:\OSGeo4W64\apps\qgis\python",r"C:\OSGeo4W64\apps\qgis\bin"])sys.path.reverse()import qgis.coregives me
Message File Name Line Position Traceback
4
C:\OSGeo4W64\apps\qgis\python\qgis__init__.py 26 ImportError: No module named sip
import processinggives me4
C:\OSGeo4W64\apps\qgis\python\qgis__init__.py 26 ImportError: No module named sip
ImportError: No module named processing
and path is
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\; C:\OSGeo4W64\bin pythonpath includes
C:\OSGeo4W64\apps\qgis\binC:\OSGeo4W64\apps\qgis\pythonTried "solutions"
- https://mapoholic.wordpress.com/2012/06/28/configure-pyscripter-qgis/
- How can I Setup Python to recognize QGIS(and links from it)
- http://stackoverflow.com/questions/15297391/problems-while-importing-pyqgis-modules-in-python
- Cannot run standalone QGIS script
Problem with import qgis.core when writing a stand-alone PyQGIS script
after running the .bat in above I get "ImportError: no module name qgis.core" in python within osgeo shell as well.
أكثر...