More

”No module named ogr” when installing QGIS plugins

”No module named ogr” when installing QGIS plugins


In QGIS 2.6.1, when I try to install the FlowMapper and QGIS Cloud plugins, I get an error - "The plugin is broken. Python said: no module named ogr" - giving me the only option of removing them. Other plugins work fine.

Because of this, when I open 2.6.1, this message comes up:

Nu s-a putut încărca pluginul FlowMapper datorită unei erori în timpul apelării metodei classFactory() Traceback (most recent call last): File "C:/PROGRA~1/QGISBR~1/apps/qgis/./pythonqgisutils.py", line 208, in startPlugin plugins[packageName] = package.classFactory(iface) File "C:/Users/Cezar/.qgis2/python/pluginsFlowMapper\__init__.py", line 24, in classFactory from flowmapper import FlowMapper File "C:/PROGRA~1/QGISBR~1/apps/qgis/./pythonqgisutils.py", line 460, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/Cezar/.qgis2/python/pluginsFlowMapperflowmapper.py", line 24, in import ogr File "C:/PROGRA~1/QGISBR~1/apps/qgis/./pythonqgisutils.py", line 460, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named ogr Versiune Python: 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] Versiune QGIS: 2.6.1-Brighton Brighton, e2a51df Cale Python: ['C:/PROGRA~1/QGISBR~1/apps/qgis/./python', u'C:/Users/Cezar/.qgis2 /python', u'C:/Users/Cezar/.qgis2/python/plugins', 'C:/PROGRA~1/QGISBR~1/apps/qgis /./python/plugins', 'C:PROGRA~1QGISBR~1inpython27.zip', 'C:PROGRA~1 QGISBR~1appsPython27DLLs', 'C:PROGRA~1QGISBR~1appsPython27lib', 'C:PROGRA~1QGISBR~1appsPython27libplat-win', 'C:PROGRA~1QGISBR~1apps Python27liblib-tk', 'C:PROGRA~1QGISBR~1in', 'C:PROGRA~1QGISBR~1apps Python27', 'C:PROGRA~1QGISBR~1appsPython27libsite-packages', 'C:PROGRA~1QGISBR~1appsPython27libsite-packagesPIL', 'C:PROGRA~1 QGISBR~1appsPython27libsite-packagesjinja2-2.7.2-py2.7.egg', 'C:PROGRA~1 QGISBR~1appsPython27libsite-packagesmarkupsafe-0.23-py2.7-win32.egg', 'C:PROGRA~1QGISBR~1appsPython27libsite-packagespython_dateutil- 2.2-py2.7.egg', 'C:PROGRA~1QGISBR~1appsPython27libsite-packagespytz- 2014.2-py2.7.egg', 'C:PROGRA~1QGISBR~1appsPython27libsite-packages win32', 'C:PROGRA~1QGISBR~1appsPython27libsite-packageswin32lib', 'C:PROGRA~1QGISBR~1appsPython27libsite-packagesPythonwin', 'C:PROGRA~1 QGISBR~1appsPython27libsite-packagesShapely-1.2.18-py2.7-win32.egg', 'C:PROGRA~1QGISBR~1appsPython27libsite-packagessix-1.6.1-py2.7.egg', 'C:PROGRA~1QGISBR~1appsPython27libsite-packageswx-2.8-msw-unicode', 'C:UsersCezar.qgis2pythonpluginsDigitizingTools	ools']

Before this version, I used QGIS 2.4, which I forgot to delete, so I still have it. I tested the plugins there and they work very well. Are the plugins incompatible with version 2.6.1, or is there another problem?


Resolved! It's a module PATH Python console problem.

In QGIS Brighton/apps/Python27/Lib/site-packages create osgeo.pth (Administrators) file and put

# .pth file for the osgeo extensions osgeo

start QGIS and install flowmapper ;)

Clarifying, after create osgeo.pth file, open him and just add in first line the word osgeo, save and run QGIS! Done.


The QGIS Cloud plugin is broken for me too on Windows XP and 7 with 32-bit QGIS 2.6.1 standalone.

