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.

`poetry new` refuses to run on an existing dir - no way to override according to help options.

See original GitHub issue
  • [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.

Issue

I was just trying to start a new project. I created a git repo, then ran “poetry new --src .” and it failed as follows:

[RuntimeError]                                        
Destination /.../myproject exists and is not empty

Caution in a tool of this nature is well warranted, but allowing me to say “I know, I don’t care, just do it” should also be an option.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
brycedrennancommented, Oct 15, 2019

@jdemilledt is correct.

poetry new is for creating a new project. It creates a folder (and thus can’t create one if you pass it an existing folder). So proper use is poetry new non-existing-folder

For an exising folder use poetry init

2reactions
jdemilledtcommented, Oct 15, 2019

I’m not the developer, so I can’t fully answer your question, but I think the new command exists for people who don’t already have an existing project structure.

On Mon, Oct 14, 2019 at 5:42 PM Curtis Maloney notifications@github.com wrote:

In that case, why have it at all? Is it not a pointless, confusing duplicate of init?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sdispater/poetry/issues/1422?email_source=notifications&email_token=AG6L6WL2HTPPJNOLWWBZO7LQOTRTZA5CNFSM4I3U4GU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBGVIZY#issuecomment-541938791, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG6L6WLCKN5Y7MRAUVHQU4LQOTRTZANCNFSM4I3U4GUQ .

– Julian DeMille

CEO, demilleTech, LLC.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`poetry new` refuses to run on an existing dir - no way ... - GitHub
Issue I was just trying to start a new project. ... poetry new refuses to run on an existing dir - no way...
Read more >
Commands | Documentation | Poetry - Python dependency ...
This command will help you kickstart your new Python project by creating a directory structure suitable for most projects. poetry new my-package. will...
Read more >
python - How to update Poetry's lock file without upgrading ...
There is a specific option for the lock command: poetry lock --no-update. This makes it possible to remove a dependency from pyproject.toml ...
Read more >
pytest fixtures: explicit, modular, scalable
fixtures are implemented in a modular manner, as each fixture name triggers a fixture function which can itself use other fixtures. fixture management...
Read more >
MacPorts Guide
Always make sure to install the latest available version of Xcode for your macOS ... Run port help search for an exhaustive list...
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