end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.71k stars 255 forks source link

[Issue] Automatic install fails due to failure in check() of python-cssutils #342

Open wired-tomato opened 5 months ago

wired-tomato commented 5 months ago
Click to expand ```plain ==> Starting check()... =================================================== test session starts ==================================================== platform linux -- Python 3.11.8, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/wiredtomato/.cache/yay/python-cssutils/src/cssutils-2.9.0 configfile: pytest.ini plugins: jaraco.test-5.3.0 collected 444 items cssutils/tests/test_codec.py ...... [ 1%] cssutils/tests/test_csscharsetrule.py .......... [ 3%] cssutils/tests/test_csscomment.py ....... [ 5%] cssutils/tests/test_cssfontfacerule.py ........... [ 7%] cssutils/tests/test_cssimportrule.py .............. [ 10%] cssutils/tests/test_cssmediarule.py ................. [ 14%] cssutils/tests/test_cssnamespacerule.py .......... [ 16%] cssutils/tests/test_csspagerule.py .............. [ 20%] cssutils/tests/test_cssproperties.py ... [ 20%] cssutils/tests/test_cssrule.py .... [ 21%] cssutils/tests/test_cssrulelist.py .. [ 22%] cssutils/tests/test_cssstyledeclaration.py ........................ [ 27%] cssutils/tests/test_cssstylerule.py ............ [ 30%] cssutils/tests/test_cssstylesheet.py ............................ [ 36%] cssutils/tests/test_cssunknownrule.py ....... [ 38%] cssutils/tests/test_cssutils.py ........ [ 39%] cssutils/tests/test_cssutilsimport.py . [ 40%] cssutils/tests/test_cssvalue.py xxxxXxxxxxxxxxxxxxxxx [ 44%] cssutils/tests/test_cssvariablesdeclaration.py ......... [ 46%] cssutils/tests/test_cssvariablesrule.py .......... [ 49%] cssutils/tests/test_domimplementation.py FFFF [ 50%] cssutils/tests/test_encutils.py ....... [ 51%] cssutils/tests/test_errorhandler.py .... [ 52%] cssutils/tests/test_helper.py ..... [ 53%] cssutils/tests/test_marginrule.py ........ [ 55%] cssutils/tests/test_medialist.py ......... [ 57%] cssutils/tests/test_mediaquery.py .... [ 58%] cssutils/tests/test_parse.py .............. [ 61%] cssutils/tests/test_prodparser.py ................. [ 65%] cssutils/tests/test_profiles.py ........xxxxxx.............xxxxx [ 72%] cssutils/tests/test_properties.py .. [ 72%] cssutils/tests/test_property.py ........ [ 74%] cssutils/tests/test_scripts_csscombine.py .. [ 75%] cssutils/tests/test_selector.py ........ [ 77%] cssutils/tests/test_selectorlist.py ..... [ 78%] cssutils/tests/test_serialize.py ............................. [ 84%] cssutils/tests/test_settings.py . [ 84%] cssutils/tests/test_stylesheet.py . [ 85%] cssutils/tests/test_tokenize2.py ............. [ 88%] cssutils/tests/test_util.py ..................... [ 92%] cssutils/tests/test_value.py .F...................xxxxxxxxxx [ 99%] cssutils/tests/test_x.py x [100%] ========================================================= FAILURES ========================================================= ______________________________________ TestDOMImplementation.test_createCSSStyleSheet ______________________________________ self = def test_createCSSStyleSheet(self): "DOMImplementationCSS.createCSSStyleSheet()" title, media = 'Test Title', cssutils.stylesheets.MediaList('all') with warnings.catch_warnings(): warnings.simplefilter('ignore') > sheet = self.domimpl.createCSSStyleSheet(title, media) E AttributeError: 'TestDOMImplementation' object has no attribute 'domimpl' /home/wiredtomato/.cache/yay/python-cssutils/src/cssutils-2.9.0/cssutils/tests/test_domimplementation.py:19: AttributeError ________________________________________ TestDOMImplementation.test_createDocument _________________________________________ self = def test_createDocument(self): "DOMImplementationCSS.createDocument()" > doc = self.domimpl.createDocument(None, None, None) E AttributeError: 'TestDOMImplementation' object has no attribute 'domimpl' /home/wiredtomato/.cache/yay/python-cssutils/src/cssutils-2.9.0/cssutils/tests/test_domimplementation.py:26: AttributeError ______________________________________ TestDOMImplementation.test_createDocumentType _______________________________________ self = def test_createDocumentType(self): "DOMImplementationCSS.createDocumentType()" > doctype = self.domimpl.createDocumentType('foo', 'bar', 'raboof') E AttributeError: 'TestDOMImplementation' object has no attribute 'domimpl' /home/wiredtomato/.cache/yay/python-cssutils/src/cssutils-2.9.0/cssutils/tests/test_domimplementation.py:31: AttributeError __________________________________________ TestDOMImplementation.test_hasFeature ___________________________________________ self = def test_hasFeature(self): "DOMImplementationCSS.hasFeature()" tests = [ ('css', '1.0'), ('css', '2.0'), ('stylesheets', '1.0'), ('stylesheets', '2.0'), ] for name, version in tests: > assert self.domimpl.hasFeature(name, version) E AttributeError: 'TestDOMImplementation' object has no attribute 'domimpl' /home/wiredtomato/.cache/yay/python-cssutils/src/cssutils-2.9.0/cssutils/tests/test_domimplementation.py:43: AttributeError ______________________________________________ TestPropertyValue.test_cssText ______________________________________________ self = def test_cssText(self): "PropertyValue.cssText" tests = { '0': (None, 1, None), '0 0': (None, 2, None), '0, 0': (None, 2, None), '0,0': ('0, 0', 2, None), '0 , 0': ('0, 0', 2, None), '0/0': (None, 2, None), '/**/ 0 /**/': (None, 1, '0'), '0 /**/ 0 /**/ 0': (None, 3, '0 0 0'), '0, /**/ 0, /**/ 0': (None, 3, '0, 0, 0'), '0//**/ 0//**/ 0': (None, 3, '0/0/0'), '/**/ red': (None, 1, 'red'), '/**/red': ('/**/ red', 1, 'red'), 'red /**/': (None, 1, 'red'), 'red/**/': ('red /**/', 1, 'red'), 'a()1,-1,+1,1%,-1%,1px,-1px,"a",a,url(a),#aabb44': ( 'a() 1, -1, +1, 1%, -1%, 1px, -1px, "a", a, url(a), #ab4', 12, 'a() 1, -1, +1, 1%, -1%, 1px, -1px, "a", a, url(a), #ab4', ), # calc values 'calc(1)': (None, 1, 'calc(1)'), 'calc( 1)': ('calc(1)', 1, 'calc(1)'), 'calc(1 )': ('calc(1)', 1, 'calc(1)'), 'calc(1px)': (None, 1, 'calc(1px)'), 'calc(1p-x-)': (None, 1, 'calc(1p-x-)'), 'calc(1%)': (None, 1, 'calc(1%)'), 'calc(-1)': (None, 1, 'calc(-1)'), 'calc(+1)': (None, 1, 'calc(+1)'), 'calc(1 + 1px)': ('calc(1 + 1px)', 1, 'calc(1 + 1px)'), 'calc(1 - 1px)': (None, 1, 'calc(1 - 1px)'), 'calc(1*1px)': ('calc(1 * 1px)', 1, 'calc(1 * 1px)'), 'calc(1 / 1px)': ('calc(1 / 1px)', 1, 'calc(1 / 1px)'), 'calc( 1*1px)': ('calc(1 * 1px)', 1, 'calc(1 * 1px)'), 'calc( 1 / 1px)': ('calc(1 / 1px)', 1, 'calc(1 / 1px)'), 'calc(1*1px )': ('calc(1 * 1px)', 1, 'calc(1 * 1px)'), 'calc(1 / 1px )': ('calc(1 / 1px)', 1, 'calc(1 / 1px)'), 'calc( 1*1px )': ('calc(1 * 1px)', 1, 'calc(1 * 1px)'), 'calc( 1 / 1px )': ('calc(1 / 1px)', 1, 'calc(1 / 1px)'), 'calc(calc(1px + 5px) * 4)': ( 'calc(calc(1px + 5px) * 4)', 1, 'calc(calc(1px + 5px) * 4)', ), 'calc( calc(1px + 5px)*4 )': ( 'calc(calc(1px + 5px) * 4)', 1, 'calc(calc(1px + 5px) * 4)', ), 'calc(var(X))': (None, 1, None), 'calc(2 * var(X))': (None, 1, None), 'calc(2px + var(X))': (None, 1, None), # issue #24 'rgb(0, 10, 255)': (None, 1, 'rgb(0, 10, 255)'), 'hsl(10, 10%, 25%)': (None, 1, 'hsl(10, 10%, 25%)'), 'rgba(0, 10, 255, 0.5)': (None, 1, 'rgba(0, 10, 255, 0.5)'), 'hsla(10, 10%, 25%, 0.5)': (None, 1, 'hsla(10, 10%, 25%, 0.5)'), # issue #27 'matrix(0.000092, 0.2500010, -0.250000, 0.000092, 0, 0)': ( 'matrix(0.000092, 0.250001, -0.25, 0.000092, 0, 0)', 1, 'matrix(0.000092, 0.250001, -0.25, 0.000092, 0, 0)', ), } for cssText, (c, len, v) in list(tests.items()): if c is None: c = cssText if v is None: v = c pv = cssutils.css.PropertyValue(cssText) assert c == pv.cssText assert len == pv.length assert v == pv.value tests = { '0 0px -0px +0px': ('0 0 0 0', 4), '1 2 3 4': (None, 4), '-1 -2 -3 -4': (None, 4), '-1 2': (None, 2), '-1px red "x"': (None, 3), 'a, b c': (None, 3), '1px1 2% 3': ('1px1 2% 3', 3), 'f(+1pX, -2, 5%) 1': ('f(+1px, -2, 5%) 1', 2), '0 f()0': ('0 f() 0', 3), 'f()0': ('f() 0', 2), 'f()1%': ('f() 1%', 2), 'f()1px': ('f() 1px', 2), 'f()"str"': ('f() "str"', 2), 'f()ident': ('f() ident', 2), 'f()#123': ('f() #123', 2), 'f()url()': ('f() url()', 2), 'f()f()': ('f() f()', 2), 'url(x.gif)0 0': ('url(x.gif) 0 0', 3), 'url(x.gif)no-repeat': ('url(x.gif) no-repeat', 2), } for cssText, (c, len) in list(tests.items()): if c is None: c = cssText pv = cssutils.css.PropertyValue(cssText) assert c == pv.cssText assert len == pv.length tests = { # hash and rgb/a '#112234': '#112234', '#112233': '#123', 'rgb(1,2,3)': 'rgb(1, 2, 3)', 'rgb( 1 , 2 , 3 )': 'rgb(1, 2, 3)', 'rgba(1,2,3,4)': 'rgba(1, 2, 3, 4)', 'rgba( 1 , 2 , 3 , 4 )': 'rgba(1, 2, 3, 4)', 'rgb(-1,+2,0)': 'rgb(-1, +2, 0)', 'rgba(-1,+2,0, 0)': 'rgba(-1, +2, 0, 0)', # FUNCTION 'f(1,2)': 'f(1, 2)', 'f( 1 , 2 )': 'f(1, 2)', 'f(-1,+2)': 'f(-1, +2)', 'f( -1 , +2 )': 'f(-1, +2)', 'fun( -1 , +2 )': 'fun(-1, +2)', 'local( x )': 'local(x)', 'test(1px, #111, y, 1, 1%, "1", y(), var(x))': 'test(1px, #111, y, 1, 1%, "1", y(), var(x))', 'test(-1px, #111, y, -1, -1%, "1", -y())': 'test(-1px, #111, y, -1, -1%, "1", -y())', 'url(y) format( "x" , "y" )': 'url(y) format("x", "y")', 'f(1 2,3 4)': 'f(1 2, 3 4)', # IE expression r'Expression()': 'Expression()', r'expression(-1 < +2)': 'expression(-1<+2)', r'expression(document.width == "1")': 'expression(document.width=="1")', 'alpha(opacity=80)': 'alpha(opacity=80)', 'alpha( opacity = 80 , x=2 )': 'alpha(opacity=80, x=2)', 'expression(eval(document.documentElement.scrollTop))': 'expression(eval(document.documentElement.scrollTop))', # TODO # u'expression((function(ele){ele.style.behavior="none";})(this))': # u'expression((function(ele){ele.style.behavior="none";})(this))', # unicode-range 'u+f': 'u+f', 'U+ABCdef': 'u+abcdef', # url 'url(a)': 'url(a)', 'uRl(a)': 'url(a)', 'u\\rl(a)': 'url(a)', 'url("a")': 'url(a)', 'url( "a" )': 'url(a)', 'url(";")': 'url(";")', 'url(",")': 'url(",")', 'url(")")': 'url(")")', '''url("'")''': '''url("'")''', '''url('"')''': '''url("\\"")''', # operator '1': '1', '1 2': '1 2', '1 2': '1 2', '1,2': '1, 2', '1, 2': '1, 2', '1 ,2': '1, 2', '1 , 2': '1, 2', '1/2': '1/2', '1/ 2': '1/2', '1 /2': '1/2', '1 / 2': '1/2', # comment '1/**/2': '1 /**/ 2', '1 /**/2': '1 /**/ 2', '1/**/ 2': '1 /**/ 2', '1 /**/ 2': '1 /**/ 2', '1 /*a*/ /*b*/ 2': '1 /*a*/ /*b*/ 2', # , before '1,/**/2': '1, /**/ 2', '1 ,/**/2': '1, /**/ 2', '1, /**/2': '1, /**/ 2', '1 , /**/2': '1, /**/ 2', # , after '1/**/,2': '1 /**/, 2', '1/**/ ,2': '1 /**/, 2', '1/**/, 2': '1 /**/, 2', '1/**/ , 2': '1 /**/, 2', # all '1/*a*/ ,/*b*/ 2': '1 /*a*/, /*b*/ 2', '1 /*a*/, /*b*/2': '1 /*a*/, /*b*/ 2', '1 /*a*/ , /*b*/ 2': '1 /*a*/, /*b*/ 2', # list 'a b1,b2 b2,b3,b4': 'a b1, b2 b2, b3, b4', 'a b1 , b2 b2 , b3 , b4': 'a b1, b2 b2, b3, b4', 'u+1 , u+2-5': 'u+1, u+2-5', 'local( x ), url(y) format( "x" , "y" )': 'local(x), url(y) format("x", "y")', # FUNCTION 'attr( href )': 'attr(href)', # PrinceXML extende FUNC syntax with nested FUNC 'target-counter(attr(href),page)': 'target-counter(attr(href), page)', } > self.do_equal_r(tests) /home/wiredtomato/.cache/yay/python-cssutils/src/cssutils-2.9.0/cssutils/tests/test_value.py:230: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tests = {'#112233': '#123', '#112234': '#112234', '1': '1', '1 2': '1 2', ...}, att = 'cssText' def do_equal_r(self, tests, att='cssText'): # set attribute att of self.r and assert Equal for test, expected in tests.items(): > self.r.__setattr__(att, test) E AttributeError: 'TestPropertyValue' object has no attribute 'r' /home/wiredtomato/.cache/yay/python-cssutils/src/cssutils-2.9.0/cssutils/tests/basetest.py:41: AttributeError ===================================================== warnings summary ===================================================== cssutils/tests/test_encutils.py::TestAutoEncoding::test_getEncodingInfo cssutils/tests/test_encutils.py::TestAutoEncoding::test_getEncodingInfo /home/wiredtomato/.cache/yay/python-cssutils/src/cssutils-2.9.0/encutils/__init__.py:652: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead log.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================================================= short test summary info ================================================== FAILED cssutils/tests/test_domimplementation.py::TestDOMImplementation::test_createCSSStyleSheet - AttributeError: 'TestDOMImplementation' object has no attribute 'domimpl' FAILED cssutils/tests/test_domimplementation.py::TestDOMImplementation::test_createDocument - AttributeError: 'TestDOMImplementation' object has no attribute 'domimpl' FAILED cssutils/tests/test_domimplementation.py::TestDOMImplementation::test_createDocumentType - AttributeError: 'TestDOMImplementation' object has no attribute 'domimpl' FAILED cssutils/tests/test_domimplementation.py::TestDOMImplementation::test_hasFeature - AttributeError: 'TestDOMImplementation' object has no attribute 'domimpl' FAILED cssutils/tests/test_value.py::TestPropertyValue::test_cssText - AttributeError: 'TestPropertyValue' object has no attribute 'r' ============================= 5 failed, 396 passed, 42 xfailed, 1 xpassed, 2 warnings in 2.12s ============================= ==> ERROR: A failure occurred in check(). Aborting... -> Failed to install layer, rolling up to next layer.error:error making: python-cssutils - exit status 4 ```
flowi42 commented 5 months ago

