Created attachment 545510 [details, diff] patch part 1 The current version of tensorflow doesn't build with Python3.7. The main reason is that Python3.7 has changed the type of the function value of PyUnicode_AsUTF8AndSize from char* to const char* For me it is difficult to try patches since I don't understand the bazel build system. Furthermore, unfortunately, tensorflow packages a private copy of dev-python/protobuf-python. For the version in the Gentoo tree there is a patch for Python3.7 already. But there are more occurrences of PyUnicode_AsUTF8AndSize. I had to give patching but I attach my patches so far. I hope this helps somebody who tries to patch tensorflow for Python3.7
Created attachment 545512 [details] patch part 2
Created attachment 545514 [details] patch part 3
tensorflow-1.11.0_rc0 is in the tree. can you try that one? I unbundled protobuf in that version if you enable the system-libs useflag (on by default) so the protobuf patches wont be necessary. The tf patches look like they are already fixed or there has been a lot of code churn so I cant quite find the place. Can you test and if it still fails send new patches then I'll get them committed upstream too?
(In reply to Jason Zaman from comment #3) > tensorflow-1.11.0_rc0 is in the tree. can you try that one? > I unbundled protobuf in that version if you enable the system-libs useflag > (on by default) so the protobuf patches wont be necessary. > > The tf patches look like they are already fixed or there has been a lot of > code churn so I cant quite find the place. Can you test and if it still > fails send new patches then I'll get them committed upstream too? Many thanks, I could successfully build sci-libs/tensorflow-1.11.0_rc0 and sci-visualization/tensorboard-1.10.0 with Python3.7. Helmut
(In reply to Helmut Jarausch from comment #4) > Many thanks, I could successfully build sci-libs/tensorflow-1.11.0_rc0 and > sci-visualization/tensorboard-1.10.0 with Python3.7. excellent, closing! :)