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

Fail with empty lines in text spec file #2372

Closed
2 tasks done
Nodd opened this issue Mar 11, 2023 · 0 comments · Fixed by #2812
Closed
2 tasks done

Fail with empty lines in text spec file #2372

Nodd opened this issue Mar 11, 2023 · 0 comments · Fixed by #2812
Labels
type::bug Something isn't working

Comments

@Nodd
Copy link

Nodd commented Mar 11, 2023

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Search tried in issue tracker

empty lines, text spec files

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not reproducible with Conda

Describe your issue

When installing from a text spec file, if there are empty lines in the file micromamba returns an error: critical libmamba Invalid spec, no package name found:
I use this command : micromamba create -v --name tototo --channel conda-forge --override-channels --file requirement.txt

For example, if requirement.txt has one of these contents, I get the error:

numpy

matplotlib
numpy
matplotlib

But these work:

numpy
matplotlib
numpy
#
matplotlib

mamba info / micromamba info

environment : None (not found)
           env location : -
      user config files : /stck/jmartino/.mambarc
 populated config files :
       libmamba version : 1.3.1
     micromamba version : 1.3.1
           curl version : libcurl/7.87.0 OpenSSL/3.0.8 zlib/1.2.13 libssh2/1.10.0 nghttp2/1.47.0
     libarchive version : libarchive 3.6.2 zlib/1.2.13 bz2lib/1.0.8 libzstd/1.5.2
       virtual packages : __unix=0=0
                          __linux=4.18.0=0
                          __glibc=2.28=0
                          __archspec=1=x86_64
               channels :
       base environment : /stck/jmartino/micromamba
               platform : linux-64

Logs

$ micromamba create -v --name tototo --channel conda-forge --override-channels --file test.txt

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

warning  libmamba 'root_prefix' set with default value: /stck/jmartino/micromamba
info     libmamba You have not set the 'root_prefix' environment variable.
    To permanently modify the root prefix location, either:
    - set the 'MAMBA_ROOT_PREFIX' environment variable
    - use the '-r,--root-prefix' CLI option
    - use 'micromamba shell init ...' to initialize your shell
        (then restart or source the contents of the shell init script)
info     libmamba Parsing MatchSpec numpy
info     libmamba Parsing MatchSpec matplotlib
info     libmamba Parsing MatchSpec
critical libmamba Invalid spec, no package name found:

environment.yml

No response

~/.condarc

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants