danzig666 / qconsolidate3

Modified version of the QConsolidate/OQ-Consolidate plugin for QGIS 3+
GNU Affero General Public License v3.0
12 stars 4 forks source link

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

Open Mangoesmapping-GeorgeCorea opened 6 years ago

Mangoesmapping-GeorgeCorea commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

That works. Thanks.

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5& 08/08/18, 19:30:04

George Corea Data Guru Mangoesmapping Pty Ltd

Office: 07 4004 9714 Mob: 0451534563 Email: data@mangoesmapping.com.au Address: Suite 13, Jack Street Business Centre, 1 Jack St, Atherton Postal: PO Box 323, Herberton QLD 4887 Website: www.mangoesmapping.com.au

Mangoesmapping were awarded 'Regional Innovators' prize at the 2017 Tablelands Business Excellence Awards for our work modelling gully erosion with UAV's (drones).

Although all care is taken to ensure the accuracy and completeness of the information in this document, no responsibility will be taken by Mangoesmapping, for any personal, professional or financial damage arising from the use of the document or any omissions, errors or inaccuracies contained therein.

On Wed, Aug 8, 2018 at 1:34 PM, Kapanther notifications@github.com wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/danzig666/qconsolidate3/issues/4#issuecomment-411273666, or mute the thread https://github.com/notifications/unsubscribe-auth/AoLdu5Y-fIRYlxsHNcHMZkBIFCjhZMT7ks5uOlxhgaJpZM4VvwUj .

-- Although all care is taken to ensure the accuracy and completeness of the information in this document, no responsibility will be taken by Mangoesmapping, for any personal, professional or financial damage arising from the use of the document or any omissions, errors or inaccuracies contained therein.

Fabien98 commented 5 years ago

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 commented 5 years ago

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

danzig666 commented 5 years ago

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

alpterlab commented 5 years ago

https://github.com/alexbruy/qconsolidate/issues/12

alpterlab commented 5 years ago

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 commented 5 years ago

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

grunsepin commented 4 years ago

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 commented 2 years ago

problems with kdenlive on ubuntu kdenlive error occurred while parsing element

I can't open video files

the message above appears

eanema commented 6 months ago

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: https://github.com/danzig666/qconsolidate3/compare/master...eanema:qconsolidate3:master

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