Skip to content

FileNotFoundError when first launching QGIS #232

@weblorin

Description

@weblorin

I got this error right after launching QGIS today. I have gotten FileNotFoundError when first launching over past few weeks. I close and it has no visible impact and usually doesn't reoccur that day.

Image

Feb 10, the file was different but the eror was the same

@KellyMWhitehead says: I think I've noticed it once or twice before, seems to impact different files. I suspect its a timing issue with the resources sync? ... probably need to work with @MattReimer to figure this one out

{
  "ExceptionDetails": {
    "Type": "FileNotFoundError",
    "Message": "[WinError 2] The system cannot find the file specified: 'C:\\Users\\narlorin\\AppData\\Roaming\\QGIS\\QGIS3\\profiles\\default\\python\\plugins\\riverscapes_viewer\\resources\\symbology\\CHaMPMetrics\\Area_Wet.qml'"
  },
  "Environment": {
    "Qgis Version": "3.40.15-Bratislava",
    "Operating System": "windows",
    "Locale": "en"
  },
  "Trace": [
    {
      "Name": "run",
      "Filename": "plugins\\riverscapes_viewer\\src\\classes\\net_sync.py",
      "LineNo": 56,
      "Variables": {
        "self": "<riverscapes_viewer.src.classes.net_sync.NetSync object at 0x0000021FB7B459A0>"
      }
    },
    {
      "Name": "_syncFiles",
      "Filename": "plugins\\riverscapes_viewer\\src\\classes\\net_sync.py",
      "LineNo": 139,
      "Variables": {
        "self": "<riverscapes_viewer.src.classes.net_sync.NetSync object at 0x0000021FB7B459A0>",
        "remote_files": "[ ... ~300 file paths truncated ... ]"
      }
    },
    {
      "Name": "requestDownload",
      "Filename": "plugins\\riverscapes_viewer\\src\\classes\\util.py",
      "LineNo": 99,
      "Variables": {
        "remote_url": "https://xml.riverscapes.net/Symbology/qgis/CHaMPMetrics/Area_Wet.qml",
        "local_path": "C:\\Users\\narlorin\\AppData\\Roaming\\QGIS\\QGIS3\\profiles\\default\\python\\plugins\\riverscapes_viewer\\resources\\symbology\\CHaMPMetrics\\Area_Wet.qml",
        "expected_md5": "1aec813b01627f9b692a64e63033cb12",
        "resp": "<Response [200]>",
        "local_dir": "C:\\Users\\narlorin\\AppData\\Roaming\\QGIS\\QGIS3\\profiles\\default\\python\\plugins\\riverscapes_viewer\\resources\\symbology\\CHaMPMetrics",
        "lf": "<_io.BufferedWriter name='C:\\\\Users\\\\narlorin\\\\AppData\\\\Roaming\\\\QGIS\\\\QGIS3\\\\profiles\\\\default\\\\python\\\\plugins\\\\riverscapes_viewer\\\\resources\\\\symbology\\\\CHaMPMetrics\\\\Area_Wet.qml'>"
      }
    }
  ]
}

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions