<@WM13WM6JC> Hey have you ever seen this kind of e...
# ask-metaflow
c
@dry-beach-38304 Hey have you ever seen this kind of error.
Copy code
Traceback (most recent call last):
  File "/Users/mikebentleymills/micromamba/envs/valar/bin/conda-lock", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 1403, in lock
    lock_func(
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 1111, in run_lock
    make_lock_files(
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 393, in make_lock_files
    fresh_lock_content = create_lockfile_from_spec(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 836, in create_lockfile_from_spec
    deps = _solve_for_arch(
           ^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 760, in _solve_for_arch
    pip_deps = solve_pypi(
               ^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/conda_lock/pypi_solver.py", line 554, in solve_pypi
    result = s.solve(use_latest=to_update)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/conda_lock/_vendor/poetry/puzzle/solver.py", line 65, in solve
    packages, depths = self._solve(use_latest=use_latest)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikebentleymills/micromamba/envs/valar/lib/python3.11/site-packages/conda_lock/_vendor/poetry/puzzle/solver.py", line 241, in _solve
    raise SolverProblemError(e)
conda_lock._vendor.poetry.puzzle.exceptions.SolverProblemError: Because -dummy-package- depends on scikit-image (*) which doesn't exist, version solving failed.
d
what error?
ah hchecing
c
Sorry hit enter too soon
This kind of just started happening, I'm not aware of any changes I made
I'm running this
Copy code
python3 slide_to_tiff.py --environment=conda environment resolve
d
that’s weird. do you have issues with your index? It basicaly seems to say that it can’t find scikit-image
c
What index?
d
the pypi index
c
I don't know how do I tell?
d
I mean that error, if it was working before and no longer working seems to indicate that it can’t find a scikit-image thing.
c
Well if I run it again it says it can't find a different package numpy, imagecodecs etc
d
could you run with
METAFLOW_DEBUG_CONDA=1
and it will print out a TOML file for conda-lock which should include if there is an override of pypi index.
yes
that would make sense
it would seem to indicate your index is not valid
c
message has been deleted
d
you have this:
Copy code
\n<https://pypi.ngc.nvidia.com>
I hould probably strip tings but this seems invalid. It’s coming from a pip conf somewhere. I see this:
Copy code
pypi': ['\\n<https://pypi.ngc.nvidia.com>', '<https://pypi.org/simple']}]>
where are you setting this. Can you try strpping the \\n in front?
(or probably \n and escape)
c
Good catch not sure where those are coming from,
d
it’s read from pip directly
and that is read from the configs
c
Where are the configs?
It's really weird I can remove it from the config but then it seenms to come back.
d
it’s read from pip. I can try to figure out the exact place but it’s basically coming from somehwere in your env.
c
Does the extension look at the default docker image being used. That was changed from a base python3.11 to an nvidia one so that we could use the libraries
Turned out I had two pip.conf floating around. One with the nvidia index for some reason. I made them both the same and now it's happy again. Also not sure if it's related exactly but one of the pypi packages was "yanked" causing the initial issue I bet, not sure.
for anyone else finding this use
Copy code
pip config debug
To see all the config files you might have 🙂