Skip to content
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

cannot install BlenderGIS in ubuntu command line #813

Open
litianqi715 opened this issue Sep 18, 2023 · 0 comments
Open

cannot install BlenderGIS in ubuntu command line #813

litianqi715 opened this issue Sep 18, 2023 · 0 comments

Comments

@litianqi715
Copy link

Blender and OS versions

Ubuntu 22.04.2 LTS

Blender 3.6.2
build date: 2023-08-16
build time: 23:31:37
build commit date: 2023-08-16
build commit time: 16:43
build hash: e53e55951e7a
build platform: Linux
build type: release
build c flags: -Wall -Werror=implicit-function-declaration -Werror=return-type -Werror=vla -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wformat-signedness -Wrestrict -Wno-stringop-overread -Wno-stringop-overflow -Wnonnull -Wabsolute-value -Wuninitialized -Wredundant-decls -Wshadow -Wno-error=unused-but-set-variable -Wimplicit-fallthrough=5 -std=gnu11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -msse2
build c++ flags: -Wuninitialized -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow -Wundef -Wmissing-declarations -Wimplicit-fallthrough=5 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off -msse2
build link flags: -Wl,--version-script='/home/blender/git/blender-v360/blender.git/source/creator/symbols_unix.map'
build system: CMake

Describe the bug

I attempt to install blenderGIS addon to blender without UI, I put src code directory in ~/.config/blender/3.6/scripts/addons, and use the following command

blender -b --addons BlenderGIS

this give out error

Blender 3.6.2 (hash e53e55951e7a built 2023-08-16 23:31:37)
Read prefs: "/home/xxxx/.config/blender/3.6/config/userpref.blend"
DEBUG:BlenderGIS.core.checkdeps:GDAL Python binding available
DEBUG:BlenderGIS.core.checkdeps:PyProj available
DEBUG:BlenderGIS.core.checkdeps:Pillow available
DEBUG:BlenderGIS.core.checkdeps:ImageIO Freeimage plugin available
Exception in module register(): /home/xxxx/.config/blender/3.6/scripts/addons/BlenderGIS/init.py
Traceback (most recent call last):
File "/snap/blender/3915/3.6/scripts/modules/addon_utils.py", line 369, in enable
mod.register()
File "/home/xxxx/.config/blender/3.6/scripts/addons/BlenderGIS/init.py", line 296, in register
prefs.register()
File "/home/xxxx/.config/blender/3.6/scripts/addons/BlenderGIS/prefs.py", line 854, in register
prefs = bpy.context.preferences.addons[PKG].preferences
KeyError: 'bpy_prop_collection[key]: key "BlenderGIS" not found'

Blender quit

How to Reproduce

snap install blender --classic
cd ~/.config/blender/3.6/scripts/addons
git clone https://github.com/domlysz/BlenderGIS.git
blender -b --addons BlenderGIS
cd ~ & blender -b --addons BlenderGIS

I also download precompiled binary of blender 3.6.1 at ~/code/env/blender-3.6.1-linux-x64, and put blenderGIS at ~/code/env/blender-3.6.1-linux-x64/3.6/scripts/addons, the error remains.

Error message

Blender 3.6.2 (hash e53e55951e7a built 2023-08-16 23:31:37)
Read prefs: "/home/xxxx/.config/blender/3.6/config/userpref.blend"
DEBUG:BlenderGIS.core.checkdeps:GDAL Python binding available
DEBUG:BlenderGIS.core.checkdeps:PyProj available
DEBUG:BlenderGIS.core.checkdeps:Pillow available
DEBUG:BlenderGIS.core.checkdeps:ImageIO Freeimage plugin available
Exception in module register(): /home/xxxx/.config/blender/3.6/scripts/addons/BlenderGIS/init.py
Traceback (most recent call last):
File "/snap/blender/3915/3.6/scripts/modules/addon_utils.py", line 369, in enable
mod.register()
File "/home/xxxx/.config/blender/3.6/scripts/addons/BlenderGIS/init.py", line 296, in register
prefs.register()
File "/home/xxxx/.config/blender/3.6/scripts/addons/BlenderGIS/prefs.py", line 854, in register
prefs = bpy.context.preferences.addons[PKG].preferences
KeyError: 'bpy_prop_collection[key]: key "BlenderGIS" not found'

Blender quit

Please give me some solution or advice, thanks!

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

No branches or pull requests

1 participant