tubular / rules_pygen

Rules for generating native Bazel Python libraries from requirements.txt
Apache License 2.0
15 stars 1 forks source link

Error with numpy and py_binary #9

Open statik opened 4 years ago

statik commented 4 years ago

Thanks for making and sharing these rules ❤️

I've tried to follow the directions, but I'm having trouble with numpy, and I wonder if I missed something in the setup. I'm running on MacOS, and trying to run a py_binary and a docker py3_image. With both bazel run :demo and bazel run :ddemo, I get an error when importing numpy about ImportError: cannot import name 'WinDLL'.

I've created an example repo here that reproduces the problem: https://github.com/kindlyops/bazel-python-demo

Do I need to do something different with the config_setting calls? I'm not certain I correctly followed the instructions about them being hardcoded at //tool_bazel