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
conda install --offline still performs online operations #5370
Comments
Can you add a |
Oh. Wait. Try 4.3.18. |
There were two PRs in 4.3.18 that hopefully killed at least a couple of these code paths. |
@ijstokes Can you confirm that you're still seeing this with conda 4.3.18? |
Unfortunately the problem is still there: $ conda install --offline statsmodels
Fetching package metadata .........
Solving package specifications: .
Package plan for installation in environment /Users/ijstokes/anaconda/envs/oracletest:
The following NEW packages will be INSTALLED:
mkl: 2017.0.1-0
numpy: 1.12.1-py36_0
openssl: 1.0.2k-2
pandas: 0.20.1-np112py36_0
patsy: 0.4.1-py36_0
pip: 9.0.1-py36_1
python: 3.6.1-2
python-dateutil: 2.6.0-py36_0
pytz: 2017.2-py36_0
readline: 6.2-2
scipy: 0.19.0-np112py36_0
setuptools: 27.2.0-py36_0
six: 1.10.0-py36_0
sqlite: 3.13.0-0
statsmodels: 0.8.0-np112py36_0
tk: 8.5.18-0
wheel: 0.29.0-py36_0
xz: 5.2.2-1
zlib: 1.2.8-3
Proceed ([y]/n)? y
CondaError: RuntimeError('EnforceUnusedAdapter called with url https://repo.continuum.io/pkgs/free/osx-64/patsy-0.4.1-py36_0.tar.bz2\nThis command is using a remote connection in offline mode.\n',)
CondaError: RuntimeError('EnforceUnusedAdapter called with url https://repo.continuum.io/pkgs/free/osx-64/patsy-0.4.1-py36_0.tar.bz2\nThis command is using a remote connection in offline mode.\n',)
CondaError: RuntimeError('EnforceUnusedAdapter called with url https://repo.continuum.io/pkgs/free/osx-64/patsy-0.4.1-py36_0.tar.bz2\nThis command is using a remote connection in offline mode.\n',)
$ conda -V
conda 4.3.18 Here is the debug version:
Output is here:
|
Thanks Ian. This is a new code path for triggering the EnforceUnusedAdapter that I don't think we've seen before. This is helpful.
|
@kalefranz this is killing me. I'm doing a tonne of work this week offline and I can barely use conda because of this. Planes, buses, rooftops, etc. No internet, and I am using conda 4.3.21 |
@kalefranz: I'm now on conda v4.4.0rc1 (on Linux x86_64) and I continue to get online operations when using
And the obligatory
|
OK, interesting: with the example above I selected "N" to not proceed, but then on the same system I tried a variation and had a repeat of the
|
I believe I am experiencing this same issue, or at least the same symptoms. I am trying to install a module into a conda created environment with --offline, and am getting the runtime error. I am using Conda 4.3.29. I have the standard install of Anaconda 5.0, and I added the theano package. If I create a new environment, and use "conda install --offline theano", then I get a dozen or so packages it says it will install, along with theano, and then it gives the RunTimeError on the numpy package. If I create a new environment, and use "conda install --offline anaconda", that succeeds. If I then do the offline theano install, that ALSO succeeds. Should I post the debug output, or start a new thread about this instead of posting here? Thanks. |
@robgics I believe you're seeing expected behavior. The packages that the solver decides to install need to be in the package cache, otherwise conda will go out and try to get them. The solver has no information about which packages are in the package cache and which don't. However, perhaps with the |
To clarify, what I meant was that |
@kalefranz to this point:
What other interpretation than this would make sense in the presence of the |
The distinction is that we currently use the cached, although full, repodata.json file to construct index. I'm agreeing that the logic is flawed there. In this case, we should only be constructing the index from cached packages on disk, any packages installed in the target prefix, and any channels that are located at |
I agree that --offline should mean that it does not try to go online. What I don't understand is how it doesn't work with the packages that are already installed, namely numpy. The files are all there, because if I install anaconda first and then theano, it all works (all while being disconnected physically from the internet). But if I try to install theano without anaconda first, it dies on numpy. |
The solver is probably just selecting a version of numpy that is not available locally, and so there's no choice but to try going out and getting it. The solution I outlined above will prevent the solver from even having an unavailable package as an option to choose. |
Sounds good, I look forward to it! |
Is there a relatively simple workaround in the meantime? It would help my project move forward. Thanks. |
resolve #5370 index is only prefix and cache in --offline mode
Hi there, thank you for your contribution to Conda! This issue has been automatically locked since it has not had recent activity after it was closed. Please open a new issue if needed. |
Even
conda
seems to notice that it shouldn't be doing an online operation when the--offline
flag has been specified:I'm at PyCon and am seeing this on the computer of someone I'm talking to (an Anaconda user)
The text was updated successfully, but these errors were encountered: