Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API versioning issue with tutorial1.py #1

Open
jesselangdon opened this issue Jan 25, 2017 · 0 comments
Open

API versioning issue with tutorial1.py #1

jesselangdon opened this issue Jan 25, 2017 · 0 comments

Comments

@jesselangdon
Copy link

jesselangdon commented Jan 25, 2017

My laptop stats:
OS: Windows 7
QGIS: 2.18.2

C:\OSGeo4W\bin\python.exe "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.2.3\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 50372 --file C:/dev/pyGISExperiments/SFRWeek/tutorial1.py
pydev debugger: process 6192 is connecting

Connected to pydev debugger (build 162.1967.10)
Backend TkAgg is interactive backend. Turning interactive mode on.
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x6
Traceback (most recent call last):
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.2.3\helpers\pydev\pydevd.py", line 1580, in <module>
    globals = debugger.run(setup['file'], None, None, is_module)
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.2.3\helpers\pydev\pydevd.py", line 964, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:/dev/pyGISExperiments/SFRWeek/tutorial1.py", line 21, in <module>
    array = srcband.ReadAsArray()
  File "C:\OSGeo4W\apps\Python27\Lib\site-packages\osgeo\gdal.py", line 2274, in ReadAsArray
    import gdalnumeric
  File "C:\OSGeo4W\apps\Python27\Lib\site-packages\osgeo\gdalnumeric.py", line 1, in <module>
    from osgeo.gdal_array import *
  File "C:\OSGeo4W\apps\Python27\Lib\site-packages\osgeo\gdal_array.py", line 24, in <module>
    _gdal_array = swig_import_helper()
  File "C:\OSGeo4W\apps\Python27\Lib\site-packages\osgeo\gdal_array.py", line 23, in swig_import_helper
    return _mod
UnboundLocalError: local variable '_mod' referenced before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant