trfl: Raise "error: could not create 'build': File exists" while installing

When I firstly install trfl, it raised error almost at the end of installation, Failed building wheel for trfl Running setup.py clean for trfl Failed to build trfl Installing collected packages: trfl Running setup.py install for trfl ... error The further issue is like

running install running build running build_py creating build error: could not create 'build': File exists

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21 (4 by maintainers)

Most upvoted comments

We managed to reproduce the issue, which seems to only affect the python3 prebuilt binaries for MacOS. We will investigate this further (note that, in the meanwhile, building for MacOS locally is still possible for both python2 and python3 according to the instructions in INSTALL.md).

Hi @abdel,

About the difference between your wheel and our wheel:

  • Your wheel: trfl-1.0-cp36-cp36m-macosx_10_7_x86_64.whl
  • Our wheel: trfl-1.0-cp36-cp36m-macosx_10_6_intel.whl

intel is used for a universal build with the i386 and x86_64 architectures (from https://docs.python.org/2/distutils/apiref.html#module-distutils.util) so I think that this shouldn’t be an issue.

However, when I install from pip on my personal MacOS laptop I can see _gen_distribution_ops.so.

Just to double check, in your message you mention you can’t find gen_distribution_ops.so; it should be _gen_distribution_ops.so, with an underscore, both when you build locally as well as when you install from pip. Can you verify that there is no _gen_distribution_ops.so?