Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import TensorFlow #7

Open
TTitcombe opened this issue Aug 7, 2019 · 0 comments
Open

Cannot import TensorFlow #7

TTitcombe opened this issue Aug 7, 2019 · 0 comments

Comments

@TTitcombe
Copy link

TTitcombe commented Aug 7, 2019

I'm running the 4.2 image on Docker for Windows and run a container via
docker run --rm --security-opt seccomp:unconfined -itv %CD%:/usr/src zachgray/swift-tensorflow:4.2 swift (%CD% being windows version of pwd)

When I run import TensorFlow in the REPL I see

<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "c_api.h"
         ^

error: /usr/lib/swift/linux/x86_64/modulemaps/CTensorFlow/c_api.h:19:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^

/usr/include/stdint.h:25:10: note: while building module 'SwiftGlibc' imported from /usr/include/stdint.h:25:
#include <features.h>
         ^

<module-includes>:3:10: note: in file included from <module-includes>:3:
#include "///usr/include/utmp.h"
         ^

///usr/include/utmp.h:23:10: note: in file included from ///usr/include/utmp.h:23:
#include <sys/types.h>
         ^

error: /usr/include/x86_64-linux-gnu/sys/types.h:146:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^

error: could not build C module 'CTensorFlow'

Is this a Docker for windows issue or an image issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant