GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Client fails to pull on windows (when installed from pip) · Issue #114 · MerginMaps/python-api-client

Client fails to pull on windows (when installed from pip) #114

New issue
Copy link
New issue
Copy link
Open
Open
Client fails to pull on windows (when installed from pip)#114
Copy link
Labels
bugSomething isn't workingSomething isn't workingwindows

Description

@wonder-sk
wonder-sk
opened on Nov 23, 2021
Issue body actions

When using the client on Windows outside of QGIS (e.g. installed through pip), it does not work correctly when trying to pull a new version that involves geodiff operations:

import mergin
client = mergin.MerginClient (login='john', password='topsecret')
client.download_project('john/project', 'C:/Data/Project')
# now do some modifications to a GeoPackage on the server
client.pull_project('C:/Data/Project')

It fails with the following traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\XYZ\AppData\Roaming\Python\Python38\site-packages\mergin\client.py", line 546, in pull_project
    return pull_project_finalize(job)
  File "C:\Users\XYZ\AppData\Roaming\Python\Python38\site-packages\mergin\client_pull.py", line 553, in pull_project_finalize
    raise ClientError("Cannot patch basefile {}! Please try syncing again.".format(basefile))
mergin.common.ClientError: Cannot patch basefile C:\Data\Project\.mergin\test.gpkg! Please try syncing again.

It looks like the underlying issue is in geodiff as client-log.txt contains this error:

GEODIFF: Unable to enable sqlite3/gpkg extensions

Activity

  1. wonder-sk
    added
    bugSomething isn't workingSomething isn't working
    windows
    on Nov 23, 2021
  2. wonder-sk commented on Nov 23, 2021

    @wonder-sk
    wonder-sk
    on Nov 23, 2021
    ContributorAuthor
    More actions

    It looks like adding sqlite3 module import fixes the issue:

    import sqlite3
  3. PeterPetrik commented on May 6, 2022

    @PeterPetrik
    PeterPetrik
    on May 6, 2022
    Contributor
    More actions

    could be related also that we shipped sqlite without tree, see MerginMaps/geodiff#167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't workingwindows

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.