Hi all,
I am trying to build a custom Conda installer for Python 3.6.0b4.
I could successfully build an run Python. However, when I run
the generated Conda installer, it dies with a "Bus error".
It happens when Conda's meta-installer script tries to replace
the build-prefix (e.g., /home/stefan/conda/asdf) with the prefix
of the actual installation (e.g., /tmp/py36).
Therefore, it opens all files in binary mode, reads their contents,
replaces stuff, and writes the new contents back to the original file.
This works fine with text files but it dies when it hits the first
binary file.
Here is a minimal example that reproduces the error:
$ /tmp/py36/bin/python
Python 3.6.0b4 (default, Nov 22 2016, 10:32:29)
[GCC 6.2.1 20160916 (Red Hat 6.2.1-2)] on linux
>>>
>>> path = '/tmp/py36/lib/libpython3.6m.so.1.0'
>>> f = open(path, 'wb')
BusError
Can anyone reproduce this? Is this a compilation error or an issue
with Python itself?
Cheers,
Stefan
PS: If need, I can upload the Conda installer somewhere. It's ~40MiB.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com