Closed victormendoza2 closed 3 weeks ago
Hi victormendoza2,
Sorry for the late response, have you tried to publish using an empty folder? It looks like the issue was about a miss configured repository folder.
Please tell me if it isnt solved issue.
Good evening, I still have not been able to solve the problem. I have also followed the steps indicated in the video tutorial. I don't know what I could be doing wrong. Greetings.
Buenas noches, aún no he podido resolver el problema. Además he seguido los pasos que indica el video tutorial. No sé qué podría estar haciendo mal. Saludos.
Hi victor, sorry for late response, lately my work was consuming all my time.
Good evening, the issue was because a change by the github repository creation method. I've published a new version that should work now, please select an empty folder and to create a new directory. Hope it will work now!
Regards
Greetings, sorry for the delay in responding. Select an empty folder as directory but keep getting error. Attachment screenshot.
Saludos, perdón por la demora en dar respuesta. Seleccione una carpeta vacía como directorio pero sigue saliendo error. Adjunto captura de pantalla.
Thank for your report victormendoza2 ! So, i think this issue was because the repository was created but not initialized.
I've tested with the map that was in your release (just tell me if you want to delete it) the result is in :
PS: You can increase the zoom levels to allow more detailed view when you publish. PS2: I've tested with the QGIS in same version of your report.
Hope it works now! The new version is 3.9.11, waiting for qgis to review and accept.
Good evening, first thank you for answering the questions. If I could delete it. My question, what steps should I follow to be able to correctly publish the map within Mappia Publisher?
Buenas noches primero agradecer por contestar las dudas. Si podria eliminarlo. Mi pregunta, que pasos debo de seguir para poder publicar correctamente el mapa dentro de Mappia Publisher
No problem, thank you too, for your report. It always helps alot if you take some of your time to point some issues in this project.
So, i hope now it will work. If not, plz tell me, or send me message in discord group (just created it) https://discord.gg/SaMNCUWUtK .
I recommend to: 1 - Update your plugin. (in QGIS complements) 2 - Use an empty folder. 3 - Use a new repository name.
If it fails, there is some strange issue with the plugin, please report it. (I've even tested with QGIS in same version than yours, but it is not guaranteed to solve all issues.)
I've made some changes to continue publication even if it fails to upload the map file release.
PS: Noticed you're not using the newest plugin version (in QGIS menu -> Complements -> Manage and Install -> Update plugin )
I have the same issue with this project but it looks like the project isn't active anymore. Here is the output after running the plugin. It places a repo on GitHub without issue.
Traceback (most recent call last):
File "/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mappia_publisher/mappia_publisher_algorithm.py", line 765, in prepareAlgorithm
elif ((not GitHub.existsRepository(ghUser, ghRepository, ghPassword) and not GitHub.createRepo(ghRepository, ghUser, ghPassword, self.OUTPUT_DIR_TMP, feedback))
File "/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mappia_publisher/GitHub.py", line 318, in createRepo
return GitHub.initializeRepository(outputDir, ghUser, ghRepository, ghPassword, feedback)
File "/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mappia_publisher/GitHub.py", line 341, in initializeRepository
GitHub.pushChanges(repo, ghUser, ghRepository, ghPassword, feedback)
File "/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mappia_publisher/GitHub.py", line 423, in pushChanges
return GitInteractive.pushChanges(repo, user, repository, password, feedback)
File "/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mappia_publisher/GitHub.py", line 763, in pushChanges
return UTILS.runLongTask(repo.git.push, feedback, 'Please wait, uploading changes.', 30,
File "/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mappia_publisher/UTILS.py", line 144, in runLongTask
return job.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, self.kwargs)
File "/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mappia_publisher/git/cmd.py", line 542, in
Execution failed after 8.60 seconds
Very promising project!
We're getting the same error here: There is no branch created and "git push" will fail. This is a bug in the way the Mappia Publisher initializes the Github repo.
We got a workaround by letting the Mappia publisher run a first time until it fails. Then we fix the Github repo by uploading a file within that branch. Then run the Mappia Publisher again, and it should work.
But this workaround is tedious and not suitable for end users.
Thanks Steffan. I will try again. This looks like a really good solution but looks like it's in stale development since 2020. Is it still being actively developed? Paul
On Tue, 6 Feb 2024 at 23:58, Stefan @.***> wrote:
Very promising project!
We're getting the same error here: This is a bug in the way the Mappia Publisher initializes the Github repo.
We got a workaround by letting the Mappia publisher try a first time until it fails. Then we fixed the Github repo manually. Then we run the Mappia Publisher and it works.
But this workaround is not suitable for end users.
— Reply to this email directly, view it on GitHub https://github.com/MappiaEarth/mappia_publisher/issues/6#issuecomment-1930977075, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVSSJPXWJ7KMEIAWSIV2B3YSK7THAVCNFSM4TAGPHY2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJTGA4TONZQG42Q . You are receiving this because you commented.Message ID: @.***>
-- Paul J. Shapley MSc CGeog (GIS) FRGS
... but looks like it's in stale development since 2020. Is it still being actively developed?
No idea. It looks abandoned.
Fixed.
Traceback (most recent call last): File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\mappia_publisher_algorithm.py", line 792, in processAlgorithm return self.generate(writer, parameters, context, feedback) File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\mappia_publisher_algorithm.py", line 619, in generate GitHub.publishTilesToGitHub(writer.folder, ghUser, ghRepository, feedback, self.version, ghPassword) File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\GitHub.py", line 385, in publishTilesToGitHub GitHub.pushChanges(repo, user, repository, password, feedback) File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\GitHub.py", line 353, in pushChanges return GitInteractive.pushChanges(repo, user, repository, password, feedback) File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\GitHub.py", line 682, in pushChanges GitHub.getGitPassUrl(user, repository, password), "master:refs/heads/master") File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\UTILS.py", line 144, in runLongTask return job.result() File "C:\PROGRA~1\QGIS3~1.14\apps\Python37\lib\concurrent\futures_base.py", line 425, in result return self.get_result() File "C:\PROGRA~1\QGIS3~1.14\apps\Python37\lib\concurrent\futures_base.py", line 384, in get_result raise self._exception File "C:\PROGRA~1\QGIS3~1.14\apps\Python37\lib\concurrent\futures\thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\git\cmd.py", line 542, in
return lambda *args, *kwargs: self._call_process(name, args, kwargs)
File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\git\cmd.py", line 1005, in _call_process
return self.execute(call, **exec_kwargs)
File "C:/Users/VICTOR/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\mappia_publisher\git\cmd.py", line 822, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('C:\Program Files\Git\cmd\git.exe') failed due to: exit code(1)
cmdline: C:\Program Files\Git\cmd\git.exe push https://victormendoza2:-----------@github.com/victormendoza2/provinvia/ master:refs/heads/master
stderr: 'error: src refspec master does not match any
error: failed to push some refs to 'https://victormendoza2:-------@github.com/victormendoza2/provinvia/''
@edit to supress confidential information.