[artix-general] python upgrade to 3.13

Xavier B. somenxavier at posteo.net
Tue Dec 24 17:39:01 CET 2024


MM.....

OK. I will see that...

I get this error when I run in one of my scripts:

Traceback (most recent call last):
  File "/home/xan/bin/ssg.py", line 308, in <module>
    evaluated_markdown = applies_templating(mypath=args.file, mode=mode)
  File "/home/xan/bin/ssg.py", line 212, in applies_templating
    return Template(f.read(), trim_blocks=True).render(srcfile=mypath, lib=library, mode=mode, **myhash)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
    self.environment.handle_exception()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 3, in top-level template code
  File "/home/xan/bin/ssg.py", line 166, in genfeeds
    atomfeed = fg.atom_str(pretty=True)
  File "/usr/lib/python3.13/site-packages/feedgen/feed.py", line 222, in atom_str
    feed, doc = self._create_atom(extensions=extensions)
                ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/feedgen/feed.py", line 198, in _create_atom
    entry = entry.atom_entry()
  File "/usr/lib/python3.13/site-packages/feedgen/entry.py", line 129, in atom_entry
    name.text = a.get('name')
    ^^^^^^^^^
  File "src/lxml/etree.pyx", line 1065, in lxml.etree._Element.text.__set__
  File "src/lxml/apihelpers.pxi", line 749, in lxml.etree._setNodeText
  File "src/lxml/apihelpers.pxi", line 737, in lxml.etree._createTextNode
  File "src/lxml/apihelpers.pxi", line 1528, in lxml.etree._utf8
TypeError: Argument must be bytes or unicode, got 'list'


Thanks in advance,


On Tue, 24 Dec 2024 16:44:48 +0100
Carlo den Otter <artist at artixlinux.org> ha escrit:

> The current version of the python-feedgen package contains 
> /usr/lib/python3.13/site-packages/ so it's not clear what is wrong with it.
> 
> artist
> 
> On 12/24/24 16:07, Xavier B. wrote:
> > I experiment some issues too with python-feedgen. I hope this package will be upgraded soon.
> >
> > On Mon, 23 Dec 2024 18:44:01 -0600
> > Javier <je-vv at e.email> ha escrit:
> >
> >> Earlier Today during an artix upgrade, python was getting upgraded to 3.13 from 3.12 along with a bunch of packages providing python modules.
> >>
> >> However 1st, at the point I upgraded, I had uninstall samba due to conflicts.  Eventually I had to revert all python related changes, :(.  It seems it was too early and around half the packages still remained at 3.12.  But the worse was AUR packages, it seems 3.13 is pretty aggressive deprecating several things, and Arch decided to go that way.  I couldn't rebuilt the first three packages I tried, and I was not finding a clear path on the browser on how to deal with the failures.  I do have a couple of self maintained packages I didn't even try.
> >>
> >> My guess, at least the Artix repos' packages might get settled for 3.13 at some point, so it might be a matter of time hopefully, as usual with just a couple of packages here and there which will require users to notify them.  But I'm wondering how to deal with packages that will need re-build, it doesn't seem as trivial.
> >>
> >> Any guides available for this particular 3.12 -> 3.13 python upgrade?  As of now I can't share output, since I already reverted, and can't reproduce unless moving to 3.13, but I'll wait at least an extra day to see if the Artix packages settle down to 3.13, and only then I'll go back to packages requiring re-build from AUR or self-maintained.
> >>
> >> Thanks !
> >>
> >> -- 
> >> Javier
> >>
> >> -- 
> >> artix-general mailing list
> >> artix-general at artixlinux.org
> >> https://lists.artixlinux.org/listinfo/artix-general
> 
> -- 
> artix-general mailing list
> artix-general at artixlinux.org
> https://lists.artixlinux.org/listinfo/artix-general


More information about the artix-general mailing list