Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Parse error at line 1, column 1: error occurred while parsing element in QGIS 3 and 2.18 #4

Open
Mangoesmapping-GeorgeCorea opened this issue Aug 6, 2018 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@Mangoesmapping-GeorgeCorea

When I try to run the plugin, I can set the layers, file names etc and even with a simple project with just a few small vector layers I get this error [Error: Parse error at line 1, column 1: error occurred while parsing element]

What can I do?

@Kapanther
Copy link

I have narrowed it down to be the QGZ format in V>3.0. If you save your QGIS project as a "QGS" format instead it works fine.

@Mangoesmapping-GeorgeCorea
Copy link
Author

@Fabien98
Copy link

Fabien98 commented Oct 12, 2018

Hello, same problem here:

INFO    SHP export selected
CRITICAL    Parse error at line 1, column 1:
             error occurred while parsing element
             Traceback (most recent call last):
              File "C:/Users/Fab/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qconsolidate3\consolidatethread.py", line 71, in run
              self.consolidate()
              File "C:/Users/Fab/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qconsolidate3\consolidatethread.py", line 96, in consolidate
              doc = self.loadProject()
              File "C:/Users/Fab/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qconsolidate3\consolidatethread.py", line 174, in loadProject
              raise SyntaxError(msg)
              File "", line None
             SyntaxError: Parse error at line 1, column 1:
             error occurred while parsing element

Thanks for the workaround @Kapanther .
It does not work properly though...

@ghtmtt
Copy link

ghtmtt commented Oct 18, 2018

The error is still here on QGIS 3.3 on a Linux Debian Sid machine. Any news?

@danzig666 danzig666 self-assigned this Nov 5, 2018
@danzig666 danzig666 added the bug Something isn't working label Nov 5, 2018
@danzig666
Copy link
Owner

Please just save as .QGS for the time being. Getting this fixed is not trivial.

@alpterlab
Copy link

@alpterlab
Copy link

Thanks....

Please just save as .QGS for the time being. Getting this fixed is not trivial.

Thanks.... that worked... you just need to make sure the file you save is a copy of it and the previous is closed 👍

@mjb235
Copy link

mjb235 commented Jun 20, 2019

Hello
I am having the same problem. I saved the file as .qgs, closed it and opened it but the same error occurs.

@grunsepin
Copy link

Hello
I am having the same problem (QGis 3.12)

CRITICAL Parse error at line 1, column 1:
error occurred while parsing element
Traceback (most recent call last):
File "C:/Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qconsolidate3\consolidatethread.py", line 71, in run
self.consolidate()
File "C:/Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qconsolidate3\consolidatethread.py", line 96, in consolidate
doc = self.loadProject()
File "C:/Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qconsolidate3\consolidatethread.py", line 174, in loadProject
raise SyntaxError(msg)
File "", line None
SyntaxError: Parse error at line 1, column 1:
error occurred while parsing element

@ghost
Copy link

ghost commented Sep 4, 2021

problems with kdenlive on ubuntu
kdenlive error occurred while parsing element

I can't open video files

the message above appears

@eanema
Copy link

eanema commented Feb 21, 2024

I have forked this repo and fixed this issue by extracting the .qgz file into the target directory. (I have also fixed a few other issues that are mentioned in the issues section)

There are not many code changes, but they can be see here: master...eanema:qconsolidate3:master

The forked repo is here: https://github.com/eanema/qconsolidate3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants