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

Cannot install from local source #44

Open
lordlothard opened this issue Nov 22, 2023 · 0 comments
Open

Cannot install from local source #44

lordlothard opened this issue Nov 22, 2023 · 0 comments

Comments

@lordlothard
Copy link

Hi,

I tried to install the wavedrompy package locally from /wavedrompy-master I downloaded.

I cannot access to the repository online because of restrictions on my machine.

It seems that pip cannot access to the following library :

artifactory/api/pypi/python-pypipythonorg-remote/simple/setuptools-scm/

Here is the following command I tried, following the indication for local install (https://packaging.python.org/en/latest/tutorials/installing-packages/#installing-from-local-archives ) :

$ C:\Users\USER\Downloads\wavedrompy-master\wavedrompy-master> python -m pip install --no-index --find-links C:\Users\USER\Downloads\wavedrompy-master\wavedrompy-master .

The installation starts :

Looking in links: c:\Users\USER\Downloads\wavedrompy-master\wavedrompy-master
Processing c:\users\USER\downloads\wavedrompy-master\wavedrompy-master

and eventually I receive the failed message :

    ERROR: Command errored out with exit status 1:
     command: 'C:\XXXX\python-3.8.5.amd64\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-req-build-2u
mepr8u\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-req-build-2umepr8u\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'
"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\USER\AppData\Local\Temp\pip-pip-egg-info-i5sq93ww'
         cwd: C:\Users\USER\AppData\Local\Temp\pip-req-build-2umepr8u\
    Complete output (37 lines):
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] cert
ificate verify failed: certificate has expired (_ssl.c:1123)'))': /artifactory/api/pypi/python-pypipythonorg-remote/simple/setuptools-scm/
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] cert
ificate verify failed: certificate has expired (_ssl.c:1123)'))': /artifactory/api/pypi/python-pypipythonorg-remote/simple/setuptools-scm/
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] cert
ificate verify failed: certificate has expired (_ssl.c:1123)'))': /artifactory/api/pypi/python-pypipythonorg-remote/simple/setuptools-scm/
    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] cert
ificate verify failed: certificate has expired (_ssl.c:1123)'))': /artifactory/api/pypi/python-pypipythonorg-remote/simple/setuptools-scm/
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] cert
ificate verify failed: certificate has expired (_ssl.c:1123)'))': /artifactory/api/pypi/python-pypipythonorg-remote/simple/setuptools-scm/
    ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
    ERROR: No matching distribution found for setuptools_scm
    Traceback (most recent call last):
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
        subprocess.check_call(cmd)
      File "C:\XXXX\python-3.8.5.amd64\lib\subprocess.py", line 364, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['C:\\XXXX\\python-3.8.5.amd64\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Us
ers\\USER\\AppData\\Local\\Temp\\tmphs9yb8ho', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\USER\AppData\Local\Temp\pip-req-build-2umepr8u\setup.py", line 28, in <module>
        setup(
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\setuptools\__init__.py", line 162, in setup
        _install_setup_requires(attrs)
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\setuptools\__init__.py", line 157, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\setuptools\dist.py", line 699, in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\pkg_resources\__init__.py", line 779, in resolve
        dist = best[req.key] = env.best_match(
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\pkg_resources\__init__.py", line 1064, in best_match
        return self.obtain(req, installer)
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\pkg_resources\__init__.py", line 1076, in obtain
        return installer(requirement)
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\setuptools\dist.py", line 758, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "C:\XXXX\python-3.8.5.amd64\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_egg
        raise DistutilsError(str(e)) from e
    distutils.errors.DistutilsError: Command '['C:\\XXXX\\python-3.8.5.amd64\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\
Users\\USER\\AppData\\Local\\Temp\\tmphs9yb8ho', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I am quite new to dealing with packages and dependencies... Do you have any indication to provide me in order to make an environnement self-content and install the package ?

Thank you very much,

Gautier

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

No branches or pull requests

1 participant