-
Notifications
You must be signed in to change notification settings - Fork 2
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 during merging the change layers #6
Comments
Hi Caroline, Thanks for the report. To fix and understanding what is the error, could you provide more information? OS? version Qgis?, is it possible that you can share a file to replicate the error? Regards |
Hi ! First, thanks for your quick answer :) Regards |
Thanks for the data for test it, I did some changes to show the error, could you please download the zip file and install the plugin manually in Qgis with that changes and repeat the operation? with that changes, the plugin shows the complete error, please send me that error messages, thanks |
Here are all the error messages I could find ("Impossible d'ouvrir" means "Impossible to open"), I hope that help. |
Thank Caroline for the report, but have you tested with the plugin that I send you in the above message? |
Yes, the error messages I send you are the one I have with the plugin you send here |
After talking with my tutor, I realised I misunderstood the "manually install" part of your message. Here are the error message you were probably looking for : Traceback (most recent call last): |
thank you very much, that's what I was looking for, I will check it |
Could you please test this version? (install it manually) |
I tested it, it shows the same error message as initially (error during merging the change layers check the QGIS log), and it can't display any error handler window like the one I send you in my previous message. |
I've tried to reproduce the problem but it was impossible, then the only way to get new information of the error is through you, sorry for bothering you again, please install this version and run again the test, and copy the message in the new dialog appear when you run the union or intersection process: |
You are not bothering me at all, I really appreciate the fact that you are trying your best to understand what could be wrong, and I'm sorry I can't help much... UnboundLocalError: local variable 'call_code' referenced before assignment During handling of the above exception, another exception occurred: Traceback (most recent call last): Version de Python : 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] Chemin Python : |
While working on another software (Whitebox), I realised that my computer doesn't have Java. It is likely that a lot of "commun" stuff like that are also missing. Is there any requirement that would explain the bug ? |
Thanks so much for your time and testing the plugin, the plugin doesn't require java, it has everything to run that is'not the problem. Here another change that I made in the plugin for testing: |
I got this error message : FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable Version de Python : 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] Chemin Python : |
That error was my fault, please try with this (again): |
Finally... I think that I found the problem, please test with this: |
EDIT : Even if I have an error message, a .tif file is created, and I am able to import it in QGIS afterward. However, this is working only if the change map is created from one Principal Component. I'm sorry to tell you this, but... Une erreur est survenue lors de l'éxécution du code Python: FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable Version de Python : 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] Chemin Python : |
Issue related #7 Please confirm if for you is fixed too, updating the plugin to v20.4.20 and testing it, thanks |
Hey Xavier ! Great to hear from you again. I update the plugin to v20.4.20. When performing the export, it is working when only one PC is considered. When two PC are considered, the options "union" and "intersect" doesn't work. The plugin doesn't show an error, but it does not create the tif file, only the "QGIS Layer Settings" file. Take care |
Hey Caroline, mmm interesting, I will check and as always thanks for your great feedback! |
Hello Xavier, any chance you manage to solve the problem ? |
I think I got it, maybe... please test this zip |
I have the same problem than in my previous message |
That is really weird, I've tested in a virtual machine with Windows and everything works, I think that this problem is very specific for your settings, could you please run this in the python console inside Qgis and copy the return: import locale
locale.getdefaultlocale() |
Could you please test again with this zip? sorry for putting you as a tester but is the only way at the moment: |
I agree, it is very weird ! It doesn't bother me to test it. ` FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\SIEXT5 During handling of the above exception, another exception occurred: Traceback (most recent call last): When performing the 'intersection' export, a similar error appears : `FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\SIEXT5 During handling of the above exception, another exception occurred: Traceback (most recent call last): The export of one PC by one PC still works without problems |
Thanks Caroline, I think that the problem is the locale strings in the paths, please test with this zip: |
The problem is not fixed... It is the same as my comment from the 21 April. |
Hello Caroline, thanks for your reports and helps, seeing that after some tests the bug is still present, the only way is replicant the bug using the same environment that you have, that is windows and same locale setting. While, if you need to use it, I recommend you either have a virtual machine with lang set in English or change your setting to English and UTF-8 |
Hello !
I follow this procedure : https://smbyc.github.io/PCA4CD/#2a-generate-the-change-layer-by-component in order to detect change between two images.
Everything works like a charm until the merging process. The window is opened, i can choose the method to merge the change layers and choose the path. However when i click on "ok", i have a error message "error during merging the change layers". I don't know how to solve it…
Thank you for your answer !
The text was updated successfully, but these errors were encountered: