Map styling on Windows 11 #4299
Replies: 3 comments 3 replies
-
https://stackoverflow.com/a/49562606/13351126 this looks like the issue, try checking out organicmaps/kothic#6 for the kothic submodule, and report back :) |
Beta Was this translation helpful? Give feedback.
-
Output from [System.Text.Encoding]::Default in PS IsSingleByte : True |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I want to change some of the road colors (not yet edited any files) and I have done:-
PS C:\src\mobile\organicmaps\tools\unix> bash ./generate_drules.sh
rm: cannot remove './../../data/classificator.txt': No such file or directory
rm: cannot remove './../../data/visibility.txt': No such file or directory
rm: cannot remove './../../data/colors.txt': No such file or directory
rm: cannot remove './../../data/patterns.txt': No such file or directory
Building drawing rules for style clear/clear
rm: cannot remove './../../data/drules_proto_clear.bin': No such file or directory
rm: cannot remove './../../data/drules_proto_clear.txt': No such file or directory
Traceback (most recent call last):
File "C:\src\mobile\organicmaps\tools\kothic\src\mapcss_init_.py", line 325, in parse
import_text = open(import_filename, "r").read()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 14995: character maps to < undefined >
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\src\mobile\organicmaps\tools\kothic\src\libkomwm.py", line 626, in
main()
File "C:\src\mobile\organicmaps\tools\kothic\src\libkomwm.py", line 616, in main
komap_mapswithme(options)
File "C:\src\mobile\organicmaps\tools\kothic\src\libkomwm.py", line 228, in komap_mapswithme
style.parse(filename=options.filename, static_tags=mapcss_static_tags,
File "C:\src\mobile\organicmaps\tools\kothic\src\mapcss_init_.py", line 364, in parse
raise Exception(msg)
Exception: 'charmap' codec can't decode byte 0x81 in position 14995: character maps to < undefined >
File: ./../../data/styles/clear/style-clear/style.mapcss
Line: 7
Same results on Win10 and 11. Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions