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 | hacking on TLS is fun, way more fun than arguing over petty shit, turns out
slav0nic has quit [Ping timeout: 268 seconds]
glyph has quit [Quit: End of line.]
glyph has joined #pypy
Julian has joined #pypy
Guest96 has joined #pypy
Julian has quit [Ping timeout: 256 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 256 seconds]
Julian has joined #pypy
Guest96 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
otisolsen70 has joined #pypy
Guest96 has joined #pypy
Guest96 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slav0nic has joined #pypy
Julian has quit [Ping timeout: 268 seconds]
Julian has joined #pypy
Guest96 has joined #pypy
Julian has quit [Quit: leaving]
<ctismer> mattip: I checked that the homebrew version is up-to-date enough.
<mattip> thanks, but I prefer linux
<ctismer> mattip: So you can simply do `brew install Qt` and don't need an account. (that's the good thing)
<ctismer> on the testing: The tests are built in a way that they forcibly run on a build folder.
<ctismer> mattip: But many of them can also be run on an install with wheels. The tests that don't work are only 23. I can give a list if you want to try.
<mattip> other than my curiosity, what is the goal of me trying the build?
<ctismer> mattip: The idea was to show what works and what doesn't. For instance, I got weird behavior on this example: `./examples/corelib/threads/mandelbrot.py`
<ctismer> mattip: There must be still something that is not allowed with PyPy, and I need someone with a sharpened PyPy-eye to find the last bug. I am at the end of my wisdom 🤪
<mattip> ok, so how do I build and run that example?
<mattip> can I just run it with the wheel you uploaded?
<ctismer> mattip: `pypy examples/corelib/threads/mandelbrot.py`
<ctismer> mattip: sure, but you still need Qt, this did not work in `--standalone`
<ctismer> but I can try to package a better one...
<ctismer> mattip: when mandelbrot works, then I can publish PyPySide, because that was the goal :)
<ctismer> mattip: you can run it with the wheel, if Qt is installed, unfortunately.
<mattip> weird, I get "ImportError: dlopen(<path>/Shiboken.pypy37-pp73-darwin.so, 6): Symbol not found: _PyPyDescr_NewGetSet
<mattip> when running with pypy3.7 v7.3.7
<mattip> but I think that was exposed years ago
<ctismer> mattip: I used a recent nightly build where you (or cfbolz?) had fixes.
<mattip> with a nightly I get something about missing qt libraries
<ctismer> the numbering is not very exact. There was a fix that defined `PyDescr_NewGetSet`
<mattip> ImportError: dlopen(<path>/PySide6/QtCore.pypy37-pp73-darwin.so, 6): Library not loaded: @rpath/QtCore.framework/Versions/A/QtCore
<ctismer> mattip: that's good, as said, it needs Qt. I failed to build a --standalone, but will try again.
<mattip> ahh, got it "brew install Qt"
<mattip> but even after I do that I still get the same error
<ctismer> mattip: yes, that's the cakewalk thing. Then you need a setting:
<ctismer> mattip: `export PATH=/usr/local/Cellar/qt/6.2.2/bin:$PATH`
<mattip> nope, still the same
<mattip> maybe whatever the macOS equivalent of LD_LIBRARY_PATH is?
<ctismer> mattip: possible. I never set something like that.
<ctismer> mattip: actually, a wheel install of PySide should work, immediately?
<ctismer> mattip: `pip install PySide6`
<mattip> it is already installed
<ctismer> mattip: so "python3 -c "from PySide6 import *"` works?
<ctismer> mattip: so `python3 -c "from PySide6 import *"` works?
slav0nic has quit [Ping timeout: 252 seconds]
<mattip> no. it gives me
<mattip> ImportError: dlopen(<path>/site-packages/PySide6/QtCore.pypy37-pp73-darwin.so, 6): Library not loaded: @rpath/QtCore.framework/Versions/A/QtCore
<ctismer> I was talking of the python install, as a starter
<[Arfrever]> MacOS has DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH variables...
<ctismer> [Arfrever]: yes, but I think the pip install works out-of-the-box?
<mattip> cool. "export DYLD_FRAMEWORK_PATH=/usr/local/Cellar/qt/6.2.2/lib" makes that error go away
<[Arfrever]> I never used MacOS anyway :) .
<ctismer> env
<mattip> now I get a segfault in the example, after printing something about
<mattip> "endPaint() called with active painter"
<mattip> "QPainter::begin: A paint device can only be painted by one painter at a time"
<mattip> QPainter::setCompositionMode: Painter not active
<ctismer> mattip: yes, that happens sometimes, then I get a black screen and nothing happens.
<ctismer> mattip: with Python, this works fine.
<mattip> seems like a painter is not getting collected after deletion
<ctismer> mattip: now I have a standalone wheel, but no more needed.
<ctismer> mattip: you should be able to run the example with Python, because you installed with pip.
<mattip> all I get is the segfault 100% of the time
<ctismer> mattip: I had that, too. After a reboot, it was different. No idea how to control that.
<ctismer> mattip: I am trying hard with running debuggers in parallel, in order to figure out when and why they diverge.
<mattip> why would it call endPaint more than once?
<ctismer> mattip: I'm afraid there is something wrong because it does not recognise certain things
<ctismer> mattip: the same with other errors where PyPy did not understand, like the `ob_dict` problem. This finding removed over 50 errors.
<ctismer> mattip: there is one such thing still, which I do not know.
<ctismer> mattip: I am currently investigating `sources//pyside6/tests/pysidetest/homonymoussignalandmethod_test.py`
<ctismer> mattip: weird behavior with multiple inheritance, where internal flags don't get set. I guess that is related. Seeking since last Thursday
slav0nic has joined #pypy
alicetries has quit [Remote host closed the connection]
alicetries has joined #pypy
Julian has joined #pypy
Julian has quit [Quit: leaving]
<ctismer> mattip: This bug seems to be access to uninitialized memory, that can result in a crash or not, whatever happens to be there in memory. Should do a debug build
<mattip> PyPy is not initializing the memory and CPython is initializing the memory?
<mattip> which memory?
<ctismer> mattip: nooo, we are falsely accessing something that CPython handles correctly, while PyPy does not understand and does not initialize, somehow. It is hard to argue logically, because PyPy's logic is not completely defined for me.
Guest96 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Julian has joined #pypy
Guest96 has joined #pypy
danchr_ is now known as danchr
Julian has quit [Ping timeout: 250 seconds]
Julian has joined #pypy
Julian has quit [Quit: leaving]
otisolsen70 has quit [Quit: Leaving]
Guest96 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96 has joined #pypy
slav0nic has quit [Ping timeout: 240 seconds]
Guest96 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]