notofonts / noto-build

Scripts, data and libraries to work with Noto fonts and sources
Apache License 2.0
5 stars 2 forks source link

TypeError: join() argument must be str or bytes, not 'int' #18

Closed marekjez86 closed 3 years ago

marekjez86 commented 3 years ago

the command used is

 python3 ./notobuilderCLI.py --name "NotoSans-Javanese" --output ttf --scripts Latin Cyrillic Greek  Javanese --contrast Serif --weight Thin ExtraLight Light Regular ExtraBold Bold SemiBold Medium Black --subset Full 

note that there's no Serif Javanese

the result

====== SERIF Javanese INFO: NotoSerif download begin 1 exists Traceback (most recent call last): File "./notobuilderCLI.py", line 1178, in sys.exit(main()) File "./notobuilderCLI.py", line 1173, in main subset, File "./notobuilderCLI.py", line 333, in init self.buildRepoName() File "./notobuilderCLI.py", line 470, in buildRepoName dl.dwnldFonts() File "./notobuilderCLI.py", line 122, in dwnldFonts if os.path.exists(os.path.join(self.notoFontsFolder, i)): File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/posixpath.py", line 94, in join genericpath._check_arg_types('join', a, *p) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/genericpath.py", line 149, in _check_arg_types (funcname, s.class.name)) from None TypeError: join() argument must be str or bytes, not 'int'

jbmorizot commented 3 years ago

I fixed it. Also you can use --preset now instead of --subset, the change is pushed, I'm updating the readme now.