Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error when installing #2

Closed
cmahervir opened this issue May 26, 2022 · 2 comments
Closed

Error when installing #2

cmahervir opened this issue May 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@cmahervir
Copy link

Dear Authors,

I get the following error when installing AbLang via pip, or directly from git. It looks like maybe it is expecting to be deleting a file, but instead it's a directory. Are you seeing the same behavior? Or is this a python version issue? Thanks for your help!:

          return self._get_build_requires(
        File "/tmp/pip-build-env-gzvrkc_f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-gzvrkc_f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 217, in <module>
          os.unlink(fairseq_examples)
      IsADirectoryError: [Errno 21] Is a directory: 'fairseq/examples'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
@TobiasHeOl
Copy link
Owner

Hi @cmahervir.

Thank you for interest in AbLang! Unfortunately this is a known issue with fairseq 0.10.1 and 0.10.2 (see facebookresearch/fairseq#3535) . A possible workaround is to do:

python pip install fairseq==0.10.0

I hope this helps! I'll keep this issue open until fairseq is properly fixed.

Best,
Tobias

@TobiasHeOl TobiasHeOl added the bug Something isn't working label May 27, 2022
@TobiasHeOl
Copy link
Owner

Sorry for the long wait! fairseq keeps introducing different dependency issues. To resolve this, we have decided to extract the code from fairseq that we use, allowing us not to install fairseq anymore 8f901e9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants