Skip to content

Cannot import TensorFlow #7

@TTitcombe

Description

@TTitcombe

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions