c.im is one of the many independent Mastodon servers you can use to participate in the fediverse.
C.IM is a general, mainly English-speaking Mastodon instance.

Server stats:

2.9K
active users

matdevdug

So I'm trying to build python from source because the target box doesn't have the latest available as a package. This is fine, like it's a known thing, but I always try to use the latest version of Python for new projects because it increases the amount of time between writing it and needing to do the upgrade process. Plus newer Pythons come with nice features.

Then I get this baffling error which is: /home/matdevdug/Python-3.13.2/Lib/test/test_fstring.py:1655: SyntaxWarning: invalid escape sequence '\N'
self.assertEqual(f'{b"\N{OX}"=}', 'b"\\N{OX}"=b\'\\\\N{OX}\'')

I check test_fstring and yeah seems to be a legit warning. So I google it and find this: github.com/python/cpython/issu which is basically "yeah we should suppress SyntaxWarning in test_fstring".

I'm a little surprised that the current latest release of a non .0 version of Python doesn't exit clean with "sudo make altinstall". This is the first time in maybe a dozen times of doing this that I've encountered a problem.

Does anyone know the "right way" to fix this? I can obviously just make the test pass, but I don't know if there's a better way to do it.

Bug report Bug description: This is a failure during the set of tests performed during build of 3.13.2: default: 0:00:22 load avg: 1.70 [18/44] test_fstring default: /root/Python-3.13.2/Lib/test/te...
GitHubtest_fstring.py:1655: SyntaxWarning: invalid escape sequence · Issue #129693 · python/cpythonBy utkonos

@matdevdug can you install a precompiled python with uv? It’s pretty wonderful.