andrewsmedina has quit [Ping timeout: 268 seconds]
andrewsmedina has joined #pypy
andrewsmedina has quit [Ping timeout: 268 seconds]
andrewsmedina has joined #pypy
andrewsmedina has quit [Ping timeout: 246 seconds]
andrewsmedina has joined #pypy
andrewsmedina has quit [Ping timeout: 252 seconds]
andrewsmedina has joined #pypy
jcea has quit [Ping timeout: 268 seconds]
jcea has joined #pypy
jcea has quit [Ping timeout: 260 seconds]
jcea has joined #pypy
<agronholm>
I'm debugging an issue in some old parts of setuptools where it loads a part of a .pyc file through marshal.load(). It works fine on CPython, but on PyPy, it seems to throw a fit, raising ValueError: bad marshal data (string is not ascii)
<agronholm>
and this only happens on Windows; it runs fine on Linux and macOS
<agronholm>
marshal.load() seems to be RPython code so I can't step into it to figure why this happens
<agronholm>
an easier to repro is to go to the tests/testdata/unicode.dist directory and run "python setup.py bdist_egg"
ronan has quit [Ping timeout: 268 seconds]
ronan has joined #pypy
<agronholm>
looks like there was another problem too, with zip file filename encoding
<agronholm>
pypy couldn't properly decode file names in a zip file, while CPython could
<agronholm>
this gets even stranger now – I tried encoding the file name back to bytes with utf-8, and got the same result as on CPython, but on the same console window, the displayed names look completely off on PyPy
<agronholm>
sys.stdout.encoding returns the same value on both CPython and PyPy
<cfbolz>
agronholm: it's a pyc file that was produced by pypy though, right?
<agronholm>
yes
Julian has joined #pypy
<cfbolz>
the "only on windows" part is very annoying :-(
<cfbolz>
can't easily debug this, I fear
<agronholm>
I tracked the latest problem down to a call to WindowsPath().chmod(...)
<agronholm>
I got a Path object on a file, checked that the file exists with `.is_file()`, and then `.chmod()` raises FileNotFoundError on that
<agronholm>
I'll try to produce a MWE
andrewsmedina has quit [Ping timeout: 252 seconds]
andrewsm1dina has joined #pypy
<cfbolz>
thx
andrewsmedina has joined #pypy
andrewsm1dina has quit [Ping timeout: 252 seconds]