You can grab an older version from here:

https://plugins.qgis.org/plugins/qgiscloud/version/0.11.11/

and extract it toC:Usersusername.qgis2pythonpluginsor the equivalent on other OS.

The version 0.11.11 starts for me without complaining. But don't try to update the plugin!

Feel free to add your case to https://github.com/qgiscloud/qgis-cloud-plugin/issues/16 to get the latest version fixed.

Unfortunately, thre is no older version of FlowMapper that runs without problem.


Update

Both plugins install on Ubuntu 14.04 without complaints.


ImportError: No module named RPi

At the terminal, I typed in “sudo apt-get install picap” followed by enter.

I get it installed but cannot execute "picap-setup" – instead an error message follows:

$ picap-setup Traceback (most recent call last): File "", line 1, in ImportError: No module named RPi

Python-dev and Rpi.GPIO are installed on the Pi. I also updated the Pi with the latest version with sudo apt-get update and sudo apt-get dist-upgrade.

I am thankful for any hints.


ModuleNotFoundError: No module named 'distutils.util'

The module not found likely means the packages aren't installed.

If they're already installed you can try to fix anything that may have been messed up in the upgrade with.

Debian has decided that distutils is not a core python package, so it is not included in the last versions of debian and debian-based OSes. You should be able to do sudo apt install python3-distutils and it should work.

However, it did not work for me. I use Parrot OS, which is, as Ubuntu, Debian based. I upgraded my system and pip stopped working for python3.7, and I also got the error ModuleNotFoundError: No module named 'distutils.util'

I tried a lot of stuff to fix it and to reinstall distutils, and I found out by pure luck, that pip3, for python3.8 did work. I then tried python3.7 -m pip3 -V , got /usr/bin/python3.7: No module named pip3 so I decided to have a look in the /usr/lib files.

I looked at /usr/lib/python3/dist-packages and everything looked fine. Then I looked at /usr/lib/python3.7 and saw the folder distutil .

I opened it, and saw the __pycache__ , the __init__.py file and a version.py file. I had no idea how many files should be in there, or what the code should be, but I knew that those two files were either wrong or missing another file.

Then I had a look at what was inside /usr/lib/python3.8/distutil and it was totally different. I found the following files:

This was a lot more promising, and since pip3 did work, I assumed that this distutils worked too, and I tried to copy it to the python3.7 folder by running this command:

sudo cp -r /usr/lib/python3.8/distutil /usr/lib/python3.7/distutil

Then I tried again python3.7 -m pip -V and got

pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.7)

Then I tried installing some modules and everything works fine. I hope this is helpful.


3 Answers 3

Searches for this turn up a couple of things to try.

Make sure the software update app has internet enabled

face palm I went into update manager/settings Ubuntu software tab and re-enabled all downloadable from internet buttons.

I found a way to solve this issue by simply removing the idle-python2.7 package:

The answer is simple. Your system is misconfigured. You did a local install of base Python packages. This is a no-no. You should install the base binary Python packages from your distributions repository. In particular, your Python installation is looking for files like lib/python2.7/site.py and lib/python2.7/sysconfig.py in /usr/local , but these files are part of the base Python package python2.7-minimal , or possibly libpython2.7-minimal , depending on what version of Debian/Ubuntu your distribution corresponds to.

Anyway, the solution is simple. Remove the locally installed base Python packages, and install the basic Python packages from your distribution. If the software is not available in your distribution, then install it locally. There is really not much point using a distribution if you don't use their packages.


Python/Django/WSGI/Apache - &ldquoImportError: No module named site&rdquo

I am trying to use a django application on my local ubuntu machine. However the site doesn't work and my /var/log/apache2/errors.log is filled with messages like this:

My /var/log/apache2/error.log (for today) looks like this:

That's the notice that it started up when I turned on my machine, followed by 12,966 lines all saying the no module named site message

note the lack of a datetime field. These errors are repeated even when not going to the website (i.e. even when not making web requests). When going to the website in a browser, it just hangs, as if waiting for a large download.


React Native 2 dependencies - 2 versions : Animated node with ID 2 already exists

I realise this has been asked numerous times (github, stackoverflow, expo.io), often with a solution, however I've tried them all so I'm of the thinking that my situation might be a little different.

I have developed (and somehow even released) an application in react native using Expo. This morning I updated the Expo SDK from version 40 to 41. No issues with iOS, only on android (emulator and real device).

I believe the problem lies with react-native-router-flux referring to an older dependency of react-native-reanimation. SDK 41 requires v2.2.0 whilst react-native-router-flux only needs v1.13.3

  • Deleted contents of package-lock.json and run npm install .
  • Removed the base navigation dependencies and react-native-router-flux and reinstalled using expo install (as I read this was better than using npm install on an Expo managed project.)
  • Added the Babel plugin to babel.config.js - plugins: ['react-native-reanimated/plugin']
  • Reset cache and run watchman watch-del-all
  • Changed versions of react native back and forth to no avail.
  • Spent most of today trying to work out how to fix this.

I haven't but would like to try:

  • To update RN router flux's dependency of RN reanimated to use the latest and installed version (but I'm not sure how). According to this comment, I'm "in for a difficult time".
  • Revert back to SDK 40 as I require module-specific permissions method for locations as Google Play has removed my app from the store for permission issues (so many hoops!)

See below for more details - please let me know if you need any other info.


Georeferencing in quantum gis tutorial download

Qgis tutorial 01 georeferencing in q gis shailendra sonekar. For the purpose of this tutorial, a basic understanding of gis is assumed. The ultimate goal of this tutorial is to georeference a scanned or drawn image. Arcgis tutorial georeferencing imagery duke libraries. There is little historical imagery and data available as a result, although this has started to change. Quantum gis qgis has a very powerful image georeferencing module. The purpose of this tutorial is to learn how to conduct a georeferencing process on a nongeoreferenced air photo in qgis. Georeferencing and digitizing new features in qgis duration. Sebelumnya juga ditunjukkan cara melakukan georeference menggunakan global mapper yang terdapat dalam ebook membuat.

A new and updated version is available at georeferencing topo sheets and scanned maps qgis3 most gis projects require georeferencing some raster data. Here we will see how to georeference a map with the help of another georeferenced map in qgis quantum gis georeference is a process to associate geographic location coordinates to any kind of physical object which is physically present over a raster image map or to a physical map, with help of other georeferenced data or with know location coordinates of some points of image which is. Tutorial georeferencing pemberian titik ikat peta rupabumi indonesia pada quantum gis qgis berbicara tentang pembuatan peta, bearti kita berbicara tentang pendapatan, pembuatan, pengolahan, analisis data spasial atau data keruangan serta informasi spasial. One of the limitations of computer mapping technology is that it is new. Georeference image menggunakan quantum gis qgis ini sebagai salah satu alternatif menggunakan gis open source software, selain melakukan georeference image menggunakan arcgis explorer download free gis viewer terbaru dari esri tersebut disini. Georeferencing vector data has long been very difficult using the opensource gis stack. It is possible that the previous information for that area dates several years back and was collected analogically that is, in paper or perhaps it was digitized but all you have left is the paper version of that inventory data. An experimental release can be found in the play store. Since our last tutorial regarding georeferencing images in qgis is 4 years old, let us have a second look at this task in the current times of qgis 2. Menteechain educationwhat, why and how 39,759 views.

Qgis tutorial quantum gis guide qgis is one of the most common open source application used by gis analyst, geographers, civil engineers and many other professionals. Many times these coordinates are obtained by doing field surveys. A common forestry task would be the update of the information for a forestry area. Georeferensi lembaran topo dan peta hasil scan qgis. To begin with we must activate the georeferencing toolbar in arcmap. Overview of georeferencingarcgis pro documentation. Digital spatial data can be represented in one of the two systems called vector or point system and raster or cell system in vector system, points are represented by single pair of x, y coordinate, lines by a series of x, y coordinate pairs and areas by a series of x, y coordinate pairs where first and last points are same in raster system, points are represented by single cells. Dalam video berdurasi sekitar 22 menit ini, pengguna juga diminta untuk menginstal openlayer plugin untuk memudahkan proses georeference citra. Untuk mendapatkan long term release bukan rilis terbaru pilihpemasangan tingkat lanjut dan pilih qgisltrfull untuk mendapatkan bleedingedge development build pilihpemasangan tingkat lanjut dan pilih qgisdevfull. Thats understandable because the best map digitization tutorials are usually for expensive commercial giss and the map digitization lessons for the free, equally functional, quantum gis are mostly written by volunteers. For testing and learning purposes, a sample dataset is available, which contains collections of data from different sources and in different formats. A quick guide overview quantum gis, which is often called qgis, is an open source gis desktop application. To georeference something is to define its existence in physical space, on a cartographically accurate reference system. Tasks such as opening a map, zooming, panning, etc.

Pick your style and favourite color and show your support with our qgis. The integration of paper and imaged maps into computer mapping technology is possible, and this tutorial will walk through the process of georeferencing. Qgis on most platforms does not open jpeg2000 images, so you will need to convert these to tiff. For a raster dataset that is file based, such as a tiff, the transformation will generally be stored in an external xml file that has an. This is brought about by using various georeferencing techniques. In this tutorial i will discuss the concepts, strategies and tools within qgis to achieve a high accuracy georeferencing. Scroll down to georeference gdal and check the box beside it, and click ok. Learn a workflow to align a raster dataset with its realworld location and evaluate the accuracy of georeferencing results. Select quantum gis as the component to install ignore the data sets unless you want to play around with other data click install. The first steps to getting started with arcgis pro are to download, install, and authorize the application. Georeferencing means that the internal coordinate system of a map or aerial photo image can be related to a ground system of geographic coordinates. If you are new in the field of geographic information system gis you should consider learning this application, as it will help you to solve many complex problems, analyze. Saving the georeferencing will store the transformation information in external filesit will not create a new raster dataset, which happens when you permanently transform your raster dataset.

Come along to shertogenbosch, the netherlands to find out more about qgis. In this first part we will use the georeferencing tools in arcgis to add location information to the scanned map. Raster data is an important data source for gis analysis and visualization. Comparing to arcgis, qgis can be installed on various operating systems, such as windows, mac os x, linux ubuntu, and unix, while arcgis only has windows version. Installer osgeo4w network 64 bit installer osgeo4w network 32 bit pada installer, pilihdesktop express install dan pilih qgis untuk menginstal rilis terbaru. I was recently asked how to georeference a map in qgis, this a common and important task. How to georeference in qgis sanjib mandal sangeotics. When data from different sources need to be combined and then used in a gis application, it becomes essential to have a common referencing system. Download, install, and authorizearcgis pro documentation.

Optionally, you can also download an offline help setup or language packs that allow you to run arcgis pro in your preferred language if you have further questions about download and installation, see the faq. Georeferencing using quantum gis qgis this process follows the basic principles of georeferencing. For this tutorial we will use a soviet map of crewe in england to see changes in city structure with a snapshot from 1957. Georeference a map with the help of another georeferenced map. Each lesson is designed to instruct you in one or more of these functions. This tutorial takes you through the steps necessary to import an image in jpeg format. Georeferencing survey of india toposheet using esris arcgis. Save printmap qgis composer view as pngpdf using python without changing anything in visible layout. It must be referenced to the correct location on the earths surface to be reliable. Georeferencing topo sheets and scanned maps qgis tutorials. Right click on a gray area at the top of the screen. Georeferencing raster data using arcgis esri training. Georeferencing vector data using qgis and ogr2ogr gis.

