cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | so many corner cases, so little time
nanonyme has quit [Ping timeout: 250 seconds]
tazle has quit [Ping timeout: 252 seconds]
Cheery has quit [Ping timeout: 256 seconds]
nanonyme has joined #pypy
[Arfrever] has quit [Ping timeout: 256 seconds]
tazle has joined #pypy
Cheery has joined #pypy
[Arfrever] has joined #pypy
slav0nic has quit [Ping timeout: 245 seconds]
jacob22 has quit [Ping timeout: 250 seconds]
Atque has quit [*.net *.split]
tumbleweed has quit [*.net *.split]
the_drow has quit [*.net *.split]
agronholm has quit [*.net *.split]
danchr_ has quit [*.net *.split]
Techcable has quit [*.net *.split]
arigato has quit [*.net *.split]
luckydonald has quit [*.net *.split]
Hodgestar has quit [*.net *.split]
iwkse has quit [*.net *.split]
energizer has quit [*.net *.split]
ronan has quit [*.net *.split]
yizawa has quit [*.net *.split]
commandoline has quit [*.net *.split]
nanonyme has quit [*.net *.split]
tazle has quit [*.net *.split]
glyph has quit [*.net *.split]
lastmikoi has quit [*.net *.split]
graingert[m] has quit [*.net *.split]
jryans has quit [*.net *.split]
catern has quit [*.net *.split]
krono has quit [*.net *.split]
sam_ has quit [*.net *.split]
indyZ has quit [*.net *.split]
marmoute has quit [*.net *.split]
the_rat has quit [*.net *.split]
epony has quit [*.net *.split]
shodan45 has quit [*.net *.split]
exarkun has quit [*.net *.split]
idnar has quit [*.net *.split]
cfbolz has quit [*.net *.split]
fijal has quit [*.net *.split]
saltrocklamp[m] has quit [*.net *.split]
Lightsword has quit [*.net *.split]
Corbin has quit [*.net *.split]
mjacob has quit [*.net *.split]
stkrdknmibalz has quit [*.net *.split]
habnabit_ has quit [*.net *.split]
ammar2 has quit [*.net *.split]
ctismer has quit [*.net *.split]
phlebas has quit [*.net *.split]
jerith has quit [*.net *.split]
pjenvey has quit [*.net *.split]
xcm has quit [*.net *.split]
antocuni has quit [*.net *.split]
atomizer has quit [*.net *.split]
_0az3 has quit [*.net *.split]
amazigh has quit [*.net *.split]
marvin has quit [*.net *.split]
larstiq_ has quit [*.net *.split]
[Arfrever] has quit [*.net *.split]
dmalcolm__ has quit [*.net *.split]
infernix has quit [*.net *.split]
mattip has quit [*.net *.split]
lazka has quit [*.net *.split]
dustinm has quit [*.net *.split]
samth has quit [*.net *.split]
benjamin has quit [*.net *.split]
tumbleweed has joined #pypy
exarkun has joined #pypy
larstiq_ has joined #pypy
tazle has joined #pypy
nanonyme has joined #pypy
Atque has joined #pypy
saltrocklamp[m] has joined #pypy
the_drow has joined #pypy
graingert[m] has joined #pypy
jryans has joined #pypy
Lightsword has joined #pypy
catern has joined #pypy
agronholm has joined #pypy
Corbin has joined #pypy
epony has joined #pypy
krono has joined #pypy
danchr_ has joined #pypy
glyph has joined #pypy
habnabit_ has joined #pypy
shodan45 has joined #pypy
xcm has joined #pypy
amazigh has joined #pypy
idnar has joined #pypy
cfbolz has joined #pypy
fijal has joined #pypy
ammar2 has joined #pypy
iwkse has joined #pypy
energizer has joined #pypy
lastmikoi has joined #pypy
antocuni has joined #pypy
atomizer has joined #pypy
arigato has joined #pypy
_0az3 has joined #pypy
commandoline has joined #pypy
Hodgestar has joined #pypy
yizawa has joined #pypy
ronan has joined #pypy
marmoute has joined #pypy
indyZ has joined #pypy
the_rat has joined #pypy
mjacob has joined #pypy
jerith has joined #pypy
pjenvey has joined #pypy
phlebas has joined #pypy
marvin has joined #pypy
ctismer has joined #pypy
luckydonald has joined #pypy
Techcable has joined #pypy
sam_ has joined #pypy
dmalcolm__ has joined #pypy
lazka has joined #pypy
[Arfrever] has joined #pypy
mattip has joined #pypy
infernix has joined #pypy
dustinm has joined #pypy
samth has joined #pypy
benjamin has joined #pypy
Guest96 has joined #pypy
Guest96 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mgorny> twisted.trial.unittest.FailTest: Process did not exit cleanly (out: [] err: [b"ModuleNotFoundError: No module named 'encodings'\ndebug:
<mgorny> OperationError:\ndebug: operror-type: ModuleNotFoundError\ndebug: operror-value: No module named 'encodings'\n"])
<mgorny> i'm pretty sure i've seen this before but i don't recall when
<mattip> it might be a failure to initalize the interpreter at early stages, and then it cannot successfully print out the error without more imports
<mgorny> found the culprit
<mattip> cool
<mgorny> reactor.spawnProcess(
<mgorny> helperProto, sys.executable, ("python", "-u", helperPath), env
<mgorny> )
<mgorny> it's passing "python" as argv[0]
<mgorny> if i change it to sys.executable, then pypy3 works
<mgorny> though it's weird
Atque has quit [Ping timeout: 276 seconds]
Atque has joined #pypy
<larstiq_> is `python` a different thing then?
<sam_> I don't think you can assume `python` is the thing you're running with at all
<mgorny> the thing is, i can't reproduce it standalone
<mgorny> so twisted probably does something even more creepy
Guest96 has joined #pypy
<mattip> mgorny: env["PYTHONPATH"] = os.pathsep.join(sys.path) before the call will do bad things if python != pypy
slav0nic has joined #pypy
<mgorny> it's pypy3 and i've tried copying that PYTHONPATH
<mgorny> fun enough, i can't even reproduce when running twisted tests standalone
<mgorny> probably it's something in Gentoo's build env interacting
<mgorny> hm, our newer test method works, so *shrug*
Guest96 has quit [Quit: Textual IRC Client: www.textualapp.com]
<cfbolz> Wow, what an unhelpful pypy-dev mail
<arigato> :-(
<cfbolz> "patches welcome"
<arigato> maybe with a guaranteed salary for 5 people full-time doing only that, we could get closer to his goal
<cfbolz> for sure
<larstiq_> that is also living way more on the cutting edge than I believe most people do
<ctismer> Don’t be worried about pretentious mails unless they are paying customers
larstiq_ is now known as LarstiQ
<mgorny> his goal doesn't really seem like worthwhile goal
<sam_> i don't think he actually wants pypy
LarstiQ is now known as Guest7503
<mgorny> ok, new wtf:
<mgorny> E ImportError: /tmp/setuptools-rust/examples/html-py-ever/.tox/pypy3/lib/pypy3.9/site-packages/html_py_ever/html_py_ever.pypy39-pp73-x86_64-linux-gnu.so: undefined symbol: PyUnicode_AsUTF8AndSize
<mgorny> i'm pretty sure the symbol is there... so wtf?
<sam_> it only became officially part of public for 3.10?
<sam_> do you have to opt in for it on earlie versions?
<mgorny> well, i suppose then it should fail at compile time, not runtime
<sam_> depends on flags used, i wouldn't be surprised if it injects something silly
<mgorny> 1185: 0000000001958510 18 FUNC GLOBAL DEFAULT 14 PyPyUnicode_AsUTF8AndSize
<mgorny> maybe it's a sign i should move my ass and reenable the shared lib
<mgorny> oh wait
<mgorny> 1185: 0000000001958510 18 FUNC GLOBAL DEFAULT 14 PyPyUnicode_AsUTF8AndSize
<mgorny> it's PyPyUnicode...
<sam_> LOL
<mgorny> ok, i'll enable shared lib now just in case
<Guest7503> iirc those PyPy symbols are intentionally internal?
Guest7503 has quit [Changing host]
Guest7503 has joined #pypy
Guest7503 is now known as LarstiQ
otisolsen70 has joined #pypy
<mgorny> hmm, when building a "normal" package it seems that they somehow get translated
<mgorny> so i guess the rust shit is to blame
<mgorny> ah, now i grep right:
<mgorny> pypy_decl.h:#define PyUnicode_AsUTF8AndSize PyPyUnicode_AsUTF8AndSize
<mattip> We rename them to make sure we are exporting the right things.
<mattip> so rust probably doesn't know about the renaming
<mgorny> yes, pyo3 reinvents the whole API x_x
<mgorny> what a piece of shit
<mgorny> reported a bug but i wouldn't have high hopes
<mgorny> and cryptography doesn't build either because of another bug
<mattip> to be fair, it is not always clear how to do the renaming
jacob22 has joined #pypy
slav0nic has quit [Ping timeout: 260 seconds]
slav0nic has joined #pypy
Atque has quit [Remote host closed the connection]
Atque has joined #pypy
<mgorny> any clue what they mean?
<nimaje> maybe they mean "CPython’s Application Binary Interface (ABI) is forward- and backwards-compatible across a minor release (if these are compiled the same way; see Platform Considerations below).", but that only applies to cpythons abi (https://docs.python.org/3/c-api/stable.html)
<cfbolz> mgorny: pypy doesn't support the abi
<cfbolz> And for the api, yes they need to use the header
Atque has quit [Quit: ...]
<mattip> is there some other thing "ABI definition" which we should be generating?
<tumbleweed> pyo3 *could* support cffi, of course
<mattip> we do try to test against PyO3, but it seems they changed to nox a little while ago and broke the build script
<mattip> mgorny: what version of py03 are you using? This seems to have been added 4 months ago
<mattip> from what I can tell that should be in py03 0.15.0
<mgorny> mattip: i've had the test failrue with 0.12.1 and 0.15.1
<mgorny> or at least i think so
<mgorny> the package originally binds to 0.12.1
<mgorny> i've modified some random file and it looked like Cargo.lock changed to 0.15.1
<mgorny> i guess i shoudl try again ;-f
<mgorny> in other news, PyUnicode_DecodeLocale() call in pycurl is segfaulting for me
<mgorny> and printf on its input seems to work
<mattip> this is in the tests of pycurl or when you are using it in practice?
<mgorny> the latter, triggered via tests of tornado
<mgorny> i'm going to try making a standalone reproducer
* mgorny hasn't written python extensions in a long time
<mattip> linux64 is in better shape than macOS and windows
<mattip> there are some unicode failures on macOS and windows
<mgorny> it's gentoo amd64
<cfbolz> PyO3 website says they support pypy
<cfbolz> So we could just wait for one of their developers to chime on the bug report
<mgorny> so it probably didn't upgrade to 0.15.1 after all
<mgorny> errr
<mgorny> /usr/include/pypy3.9/pypy_decl.h:915:69: note: expected ‘struct _object *’ but argument is of type ‘char *’
<mgorny> 915 | PyAPI_FUNC(struct _object *) PyUnicode_DecodeLocale(struct _object *arg0, const char *arg1);
<mgorny> https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_DecodeLocale <- it's const char * here
<mgorny> yep, segfaults
<mattip> heh, I even tested that the wrong interface works.
<mattip> I guess that function is not used all that much yet, it was added in 7.3.2 so about two years ago
<mattip> I wonder if there is a way to compare all the signatures of our headers
<mgorny> i've also noticed we're missing the -AndSize version
<mgorny> but i suppose that is even less popular
<mgorny> i need that one for pycurl which is indirectly needed to enable poetry-core for pypy3
<mattip> fix is coming ...
<mgorny> thanks!
otisolsen70_ has joined #pypy
otisolsen70_ has quit [Remote host closed the connection]
otisolsen70 has quit [Ping timeout: 256 seconds]
<cfbolz> Some good bug fixing after the rc1 I'd say!
<cfbolz> (even if I am still stuck with multiprocessing)
lritter has joined #pypy
Guest96 has joined #pypy
greedom has joined #pypy
jacob22_ has joined #pypy
jacob22 has quit [Ping timeout: 256 seconds]
Atque has joined #pypy
jacob22_ has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 240 seconds]
jacob22_ has joined #pypy
greedom has quit []
samth has quit [*.net *.split]
[Arfrever] has quit [*.net *.split]
dmalcolm__ has quit [*.net *.split]
infernix has quit [*.net *.split]
mattip has quit [*.net *.split]
lazka has quit [*.net *.split]
dustinm has quit [*.net *.split]
LarstiQ has quit [*.net *.split]
tumbleweed has quit [*.net *.split]
Atque has quit [*.net *.split]
benjamin has quit [*.net *.split]
the_drow has quit [*.net *.split]
agronholm has quit [*.net *.split]
danchr_ has quit [*.net *.split]
Techcable has quit [*.net *.split]
arigato has quit [*.net *.split]
luckydonald has quit [*.net *.split]
Hodgestar has quit [*.net *.split]
iwkse has quit [*.net *.split]
energizer has quit [*.net *.split]
ronan has quit [*.net *.split]
yizawa has quit [*.net *.split]
commandoline has quit [*.net *.split]
jacob22_ has quit [*.net *.split]
Guest96 has quit [*.net *.split]
tazle has quit [*.net *.split]
nanonyme has quit [*.net *.split]
glyph has quit [*.net *.split]
lastmikoi has quit [*.net *.split]
graingert[m] has quit [*.net *.split]
jryans has quit [*.net *.split]
catern has quit [*.net *.split]
krono has quit [*.net *.split]
sam_ has quit [*.net *.split]
indyZ has quit [*.net *.split]
marmoute has quit [*.net *.split]
the_rat has quit [*.net *.split]
exarkun has quit [*.net *.split]
epony has quit [*.net *.split]
shodan45 has quit [*.net *.split]
idnar has quit [*.net *.split]
cfbolz has quit [*.net *.split]
fijal has quit [*.net *.split]
saltrocklamp[m] has quit [*.net *.split]
Lightsword has quit [*.net *.split]
Corbin has quit [*.net *.split]
mjacob has quit [*.net *.split]
habnabit_ has quit [*.net *.split]
ammar2 has quit [*.net *.split]
ctismer has quit [*.net *.split]
phlebas has quit [*.net *.split]
jerith has quit [*.net *.split]
pjenvey has quit [*.net *.split]
xcm has quit [*.net *.split]
antocuni has quit [*.net *.split]
atomizer has quit [*.net *.split]
_0az3 has quit [*.net *.split]
amazigh has quit [*.net *.split]
marvin has quit [*.net *.split]
xcm has joined #pypy
fijal has joined #pypy
cfbolz has joined #pypy
idnar has joined #pypy
dustinm has joined #pypy
lazka has joined #pypy
mattip has joined #pypy
infernix has joined #pypy
[Arfrever] has joined #pypy
Hodgestar has joined #pypy
dmalcolm__ has joined #pypy
luckydonald has joined #pypy
Techcable has joined #pypy
arigato has joined #pypy
agronholm has joined #pypy
danchr_ has joined #pypy
benjamin has joined #pypy
_0az3 has joined #pypy
marvin has joined #pypy
the_drow has joined #pypy
atomizer has joined #pypy
marmoute has joined #pypy
amazigh has joined #pypy
antocuni has joined #pypy
indyZ has joined #pypy
sam_ has joined #pypy
krono has joined #pypy
catern has joined #pypy
jryans has joined #pypy
graingert[m] has joined #pypy
pjenvey has joined #pypy
LarstiQ has joined #pypy
jerith has joined #pypy
phlebas has joined #pypy
shodan45 has joined #pypy
epony has joined #pypy
exarkun has joined #pypy
habnabit_ has joined #pypy
ammar2 has joined #pypy
nanonyme has joined #pypy
tazle has joined #pypy
Guest96 has joined #pypy
glyph has joined #pypy
the_rat has joined #pypy
ctismer has joined #pypy
tumbleweed has joined #pypy
lastmikoi has joined #pypy
jacob22_ has joined #pypy
epony has quit [Max SendQ exceeded]
iwkse has joined #pypy
yizawa has joined #pypy
ronan has joined #pypy
energizer has joined #pypy
commandoline has joined #pypy
epony has joined #pypy
Atque has joined #pypy
samth has joined #pypy
Corbin has joined #pypy
mjacob has joined #pypy
Lightsword has joined #pypy
saltrocklamp[m] has joined #pypy
saltrocklamp[m] has quit [Ping timeout: 245 seconds]
the_drow has quit [Ping timeout: 260 seconds]
graingert[m] has quit [Ping timeout: 252 seconds]
jryans has quit [Ping timeout: 252 seconds]
epony is now known as Guest3959
Hube12 has joined #pypy
Hube1261 has joined #pypy
Hube1262 has joined #pypy
Hube12 has quit [Ping timeout: 256 seconds]
Hube1262 has quit [Client Quit]
jryans has joined #pypy
the_drow has joined #pypy
Hube1261 has quit [Ping timeout: 256 seconds]
graingert[m] has joined #pypy
saltrocklamp[m] has joined #pypy
Guest96 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slav0nic has quit [Ping timeout: 250 seconds]