error on start

Issue #983 resolved
Andreas Janz created an issue

Traceback (most recent call last):
File "<input>", line 1, in <module>
File "D:\pycharm\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "D:\pycharm\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/source/QGISPlugIns/enmap-box/scripts/start_enmapbox.py", line 2, in <module>
from enmapbox import EnMAPBox, initAll
File "D:\pycharm\plugins\python\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self.system_import(name, *args, **kwargs)
File "D:\source\QGISPlugIns\enmap-box\enmapbox_init.py", line 44, in <module>
from enmapbox.qgispluginsupport.qps import registerEditorWidgets
ImportError: cannot import name 'registerEditorWidgets' from 'enmapbox.qgispluginsupport.qps' (unknown location)

Comments (30)

  1. Andreas Janz reporter

    If updating is to complicated, I could also try to delete the repo and get a fresh check out.

  2. Benjamin Jakimow

    Maybe it’s necessary to run git submodule update --init if you have checked it out without the before updating

  3. Andreas Janz reporter

    So you mean you create a new clone according

    I haven’t deleted my repo yet. Shall I do it and get a fresh clone? Or do you want me to further test the Repo-update usecase?

  4. Benjamin Jakimow

    @Andreas Janz how does the folder structure looks like now? Your screenshot says the qgispluginsupport folder already exists.

  5. Benjamin Jakimow

    In your case it could help to delete the qgispluginsupport folder first and run 'git submodule update --init --remote --recursive' afterwards. Don’t forget to backup into another branch first.

  6. Andreas Janz reporter

    Don’t forget to backup into another branch first.

    I don’t understand. What is “backup into another branch”?

  7. Andreas Janz reporter

    After the recent changes in the repo, adding a SSH key Bitbucket seams to be required. I added a SSH key. Now I can check out the EnMAP-Box repo, but still have problems with QPS:

  8. Benjamin Jakimow

    Definitely not a bug, but a matter of your github / ssh configuration.

    Can you clone QPS?

    git clone git@github.com:EnMAP-Box/qgispluginsupport.git
    

    Don’t you use SSH authentification to access Bitbucket and github?

    If not, you might give github your public key (highly recommended) or replace the remote submodule origin by html access (not recommended)
    https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
    https://stackoverflow.com/questions/6031494/git-submodules-and-ssh-access

  9. Andreas Janz reporter

    Don’t you use SSH authentification to access Bitbucket and github?

    Now I do, and it solved the access problems 🙂

    I would recommend that you add this detail to the readme.md

  10. Benjamin Jakimow

    Mmmmh. Anonymous checkout should be possible to. I changed the submodule from

    git@github.com/EnMAP-Box:qgispluginsupport.git

    to

    git://github.com/EnMAP-Box/qgispluginsupport.git

  11. Log in to comment