Hello,

I can confirm the issue, happens when trying to make the python-cssutils package on EndeavourOS. Manually trying to install the package fails the same way, with either yay or paru, so it seems it is an issue with the upstream repo. According to the AUR-entry some time ago it was deemed inactive and replaced with "python-css-parser", thus not being in the official repo anymore, although the active state seems to have changed again since then. Gradience according to its AUR page should not need the package anymore, but it somehow reverted to it, it seems, sincem manually installing gradience fails for the same reason.

Ramy-Ashraf commented 5 months ago

I have the same issue.

aleandro6804 commented 5 months ago

I had the same issue, i solved manually installing an older version of python-cssutis.

From the AUR (https://aur.archlinux.org/packages/python-cssutils) i went on "View changes" > "bump to 2.7.1" > download.

Then proceed with the manual installation and should be fine.

(I know it's not the best way to solve a problem but it's enough to make gradience-git work)

Ramy-Ashraf commented 5 months ago

I had the same issue, i solved manually installing an older version of python-cssutis.

From the AUR (https://aur.archlinux.org/packages/python-cssutils) i went on "View changes" > "bump to 2.7.1" > download.

Then proceed with the manual installation and should be fine.

(I know it's not the best way to solve a problem but it's enough to make gradience-git work)

Sorry, but I am pretty new in this. After I downloaded the package, I couldn't find any configure file to install the package. How can I install it?

ezerinz commented 5 months ago

I had the same issue, i solved manually installing an older version of python-cssutis. From the AUR (https://aur.archlinux.org/packages/python-cssutils) i went on "View changes" > "bump to 2.7.1" > download. Then proceed with the manual installation and should be fine. (I know it's not the best way to solve a problem but it's enough to make gradience-git work)

Sorry, but I am pretty new in this. After I downloaded the package, I couldn't find any configure file to install the package. How can I install it?

cd to extracted files and then

makepkg -sic
Ramy-Ashraf commented 5 months ago

I had the same issue, i solved manually installing an older version of python-cssutis. From the AUR (https://aur.archlinux.org/packages/python-cssutils) i went on "View changes" > "bump to 2.7.1" > download. Then proceed with the manual installation and should be fine. (I know it's not the best way to solve a problem but it's enough to make gradience-git work)

Sorry, but I am pretty new in this. After I downloaded the package, I couldn't find any configure file to install the package. How can I install it?

cd to extracted files and then

makepkg -sic

thanks alot.

NotAF0e commented 5 months ago

Im not sure if I should open another issue about this but I have recently tried another rice but I wanted to come back to this one. I get the python-cssutils problem which I can fix by manually installing it with makepkg -sic. But now I also get a fail on gradience-git and hyprpicker-git. I will post more details I just need to set up the VM again that I use to test these rices (Im choosing one for when I will use a laptop in UNI)

NotAF0e commented 5 months ago

I have created an issue for my problem #375

Andorreta commented 4 months ago

Maybe python-cssutils should be replaced with python-css-parser. I could install gradience making this change :smile:

Ramy-Ashraf commented 4 months ago

Does the automated installation script still don't work?

Maybe python-cssutils should be replaced with python-css-parser. I could install gradience making this change 😄

Andorreta commented 4 months ago

Does the automated installation script still don't work?

Maybe python-cssutils should be replaced with python-css-parser. I could install gradience making this change 😄

In my case, using pure arch yes. It fails, because it can't install python-libsass (maybe because i use CLANG and LTO) and python-cssutils. But then i removed python-libsass and changed python-cssutils for python-css-parser in the PKGBUILD of gradience and i could install gradience