erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.68k stars 55 forks source link

`erg pack` and subcommands returns an error: `Error: poise is not installed` #506

Closed buster-blue closed 5 months ago

buster-blue commented 5 months ago

Describe the bug?

When I try to use erg's pack commands, it simply outputs an error message Error: poise is not installed. None of the commands do anything else, and it gives no more useful info.

Reproducible code

erg pack init

Expected result

It works, or if it doesn't work, it gives me more info on what poise is and how to install it.

Actual result

output Error: poise is not installed

Additional context

I installed it with cargo install erg --features full so it's the full-featured build

Erg version

Erg 0.6.35

Python version

Python3.11

OS

Linux (other distro)

mtshiba commented 5 months ago

Actually, erg pack is just an alias for poise. The package manager, poise is not integrated with the compiler, so it must be installed separately. You can easily install it using ergup.