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

Console script created by micromamba on Windows returns "Failed to create process" #3858

Open
3 tasks done
dhvu opened this issue Mar 10, 2025 · 0 comments
Open
3 tasks done

Comments

@dhvu
Copy link

dhvu commented Mar 10, 2025

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

micromamba windows python entrypoint console script unable to create process

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I didn't try

Describe your issue

The command

micromamba create -p .\x package_containing_python_entry_point_foo

creates a file .\x\Scripts\foo-script.py that contains

#!x\python.exe

as a shebang. This causes .\x\Scripts\foo.exe to fail with an error message Unable to create process using ....
This does not happen if the environment is specified by an absolute path (e.g. -p %userprofile%\tmp\x), or by name (e.g. -n x) in the micromamba create command line, or if package_containing_python_entry_point_foo is installed later within the activated environment with micromamba install package_containing_python_entry_point_foo.

mamba info / micromamba info

libmamba version : 2.0.5
     micromamba version : 2.0.5
           curl version : libcurl/8.8.0-DEV Schannel zlib/1.3.1
     libarchive version : libarchive 3.7.2 zlib/1.3.1 liblzma/5.6.2 bz2lib/1.0.8 liblz4/1.9.4 libzstd/1.5.6
       envs directories : D:\Users\xxx\envs
          package cache : D:\Users\xxx\pkgs
            environment : C:\Users\xxx\tmp\x (active)
           env location : C:\Users\xxx\tmp\x
      user config files : C:\Users\xxx\.mambarc
 populated config files : C:\Users\xxx\.condarc
       virtual packages : __win=10.0.17763=0
                          __archspec=1=x86_64
                          __cuda=12.0=0
               channels : https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/nodefaults/noarch
                          https://conda.anaconda.org/nodefaults/win-64
       base environment : C:\Users\xxx\AppData\Roaming\mamba
               platform : win-64

Logs

environment.yml

~/.condarc

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