cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
jvesely has joined #pypy
CrazyPython has quit [Ping timeout: 260 seconds]
camelCaser has quit [Ping timeout: 258 seconds]
camelCaser has joined #pypy
CrazyPython has joined #pypy
jcea has quit [Quit: jcea]
dddddd has quit [Remote host closed the connection]
CrazyPython has quit [Read error: Connection reset by peer]
CrazyPython has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
CrazyPython has joined #pypy
CrazyPython has quit [Ping timeout: 265 seconds]
i9zO5AP has joined #pypy
jvesely has quit [Quit: jvesely]
Ai9zO5AP has quit [Ping timeout: 265 seconds]
pepesza has quit [Ping timeout: 265 seconds]
pepesza has joined #pypy
i9zO5AP has quit [Ping timeout: 245 seconds]
i9zO5AP has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
micisuta has joined #pypy
lritter has joined #pypy
<graingert> cfbolz: would it be possible to put pypy on pypi as a cpython extension in a wheel?
<graingert> so I could do "import pypy; pypy.eval(...)"
<graingert> oh embedded pypy is deprecated :( https://doc.pypy.org/en/release-2.4.x/embedding.html
<graingert> I was hoping to be able to run little snippets of pypy2 in a cpython3 project without the overhead of a subprocess
dddddd has joined #pypy
<graingert> In my ideal world I'd be able to start up pypy3 and pypy2 subinterpreters on cpython3 and communicate with them all via the create_channel interface cfbolz
<cfbolz> graingert: not easily, no
<graingert> Probably worth waiting for pypy3.9 before I bring it up again
<graingert> For me it would be useful without the smi stuff
<graingert> All I need to do is hand a socket over to some py2 code have it read/write it into a pickleable object and send it back
<graingert> I currently do this with subprocess and it's fine
<graingert> Being able to send a numpy frame over the channel and get all the fun threading benifits would be most cool - but I'd probably use it once to try it out and never need it
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
jcea has joined #pypy
Rhy0lite has joined #pypy
adamholmberg has joined #pypy
<tos9> graingert: (there's the CFFI based embedding for pypy)
<graingert> tos9: that sounds good
<tos9> which I've never tried but from what I hear(d) is quite easy
vretiel has joined #pypy
Kronuz has quit [Ping timeout: 268 seconds]
Kronuz has joined #pypy
Smigwell has joined #pypy
vretiel has left #pypy [#pypy]
vretiel has joined #pypy
<vretiel> hello
<vretiel> anybody here try compiling tensorflow with pypy3 on ubuntu?
<Dejan> never tried
<vretiel> dang. i'm using bazel and it keeps giving me ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
<vretiel> it compiles fine under cpython
<tos9> vretiel: I've tried it before but I don't remember whether I was successful or not
<tos9> I do remember having given up quite a few times given they have not properly uploaded it to PyPI, but if you paste your error it may ring a bell
<vretiel> im compiling it from source
<vretiel> i checked out r1.14
<vretiel> with cuda support (10.1) not 10 - which is why i have to compile from source
<vretiel> i run the configure just fine
<vretiel> but the build breaks 80% of the way through
<vretiel> I'm running this in a virtual environment with pypy3 7.3
<vretiel> the bazel command is the usual bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_packag
<vretiel> here's the last traceback
<vretiel> Traceback (most recent call last):
<vretiel> File "/home/vretiel/.cache/bazel/_bazel_vretiel/ec2591a0fe29386400d95468f7c519e5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/keras/api/create_tensorflow.python_api_1_keras_python_api_gen_compat_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
<vretiel> from tensorflow.python.pywrap_tensorflow_internal import *
<vretiel> File "/home/vretiel/.cache/bazel/_bazel_vretiel/ec2591a0fe29386400d95468f7c519e5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/keras/api/create_tensorflow.python_api_1_keras_python_api_gen_compat_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
<vretiel> _pywrap_tensorflow_internal = swig_import_helper()
<vretiel> File "/home/vretiel/.cache/bazel/_bazel_vretiel/ec2591a0fe29386400d95468f7c519e5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/keras/api/create_tensorflow.python_api_1_keras_python_api_gen_compat_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 20, in swig_import_helper
<vretiel> import _pywrap_tensorflow_internal
<vretiel> i suspect it has something to do with the name of the .so file
jvesely has joined #pypy
kanaka has joined #pypy
kanaka has quit [Changing host]
kanaka has joined #pypy
salotz[m] has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
micisuta has quit [Ping timeout: 265 seconds]
<LarstiQ> vretiel: that's not building pypy is it?
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
bbot2 has quit [Quit: buildmaster reconfigured: bot disconnecting]
bbot2 has joined #pypy
lesshaste has joined #pypy
lesshaste is now known as Guest38573
<ronan> vretiel: have you seen https://github.com/tensorflow/tensorflow/issues/252 ? It looks like you get further by renaming _pywrap_tensorflow_internal.so and using a recent SWIG
<ronan> vretiel: also, next time, please use a pastebin to show tracebacks or compilation logs
xcm has quit [Killed (verne.freenode.net (Nickname regained by services))]
xcm has joined #pypy
kirma has quit [Ping timeout: 248 seconds]
xcm has quit [Remote host closed the connection]
Rhy0lite has quit [Quit: Leaving]
xcm has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
wleslie has quit [Ping timeout: 268 seconds]
wleslie has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
micisuta has joined #pypy
micisuta1 has joined #pypy
micisuta has quit [Ping timeout: 260 seconds]
micisuta1 is now known as micisuta
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
jacob22 has quit [Quit: Konversation terminated!]
camelCaser has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
camelCaser has joined #pypy
micisuta has quit [Ping timeout: 265 seconds]
jacob22_ has joined #pypy
jacob22 has quit [Ping timeout: 265 seconds]
CrazyPython has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
Smigwell has left #pypy [#pypy]
jacob22 has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy