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
<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)
<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>
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]