Poetry: Command "export" is not defined.

Created on 1 Apr 2019  路  5Comments  路  Source: python-poetry/poetry

  • [X] I am on the latest Poetry version.
  • [X] I have searched the issues of this repo and believe that this is not a duplicate.
  • [ ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: macOs Sierra 10.13.6
  • Poetry version: Poetry 0.12.11

Issue


I would like to execute the command export but the command is not there.

When I execute poetry export -f requirements.txt the response is:

[CommandNotFound]
Command "export" is not defined.

When I execute poetry list I have:

Available commands:
  about          Short information about Poetry.
  add            Add a new dependency to pyproject.toml.
  build          Builds a package, as a tarball and a wheel by default.
  check          Checks the validity of the pyproject.toml file.
  config         Sets/Gets config options.
  develop        Installs the current project in development mode. (Deprecated)
  help           Displays help for a command
  init           Creates a basic pyproject.toml file in the current directory.
  install        Installs the project dependencies.
  list           Lists commands
  lock           Locks the project dependencies.
  new            Creates a new Python project at <path>
  publish        Publishes a package to a remote repository.
  remove         Removes a package from the project dependencies.
  run            Runs a command in the appropriate environment.
  script         Executes a script defined in pyproject.toml. (Deprecated)
  search         Searches for packages on remote repositories.
  shell          Spawns a shell within the virtual environment.
  show           Shows information about packages.
  update         Update dependencies as according to the pyproject.toml file.
  version        Bumps the version of the project.
 cache
  cache:clear    Clears poetry's cache.
 debug
  debug:info     Shows debug information.
  debug:resolve  Debugs dependency resolution.
 self
  self:update    Updates poetry to the latest version.

I have updated to tha latest version using the command self:update. The rest of the commands works perfectely.

Thanks for your help!!

Most helpful comment

All 5 comments

thanks @jacebrowning

Do you know when is going to be released?

No, but there's a milestone to track here: https://github.com/sdispater/poetry/milestone/1

thanks again @jacebrowning

It's dangerous to go alone! Take this:

$ export POETRY_VERSION=1.0.0a0
$ POETRY_PREVIEW=1 curl -sSL https://raw.githubusercontent.com/sdispater/poetry/develop/get-poetry.py | python
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ulope picture ulope  路  3Comments

jhrmnn picture jhrmnn  路  3Comments

kierun picture kierun  路  3Comments

Euphorbium picture Euphorbium  路  3Comments

etijskens picture etijskens  路  3Comments