:gobj(error): Texture::read() - couldn't read: E:\data\gui\colour_palette.png

I am trying to run a simulator on Windows10 pycharm2021.
when I try to execute the main.py file it gives me following error log

“E:\A\venv\Scripts\python.exe” “E:/A/src/main.py” -v
args:Namespace(algorithms=None, analyzer=False, debug=‘LOW’, deterministic=False, dims=3, fill_rate=None, generator=False, generatortype=None, include_all_builtin_maps=False, include_builtin_algorithms=False, include_default_builtin_maps=False, list_algorithms=False, list_maps=False, maps=None, num_maps=None, numpy_random_seed=0, room_size=None, std_random_seed=0, torch_random_seed=0, trainer=False, visualiser=True, visualiser_flags=None)
[2021-12-17 16:21:46] - ‘.pathbench.json’ not found, falling back to default state data
[2021-12-17 16:21:46] - Active torch device: cpu
Known pipe types:
(all display modules loaded.)
:display:windisplay(warning): SetForegroundWindow() failed!
[2021-12-17 16:21:52] - Started: run
:express(warning): Filename uses Windows-style path: E:\A\data\gui\colour_palette.png
:express(warning): expected Unix-style path: /e/A/data/gui/colour_palette.png
:gobj(error): Texture::read() - couldn’t read: E:\A\data\gui\colour_palette.png
:express(warning): Filename uses Windows-style path: E:\A\data\gui\colour_palette.png
:express(warning): expected Unix-style path: /e/A/data/gui/colour_palette.png
:gobj(error): Unable to find texture “E:\A\data\gui\colour_palette.png” on model-path /e/A/src;/e/A /venv/Lib/site-packages/panda3d/etc/…;/e/A/venv/Lib/site-packages/panda3d/etc/…/models
Traceback (most recent call last):
File “E:/A/src/main.py”, line 208, in
ret = main()
File “E:/A/src/main.py”, line 204, in main
return configure_and_run(args, configurers)
File “E:/A/src/main.py”, line 160, in configure_and_run
File “E:\A\src\simulator\services\debug.py”, line 72, in wrapper
res = func(*args, **kwargs)
File “E:/A/src/main.py”, line 35, in run
File “E:\A\src\simulator\simulator.py”, line 57, in start
return self.__start_with_graphics()
File “E:\A\src\simulator\simulator.py”, line 80, in __start_with_graphics
self.__gui_view = GuiView(self.__services, None, self.__main_view)
File “E:\A\src\simulator\views\gui\gui_view.py”, line 20, in init
self.__vs = ViewEditor(self._services, self.__mouse1_press_callback)
File “E:\A\src\simulator\views\gui\view_editor.py”, line 628, in init
self.__colour_picker = AdvancedColourPicker(self.__base, self.__window.frame, self.__colour_picker_callback, mouse1_press_callbacks)
File “E:\A\src\simulator\views\gui\view_editor.py”, line 362, in init
self.__colour_picker = ColourPicker(self.__base,
File “E:\A\src\simulator\views\gui\view_editor.py”, line 46, in init
self.__palette_frame = DirectFrame(image=palette_filename, **kwargs)
File “E:\A\venv\lib\site-packages\direct\gui\DirectFrame.py”, line 62, in init
File “E:\A\venv\lib\site-packages\direct\gui\DirectGuiBase.py”, line 253, in initialiseoptions
File “E:\A\venv\lib\site-packages\direct\gui\DirectFrame.py”, line 210, in setImage
File “E:\A\venv\lib\site-packages\direct\gui\DirectGuiBase.py”, line 572, in createcomponent
widget = widgetClass(*widgetArgs, **kw)
File “E:\A\venv\lib\site-packages\direct\gui\OnscreenImage.py”, line 60, in init
self.setImage(image, parent = parent, sort = sort)
File “E:\A\venv\lib\site-packages\direct\gui\OnscreenImage.py”, line 117, in setImage
tex = loader.loadTexture(image)
File “E:\A\venv\lib\site-packages\direct\showbase\Loader.py”, line 756, in loadTexture
raise IOError(message)
OSError: Could not load texture: E:\A\data\gui\colour_palette.png

Process finished with exit code 1

I assume this error is related to Panda3D.Can anyone hep me regarding that

Well, the first thing that comes to mind to check is this: Is that path–E:\A\data\gui\colour_palette.png–correct? Is that the location of “colour_palette.png”?

I do note near the top of the output that there’s a warning that you’re using a Windows-style file-path rather than a Unix-style one. As it’s only a warning I doubt that it’s the issue, but it may be worth trying a Unix-style path on the off-chance that it helps.

Yes, that is probably the issue, you cannot use a Windows-style path. See this page for more information:


1 Like