Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Dialog of VoGIS-ProfilTool does nt appear. #22

Open
NoriyukiA opened this issue Feb 24, 2021 · 10 comments
Open

Dialog of VoGIS-ProfilTool does nt appear. #22

NoriyukiA opened this issue Feb 24, 2021 · 10 comments

Comments

@NoriyukiA
Copy link

I cannot see the dialog of VoGIS-ProfilTool when I start VoGIS-ProfilTools from the icon.
Log message "INFO Dialog already opened" is shown.
This phenomenon reappear after reinstalling of this plug-inn.

@wilhelmberg
Copy link
Collaborator

Download the ZIP file from this repository:
https://github.com/BergWerkGIS/VoGIS-Profil-Tool/blob/master/VoGisProfilTool.zip
and install it via Plugins -> Manage and Install Plugsins... -> Install from ZIP.
This should fix it.

@lcabon258
Copy link

I must say that this is an amazing plugin! Really appreciated!
After QGIS was crashed and the plugin cannot work; even after trying to reinstall the QGIS or the plugin itself.
I cannot install the plugin provided from above link.
The error I got is the following:

Couldn't  load plugin 'VoGisProfilTool' due to an error when calling its classFactory() method 

SyntaxError: (value error) invalid \x escape at position 24360 
Traceback (most recent call last):
  File "C:\PROGRA~1/QGIS32~1.0/apps/qgis/./python\qgis\utils.py", line 335, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\VoGisProfilTool\__init__.py", line 26, in classFactory
    from VoGisProfilTool.vogisprofiltoolmain import VoGISProfilToolMain
  File "C:\PROGRA~1/QGIS32~1.0/apps/qgis/./python\qgis\utils.py", line 799, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\VoGisProfilTool\vogisprofiltoolmain.py", line 31, in 
    from VoGisProfilTool.vogisprofiltoolmaindialog import VoGISProfilToolMainDialog
  File "C:\PROGRA~1/QGIS32~1.0/apps/qgis/./python\qgis\utils.py", line 799, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\VoGisProfilTool\vogisprofiltoolmaindialog.py", line 34, in 
    from VoGisProfilTool.vogisprofiltoolplot import VoGISProfilToolPlotDialog
  File "C:\PROGRA~1/QGIS32~1.0/apps/qgis/./python\qgis\utils.py", line 799, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\VoGisProfilTool\vogisprofiltoolplot.py", line 58, in 
    import VoGisProfilTool.resources_rc
  File "C:\PROGRA~1/QGIS32~1.0/apps/qgis/./python\qgis\utils.py", line 799, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\VoGisProfilTool\resources_rc.py", line 725
    "
     ^
SyntaxError: (value error) invalid \x escape at position 24360


Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
QGIS version: 3.20.0-Odense Odense, decaadbb31 

Python Path:
C:/PROGRA~1/QGIS32~1.0/apps/qgis/./python
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS32~1.0/apps/qgis/./python/plugins
C:\PROGRA~1\QGIS32~1.0\bin\python39.zip
C:\PROGRA~1\QGIS32~1.0\apps\Python39\DLLs
C:\PROGRA~1\QGIS32~1.0\apps\Python39\lib
C:\PROGRA~1\QGIS32~1.0\bin
C:\PROGRA~1\QGIS32~1.0\apps\Python39
C:\PROGRA~1\QGIS32~1.0\apps\Python39\lib\site-packages
C:\PROGRA~1\QGIS32~1.0\apps\Python39\lib\site-packages\win32
C:\PROGRA~1\QGIS32~1.0\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS32~1.0\apps\Python39\lib\site-packages\Pythonwin
C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  

The OS is Windows 10.
The QGIS version is 3.20.0.
The python version is 3.9.5 from the log.

After a very quick googling, the "resources_rc.py" is a file generate by pyQt (please correct me if it's not the case). I should not modify the file directly (?).

Please give me any hint to solve the problem.
Thanks !

@wilhelmberg
Copy link
Collaborator

@lcabon258 please try again. I updated the zip:
https://github.com/BergWerkGIS/VoGIS-Profil-Tool/blob/master/VoGisProfilTool.zip

@olavwv
Copy link

olavwv commented Jan 19, 2022

Hi
After QGIS was crashed and the plugin cannot work; even after trying to reinstall the QGIS or the plugin itself.
I cannot install the plugin provided from above link.
The error I got is the following:
Det oppstod en feil under kjøring av følgende kode:
pyplugin_installer.instance().installFromZipFile(r'C:\Users\Downloads\VoGisProfilTool.zip')

Traceback (most recent call last):
File "", line 1, in
File "C:\PROGRA1/QGIS321.3/apps/qgis/./python\pyplugin_installer\installer.py", line 575, in installFromZipFile
with zipfile.ZipFile(filePath, 'r') as zf:
File "C:\PROGRA1\QGIS321.3\apps\Python39\lib\zipfile.py", line 1257, in init
self._RealGetContents()
File "C:\PROGRA1\QGIS321.3\apps\Python39\lib\zipfile.py", line 1324, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Python-versjon:
3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]

QGIS-versjon:
3.22.3-Białowieża 'Białowieża', 1628765ec7

Python-sti:
['C:/PROGRA1/QGIS321.3/apps/qgis/./python', 'C:/Users/OlavWollebækVeslesto/AppData/Roaming/QGIS/QGIS3\profiles\default/python', 'C:/Users/OlavWollebækVeslesto/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins', 'C:/PROGRA1/QGIS321.3/apps/qgis/./python/plugins', 'C:\Program Files\QGIS 3.22.3\bin\python39.zip', 'C:\PROGRA1\QGIS321.3\apps\Python39\DLLs', 'C:\PROGRA1\QGIS321.3\apps\Python39\lib', 'C:\Program Files\QGIS 3.22.3\bin', 'C:\PROGRA1\QGIS321.3\apps\Python39', 'C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages', 'C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\GDAL-3.4.1-py3.9-win-amd64.egg', 'C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\win32', 'C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\win32\lib', 'C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\Pythonwin', 'C:/Users/OlavWollebækVeslesto/AppData/Roaming/QGIS/QGIS3\profiles\default/python']

@wilhelmberg
Copy link
Collaborator

@olavwv looking at the error message

"File is not a zip file"

it seems you got a faulty download.

Please re-download the ZIP and try to install again.
https://github.com/BergWerkGIS/VoGIS-Profil-Tool/blob/master/VoGisProfilTool.zip

@olavwv
Copy link

olavwv commented Jan 20, 2022 via email

@wilhelmberg
Copy link
Collaborator

@olavwv open the Log Messages panel:
View -> Panels -> Log Messages

Then click on the icon.
Any error messages in the log panel?

@olavwv
Copy link

olavwv commented Jan 20, 2022 via email

@wilhelmberg
Copy link
Collaborator

@olavwv hm, that's weird.

Please try this:

  • close any open QGIS instances
  • open Explorer
  • paste %APPDATA%\QGIS\QGIS3\profiles\default\QGIS into the address bar
    • it should evaluate to C:\Users\<YOUR-USER-NAME>\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS
  • open QGIS3.ini with a text editor
  • search for vogisprofiltoolmain
  • change isopen=true to isopen=false
    [vogisprofiltoolmain]
    isopen=true     <---- CHANGE HERE
    
  • save
  • try again in QGIS

@olavwv
Copy link

olavwv commented Jan 21, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants