qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.04k stars 2.92k forks source link

Error message when trying to follow training tutorial #56721

Open jdipsen37 opened 4 months ago

jdipsen37 commented 4 months ago

What is the bug or the crash?

I’ve downloaded v. 3.36 to my MacBook Pro. I’m following the most recent online tutorial (v. 3.34) and have run into a problem rather early on at “2.2 Lesson: Adding Your First Layers”. I’m trying to import a shape file from the downloaded exercise-data set and I’m getting an error message. The error message is

Invalid Data Source: exercise_data/shapefile/protected_areas.shp is not a valid or recognized data source.

Any idea how to get around this problem?

Steps to reproduce the issue

Screen Shot 2024-03-04 at 1 17 09 PM Screen Shot 2024-03-04 at 1 17 22 PM

Versions

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

QGIS version | 3.36.0-Maidenhead | QGIS code revision | 09951dc0acf -- | -- | -- | -- QGIS version 3.36.0-Maidenhead QGIS code revision [09951dc0acf](https://github.com/qgis/QGIS/commit/09951dc0acf) ### Supported QGIS version - [X] I'm running a supported QGIS version according to [the roadmap](https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule). ### New profile - [X] I tried with a new [QGIS profile](https://docs.qgis.org/latest/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles) ### Additional context I am also able to use Parallels to run Windows software. If it might solve my problem, I could try downloading the Windows version of QGIS.
agiudiceandrea commented 4 months ago

@jdipsen37, have you actually downloaded the sample training data zip file and unzipped it in a directory? Have you actually followed the instructions?

  • Press the … button next to Vector Dataset(s).
  • Select the exercise_data/shapefile/protected_areas.shp file in your training directory.

You need to select the correct path where the protected_areas.shp is stored with all the other needed ESRI Shapefile related sidecar files.

The path displayed in the provided screenshot is very likely incorrect for your system.

jdipsen37 commented 4 months ago

Yes, I did follow these two steps.

On Mar 5, 2024, at 3:31 PM, Andrea Giudiceandrea @.***> wrote:

@jdipsen37 https://github.com/jdipsen37, have you actually downloaded the sample training data zip file and unzipped it in a directory? Have you actually followed the instructions:

Press the … button next to Vector Dataset(s). Select the exercise_data/shapefile/protected_areas.shp file in your training directory. You need to select the correct path where the protected_areas.shp is stored with all the other needed ESRI Shapefile related sidecar files.

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/56721#issuecomment-1979670288, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGW2HDN4QBRSCBSRDX6ZL63YWY2UDAVCNFSM6AAAAABEH3SYYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZZGY3TAMRYHA. You are receiving this because you were mentioned.

agiudiceandrea commented 4 months ago

May you please provide a screenshot of the file manager window showing the content of the folder in which the protected_areas layer is stored and showing its full path? It would also be better if you could provide a screen recording of the procedure that you follow to add the layer to the map in QGIS.

jdipsen37 commented 4 months ago

Here’s a screen recording that shows the procedure I followed. I had to reduce the file size to send it in an email. If it’s too difficult to see, I can try again. Thanks.

On Mar 5, 2024, at 11:29 PM, Andrea Giudiceandrea @.***> wrote:

May you please provide a screenshot of the file manager window showing the content of the folder in which the protected_areas layer is stored and showing its full path? It would also be better if you may provide a scree recordind of the procedure that you follow to add the layer to the QGIS map.

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/56721#issuecomment-1980115501, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGW2HDOBJSNJ3JKW2LDQVXLYW2SSJAVCNFSM6AAAAABEH3SYYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBQGEYTKNJQGE. You are receiving this because you were mentioned.

agiudiceandrea commented 4 months ago

@jdipsen37, it is not possible to publish attachments on GitHub sending them via e-mail. Please attach the screen recording (provided it is visible) directly in the GitHub issue report at https://github.com/qgis/QGIS/issues/56721.

jdipsen37 commented 4 months ago

https://github.com/qgis/QGIS/assets/162374541/337eb7d4-c47f-4fe0-b7c3-6f7bfb4ce596

jdipsen37 commented 4 months ago

Hi, I have uploaded the screen recording to GitHub as you requested. Thanks, John

On Mar 6, 2024, at 11:35 AM, Andrea Giudiceandrea @.***> wrote:

@jdipsen37 https://github.com/jdipsen37, it is not possible to publish attachment on GitHub sending them via e-mail. Please attach the screen recording (provided it is visible) directly in the GitHub issue report at #56721 https://github.com/qgis/QGIS/issues/56721.

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/56721#issuecomment-1981429203, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGW2HDJH72YFNVHMWTGCBCDYW5HWRAVCNFSM6AAAAABEH3SYYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRGQZDSMRQGM. You are receiving this because you were mentioned.

agiudiceandrea commented 4 months ago

Thanks. The layer's path showed in the screen recording is different from the one showed in the screenshots. The layer's path in the screen recording make sense.

How did you install QGIS on your system? Please specify the full version info of QGIS ("In the QGIS Help menu -> About, click in the table, Ctrl+A and then Ctrl+C. Finally paste here. Do not make a screenshot.").

Does the issue only occurs trying to load that specific ESRI Shapefile layer or any other ESRI Shapefile layer or any other layer using QGIS on your system? Please try downloading again the training data.

jdipsen37 commented 4 months ago

As I recall I simply downloaded QGIS software from the website and went through a typical installation process. I don’t remember there being any problems with this.

I could uninstall QGIS and try a fresh download/reinstall the program.

I did try opening other shape files layers from the exercise_data and received the same error message.

John

On Mar 9, 2024, at 12:39 AM, Andrea Giudiceandrea @.***> wrote:

Thanks. The layer's path showed in the screen recording is different from the one showed in the screenshots. The layer's path in the screen recording make sense. How did you install QGIS on your system? Does the issue only occurs trying to load that specific ESRI Shapefile layer or any other ESRI Shapefile layer or any other layer using QGIS on your system?

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/56721#issuecomment-1986751814, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGW2HDOPETUCBG42R3COJW3YXKVC3AVCNFSM6AAAAABEH3SYYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWG42TCOBRGQ. You are receiving this because you were mentioned.

4Matt commented 4 weeks ago

I had the same issue on my mac (M1 Air, Sonoma, 14.5, QGIS 3.34.7 (LTR)) I found a workaround to this issue by compressing all of the shapefile files (e.g. protected_areas.dbf, protected_areas.prj, protected_areas.qbj, protected_areas.shp, and protected_areas.shx) to a zip file named protected_areas.zip, then opening the zip file in tutorial step 2.2.1 instead of the shp file.