question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dask-gateway-server-jobqueue executable broken in conda-forge package 0.9.0

See original GitHub issue

What happened:

root@acd2b2d7acc2:/# dask-gateway-jobqueue-launcher 
Traceback (most recent call last):
  File "/usr/local/envs/asdf/bin/dask-gateway-jobqueue-launcher", line 7, in <module>
    from dask_gateway_server.managers.jobqueue.launcher import main
ModuleNotFoundError: No module named 'dask_gateway_server.managers'

root@acd2b2d7acc2:/# cat /usr/local/envs/asdf/bin/dask-gateway-jobqueue-launcher
#!/usr/local/envs/asdf/bin/python

# -*- coding: utf-8 -*-
import re
import sys

from dask_gateway_server.managers.jobqueue.launcher import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

For some reason the execuable has an old module name dask_gateway_server.managers.jobqueue.launcher

Minimal Complete Verifiable Example:

docker run -it conda/miniconda3 /bin/bash
conda create -n asdf -c conda-forge dask-gateway-server-jobqueue==0.9.0
conda activate asdf
dask-gateway-jobqueue-launcher

I’ve checked and a pip install works as expected.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jcristcommented, May 5, 2022

This has since been fixed in the upstream conda recipe. Closing.

0reactions
martindurantcommented, Feb 2, 2022

If the code dask_gateway_server.managers isn’t anywhere in this repo now, then it must be the remnant of a previous install. Pip should be able to purge previous executable script stubs, but you never know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conda is broken after update. No module named ... - GitHub
After running conda update conda-build conda became unfunctional: Every ... It broke while trying to update the python-libarchive package.
Read more >
conda-forge | community driven packaging for conda
A community-led collection of recipes, build infrastructure and distributions for the conda package manager. About conda-forge. conda-forge is a GitHub ...
Read more >
Troubleshooting — conda 22.11.1.post16+ce4e810c9 ...
Try moving the DLL files alongside the .exe of the software that broke. ... If you get your Python package from somewhere else...
Read more >
MNE, Spyder, and CUPY - Support & Discussions
mamba install --strict-channel-priority --channel=conda-forge spyder-kernels=2.3. I receive the following error: “package ...
Read more >
Pytest Executable - :: Anaconda.org
To install this package run one of the following: conda install -c conda-forge pytest-executable conda install -c "conda-forge/label/broken" pytest- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found