Skip to content
New issue

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

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

Already on GitHub? # to your account

Installation Problem - error: could not create 'build': File exists #5

Open
rorynormaness opened this issue Feb 19, 2024 · 3 comments

Comments

@rorynormaness
Copy link

Hello there.

I have made a python 3.7 environment, and then I have also installed Bazel as instructed via Homebrew.

I have then cloned the repository onto the machine - so far so good.

When I then try to install the package with this command:

python3 -m pip install ./trimmed_match

It begins installing dependencies (numpy etc.) just fine, and then when we get to this block, things go south:

Building wheels for collected packages: trimmed-match
  Building wheel for trimmed-match (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      error: could not create 'build': File exists
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for trimmed-match
  Running setup.py clean for trimmed-match
Failed to build trimmed-match
Installing collected packages: pytz, typing_extensions, six, pyparsing, pillow, packaging, numpy, MarkupSafe, fonttools, cycler, absl-py, scipy, python-dateutil, kiwisolver, jinja2, pandas, matplotlib, seaborn, trimmed-match
  Running setup.py install for trimmed-match ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for trimmed-match did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      running install
      /Users/xx.xx/anaconda3/envs/xx/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        setuptools.SetuptoolsDeprecationWarning,
      running build
      running build_py
      creating build
      error: could not create 'build': File exists
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> trimmed-match

Please help!

@Derek-s-sainsburys
Copy link

Did you ever get an answer to this? I'm having the same issue.

@rorynormaness
Copy link
Author

rorynormaness commented Dec 4, 2024 via email

@Derek-s-sainsburys
Copy link

I'm on a windows and can't get it working either tbh.
I think the issue must be with the Bazel install and the estimator_ext file being a C++ file but I've yet to be able to sort it either.

If I figure it out I'll post here. :)

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

No branches or pull requests

2 participants