You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
generate.py requires the following changes: (see relevant pyymal issue)
Importing: from yaml import CLoader as Loader
Execution: icons_dict = yaml.load(requests.get(uri).text, Loader=Loader)
This does not fix the problem fully when as when using --revision=6.x (the latest for font-awesome) 2 "character" unicode characters are added to icons.py. For example: '0': '\u30', # 0
Therefore` when building the following occurs:
Traceback (most recent call last):
File "/home/viking/Repos/fontawesome-python/setup.py", line 3, in
import fontawesome
File "/home/viking/Repos/fontawesome-python/fontawesome/init.py", line 1, in
from .icons import *
File "/home/viking/Repos/fontawesome-python/fontawesome/icons.py", line 9
'0': '\u30', # 0
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-3: truncated \uXXXX escape
Removing them from icons.py permits successful build and install.
Also description file needs an update: /usr/lib/python3.10/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead /usr/lib/python3.10/site-packages/setuptools/dist.py:530: UserWarning: The version specified ('6.x-1') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
The text was updated successfully, but these errors were encountered:
generate.py requires the following changes: (see relevant pyymal issue)
Importing:
from yaml import CLoader as Loader
Execution:
icons_dict = yaml.load(requests.get(uri).text, Loader=Loader)
This does not fix the problem fully when as when using
--revision=6.x
(the latest for font-awesome) 2 "character" unicode characters are added to icons.py. For example:'0': '\u30', # 0
Therefore` when building the following occurs:
Traceback (most recent call last):
File "/home/viking/Repos/fontawesome-python/setup.py", line 3, in
import fontawesome
File "/home/viking/Repos/fontawesome-python/fontawesome/init.py", line 1, in
from .icons import *
File "/home/viking/Repos/fontawesome-python/fontawesome/icons.py", line 9
'0': '\u30', # 0
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-3: truncated \uXXXX escape
Removing them from icons.py permits successful build and install.
Also description file needs an update:
/usr/lib/python3.10/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
/usr/lib/python3.10/site-packages/setuptools/dist.py:530: UserWarning: The version specified ('6.x-1') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
The text was updated successfully, but these errors were encountered: