error on start
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)
-
-
reporter Yes:
-
I just did a clean checkout as described in https://bitbucket.org/hu-geomatics/enmap-box/src/develop/README.md but could not find any error. How does your repository folder structure look like?
-
reporter
-
reporter If updating is to complicated, I could also try to delete the repo and get a fresh check out.
-
Maybe it’s necessary to run
git submodule update --init
if you have checked it out without the before updating -
reporter That gives me…
-
- changed status to resolved
enhanced README.md fixes
#983→ <<cset 10e483b8f806>>
-
The --init was missing. It’s now described in the README.md
-
reporter - changed status to open
Why is this resolved now? It's still not working :-)
-
reporter
-
So you mean you create a new clone according to the README.md and it still does not work?
-
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?
-
@Andreas Janz how does the folder structure looks like now? Your screenshot says the qgispluginsupport folder already exists.
-
reporter
-
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. -
reporter Don’t forget to backup into another branch first.
I don’t understand. What is “backup into another branch”?
-
Assuming your current branch is “develop”:
There might be changes in the qgispluginsupport folder which you do not want to loose. So,
1. create a new branch to save it’s current content: https://stackoverflow.com/questions/58032024/create-new-branch
2. checkout the develop branch again https://git-scm.com/docs/git-checkout
3. delete the folder and rungit submodule update --init --remote --recursive
-
@Andreas Janz please close this issue if you have been able to solve your git problems.
-
-
assigned issue to
-
assigned issue to
-
reporter - removed responsible
-
reporter After deleting the folder and run the command again, I get:
-
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:
-
reporter -
assigned issue to
-
assigned issue to
-
reporter For now I continue working here: https://bitbucket.org/hu-geomatics/enmap-box/branch/dev_before_QPS-Submodules
-
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 -
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
-
reporter - changed status to resolved
-
reporter Thanks Benjamin
-
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
- Log in to comment
Have you updated the repositories submodules? (it's described in the README.md )