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

Installing from sources #839

Closed
bstaber opened this issue Dec 6, 2021 · 3 comments
Closed

Installing from sources #839

bstaber opened this issue Dec 6, 2021 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed maintenance

Comments

@bstaber
Copy link

bstaber commented Dec 6, 2021

Describe the bug
Hello,
I'm trying to install omegaconf from sources on a cluster without internet access. When I run the installation, I get the following message: error: can't copy 'omegaconf.egg-info/PKG-INFO': doesn't exist or not a regular file.

I'm wondering if I should change something in the setup.py file.

Note: I'm not a root user.

To Reproduce
Download the sources (https://pypi.org/project/omegaconf/#files), extract files then run python3 setup.py install --prefix=$PREFIX

Thanks for your help.

@bstaber bstaber added the bug Something isn't working label Dec 6, 2021
@Jasha10
Copy link
Collaborator

Jasha10 commented Dec 6, 2021

Thanks for reporting @bstaber. We will look into this.

@Jasha10
Copy link
Collaborator

Jasha10 commented Dec 10, 2021

@bstaber a workaround is to use pip install . instead of running setup.py directly.

Installing from source using pip:

$ wget https://files.pythonhosted.org/packages/91/80/c9268fedb0d63ddf7dfa4352070f8cfecf2b0443df7737462c3ab0437c11/omegaconf-2.1.1.tar.gz
...
$ tar -xzf omegaconf-2.1.1.tar.gz
$ cd omegaconf-2.1.1/
$ pip install .
...

Installing from a wheel using pip:

$ wget https://files.pythonhosted.org/packages/66/c8/7ef11e12f3844b210add2e003abf8a0c7981ce7b5553dc630b635e7b905e/omegaconf-2.1.1-py3-none-any.whl
...
$ pip install omegaconf-2.1.1-py3-none-any.whl
...

Cross-link: #772.

@Jasha10 Jasha10 added help wanted Extra attention is needed maintenance labels Dec 10, 2021
@omry
Copy link
Owner

omry commented Apr 22, 2023

Closing as the solution is to use pip and not setup.py.

@omry omry closed this as completed Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed maintenance
Projects
None yet
Development

No branches or pull requests

3 participants