0 votes
1 view
Hi! I'm working on an ANTARES filter and am installing a package that requires celerite and jplephem. I tried just conda installing celerite in a terminal, but I got the below error. Is there some preferred way to install packages on datalab?
 

WARNING conda.exception_handler:print_unexpected_error_report(167): KeyError('active_prefix_name')

Traceback (most recent call last):

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/exception_handler.py", line 17, in __call__

    return func(*args, **kwargs)

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/main.py", line 83, in main_subshell

    exit_code = do_call(args, parser)

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 199, in do_call

    result = getattr(module, func_name)(args, parser)

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/notices/core.py", line 131, in wrapper

    return func(*args, **kwargs)

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/main_install.py", line 140, in execute

    return install(args, parser, "install")

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/install.py", line 372, in install

    unlink_link_transaction = solver.solve_for_transaction(

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 148, in solve_for_transaction

    unlink_precs, link_precs = self.solve_for_diff(

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 217, in solve_for_diff

    final_precs = self.solve_final_state(

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 144, in solve_final_state

    in_state = SolverInputState(

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda_libmamba_solver/state.py", line 186, in __init__

    _supplement_index_with_system(virtual)

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/core/index.py", line 172, in _supplement_index_with_system

    for package in context.plugin_manager.get_virtual_packages():

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/manager.py", line 346, in get_virtual_packages

    return tuple(self.get_hook_results("virtual_packages"))

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/manager.py", line 212, in get_hook_results

    plugins = [item for items in hook() for item in items]

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/manager.py", line 212, in <listcomp>

    plugins = [item for items in hook() for item in items]

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 65, in conda_virtual_packages

    cuda_version = cached_cuda_version()

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 60, in cached_cuda_version

    return cuda_version()

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 35, in cuda_version

    queue = context.SimpleQueue()

  File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/context.py", line 113, in SimpleQueue

    return SimpleQueue(ctx=self.get_context())

  File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/queues.py", line 341, in __init__

    self._rlock = ctx.Lock()

  File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/context.py", line 68, in Lock

    return Lock(ctx=self.get_context())

  File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/synchronize.py", line 162, in __init__

    SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)

  File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/synchronize.py", line 57, in __init__

    sl = self._semlock = _multiprocessing.SemLock(

FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/exception_handler.py", line 164, in print_unexpected_error_report

    get_main_info_str(error_report["conda_info"])

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/main_info.py", line 398, in get_main_info_str

    return "\n".join(("", *(f"{key:>23} : {value}" for key, value in builder()), ""))

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/main_info.py", line 398, in <genexpr>

    return "\n".join(("", *(f"{key:>23} : {value}" for key, value in builder()), ""))

  File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/main_info.py", line 358, in builder

    if info_dict["active_prefix_name"]:

KeyError: 'active_prefix_name'

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/exception_handler.py", line 17, in __call__

        return func(*args, **kwargs)

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/main.py", line 83, in main_subshell

        exit_code = do_call(args, parser)

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 199, in do_call

        result = getattr(module, func_name)(args, parser)

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/notices/core.py", line 131, in wrapper

        return func(*args, **kwargs)

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/main_install.py", line 140, in execute

        return install(args, parser, "install")

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/cli/install.py", line 372, in install

        unlink_link_transaction = solver.solve_for_transaction(

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 148, in solve_for_transaction

        unlink_precs, link_precs = self.solve_for_diff(

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/core/solve.py", line 217, in solve_for_diff

        final_precs = self.solve_final_state(

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 144, in solve_final_state

        in_state = SolverInputState(

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda_libmamba_solver/state.py", line 186, in __init__

        _supplement_index_with_system(virtual)

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/core/index.py", line 172, in _supplement_index_with_system

        for package in context.plugin_manager.get_virtual_packages():

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/manager.py", line 346, in get_virtual_packages

        return tuple(self.get_hook_results("virtual_packages"))

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/manager.py", line 212, in get_hook_results

        plugins = [item for items in hook() for item in items]

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/manager.py", line 212, in <listcomp>

        plugins = [item for items in hook() for item in items]

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 65, in conda_virtual_packages

        cuda_version = cached_cuda_version()

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 60, in cached_cuda_version

        return cuda_version()

      File "/data0/sw/anaconda3/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 35, in cuda_version

        queue = context.SimpleQueue()

      File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/context.py", line 113, in SimpleQueue

        return SimpleQueue(ctx=self.get_context())

      File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/queues.py", line 341, in __init__

        self._rlock = ctx.Lock()

      File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/context.py", line 68, in Lock

        return Lock(ctx=self.get_context())

      File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/synchronize.py", line 162, in __init__

        SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)

      File "/data0/sw/anaconda3/lib/python3.10/multiprocessing/synchronize.py", line 57, in __init__

        sl = self._semlock = _multiprocessing.SemLock(

    FileNotFoundError: [Errno 2] No such file or directory

`$ /data0/sw/anaconda3/bin/conda install celerite`

  environment variables:

conda info could not be constructed.

KeyError('active_prefix_name')

An unexpected error has occurred. Conda has prepared the above report.

If you suspect this error is being caused by a malfunctioning plugin,

consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on

the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

If submitted, this report will be used by core maintainers to improve

future releases of conda.

Would you like conda to send this report to the core maintainers? [y/N]: n

No report sent. To permanently opt-out, use

    $ conda config --set report_errors false
ago by nsabrams (140 points) | 1 view

1 Answer

0 votes
Hi,

we do not support user-created conda environments and installs. You can try `pip install package`, that goes into the user dir.

I see also cuda in the warnings. Note that we do not support GPUs at this time. Using the CPU for GPU-like workflows will likely be very inefficient, and we may be forced to kill such workflows, if they consume too many resources.
ago by robertdemo (9.3k points)

498 questions

505 answers

497 comments

679 users

Welcome to Data Lab Help Desk, where you can ask questions and receive answers from other members of the community.

Categories