question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
mtthsscommented, Mar 18, 2019

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).

1reaction
mtthsscommented, Mar 18, 2019

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build fails with error: could not create 'build': File exists #20
OS: macOS High Sierra Python 3.6.4 (Anaconda) Trying to build from source: ~/Repos/python-pachyderm $ python setup.py install ...
Read more >
python setup path problem - Stack Overflow
I'm guessing that the build process created some files with root ownership when you ran this: sudo make install. When running as a...
Read more >
python setup.py egg_info did not run successfully. - You.com ...
However, when I try to install pygame, I get the error "subprocess-exited-with-error" and at the end it states "Microsoft Visual C++ 14.2 or...
Read more >
Changelog - pip documentation v22.3.1
Do not raise error when there are no files to remove with pip cache purge/remove . Instead log a warning and continue (to...
Read more >
Built-in Exceptions — Python 3.11.1 documentation
This exception is raised when a system function returns a system-related error, including I/O failures such as “file not found” or “disk full”...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found