I compiled Python3.13.0 in Linux and when I start python3 I get this warning:
$ python3
Python 3.13.0 (main, Oct 8 2024, 08:20:05) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
warning: can’t use pyrepl: No module named ‘msvcrt’
Perhaps take a screenshot to capture the error clearly
There is a warning, not an error and I copied all lines.
Warning refers to the Microsoft library (msvcrt) in Linux
I haven’t been able to reproduce this when compiling 3.13 on Fedora 39.
❯ ./python
Python 3.13.0 (tags/v3.13.0:60403a5409f, Oct 8 2024, 23:32:11) [GCC 13.3.1 20240913 (Red Hat 13.3.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Here’s what I did to compile
git checkout v3.13.0
./configure
make -j 12
You might need to provide a bit more info about how you configured / compiled your python.
configure --enable-shared
–prefix=<…>
–with-openssl=<…>/openssl
CPPFLAGS=“-fno-semantic-interposition -I<…>/openssl/include -I<…>/zlib/include -I<…>/ffi-3.2.1/lib/libffi-3.2.1/include”
LDFLAGS=“-L<…>/openssl/lib -L<…>/zlib/lib -L<…>/ffi/lib64”
I dounloaded XZ-compressed source from Python Source Releases | Python.org
A copy-and-paste of the text is far more useful than a screen shot of that text.
Is there builds of newer python in the epel repo for your rhel?
I see Fedora and eln builds going through for 3.13 at the moment.
See build status here python3.13 | Package Info | koji
I found the reason: Python3.13 required in LD_LIBRARY_PATH the same libffi library, as it was compiled with.