Georeferencing is continue reading arcgis tutorial. The relevant coordinate transforms are typically stored within the image file geopdf and geotiff are examples, though there are many possible mechanisms for implementing georeferencing. By doing so, it will enable the scanned image to be used in a geographic information system gis. Making a map qgis3 working with attributes qgis3 importing spreadsheets or csv files qgis3 basic vector styling qgis3 calculating line lengths and statistics qgis3 basic raster styling and analysis qgis3 raster mosaicing and clipping qgis3 working with terrain. Raster scans of paper maps and some satellite images are in pixel coordinates, they lack location information no longitude and latitude values. The most visible effect of georeferencing is that display. Georeferencing topo sheets, topo maps, satellite image or scanned maps in qgismost gis projects require georeferencing some raster data. I am told by the software, that gdal georeferencing is still installed and that i could. More specific instructions about downloading qgis stable vs qgis development can be found in all downloads. Georefrencing simply means converting the map coordinates to the ground coordinates. Sering koordinatkoordinat ini didapatkan dengan melakukan survey lapangan mengumpulkan koordinat dengan alat gps untuk mengidentifikasi fitur pada sebuah gambar atau peta.

Georeferencing in qgis i am currently working on a project that involves importing geologic map quadrangles and fitting them together to create a comprehensive mosaic of maps. What that allows you to do is convert screen pixels to a map of an area. In this tutorial, we will be using some gorgeous kite and balloon imagery collected by the public laboratory. As far as i know my next step should be the georeferencing of my image via qgis, and thats where i need some advice. Go to georeferencing toolbar and click on update georeferencing.

Georeferencing is the process of scaling, rotating, translating and deskewing the image to match a particular size and position. This procedure is thus imperative to data modeling in the field of geographic information systems gis and other cartographic methods. A free and open source geographic information system. In the following article, i will show you how to convert or export shapefile to the dxf format using arcmap. Download quantum gis take advantage of the large variety of advanced tools put at your disposal in order to create maps from scratch or edit existing ones. If you dont have access to a licensed copy of arcgis pro, you can sign up. On the toolbar go to plugins manage and install plugins. Have you collected gps points at key points in the map for your ground control points gpcs. Kebanyakkan proyek gis membutuhkan georeferensi pada sejumlah data raster. Before proceeding with georeferencing in quantum gis, we need to activate the appropriate plugins. Geographic information systems stack exchange is a question and answer site for cartographers, geographers and gis professionals. The term georeference will be familiar to gis users, but general cad users may have never seen the word before, even though the function is very useful for their work. Click finish when it has completed the installation you should now have qgis and associated grass and msys icons on your desktop.

It is possible to scan a paper map and import the resulting image into a gis. Basically, there are several ways to convert shapefile to dxf format. You can translate this location x3216, y212 to a geographic and therefore real spatial system by georeferencing it by using the defined coordinate system which the map is based on. In this case, qgis will assume a single pixel is 1 metre square and it will. Georeferencing raster imagery in qgis using vector data. They make the georeferenced versions of the images also available, but we will download a nongeoreferenced jpg image and go through the process of georeferencing it in qgis. Get the installer or packages for your operating system. Although no previous geographical information systems knowledge needed, ideally you will be able to do some simple tasks in qgis. Download the zipped file and save in your documentsarcgis folder. The scanned map consists of x and y values for each point in a map for eg.


Learning QGIS - Third Edition Create great maps and perform geoprocessing tasks with ease

QGIS is a user-friendly open source geographic information system (GIS) that runs on Linux, Unix, Mac OS X, and Windows. The popularity of open source geographic information systems and QGIS in particular has been growing rapidly over the last few years.

Learning QGIS Third Edition is a practical, hands-on guide updated for QGIS 2.14 that provides you with clear, step-by-step exercises to help you apply your GIS knowledge to QGIS. Through clear, practical exercises, this book will introduce you to working with QGIS quickly and painlessly.

This book takes you from installing and configuring QGIS to handling spatial data to creating great maps. You will learn how to load and visualize existing spatial data and create data from scratch. You will get to know important plugins, perform common geoprocessing and spatial analysis tasks and automate them with Processing.

We will cover how to achieve great cartographic output and print maps. Finally, you will learn how to extend QGIS using Python and even create your own plugin.
Style and approach

A step by step approach to explain concepts of Geospatial map with the help of real life examples


Watch the video: QGIS Tutorial: Filtering based on attributes in QGIS EN