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 add mojimoji fails

See original GitHub issue
  • I am on the latest Poetry version.

  • 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:

Mac OS X 10.14.6

  • Poetry version:

0.12.17

  • Link of a Gist with the contents of your pyproject.toml file:

https://gist.github.com/tamuhey/a2f03a72a4cb9b6e5b8b6cfd3c72a0fe

Issue

command:

$ poetry add mojimoji -vvv

fails. The error shown:

Using virtualenv: /Users/my_name/work/foo/.venv
PyPI: 9 packages found for mojimoji *
Using version ^0.0.9 for mojimoji

Updating dependencies
Resolving dependencies...
   1: fact: foo is 0.1.0
   1: derived: foo
   1: fact: foo depends on mojimoji (^0.0.9)
   1: selecting foo (0.1.0)
   1: derived: mojimoji (^0.0.9)
PyPI: 1 packages found for mojimoji >=0.0.9,<0.0.10
   1: selecting mojimoji (0.0.9)
   1: Version solving took 0.008 seconds.
   1: Tried 1 solutions.


Package operations: 1 install, 0 updates, 0 removals

  - Installing mojimoji (0.0.9)
                                                                                                                                                                  
[EnvCommandError]                                                                                                                                  
Command ['/Users/my_name/work/foo/.venv/bin/python', '-m', 'pip', 'install', '--no-deps', 'mojimoji==0.0.9'] errored with the following return code 1, and output:           
Collecting mojimoji==0.0.9                                                                                                                                      
  Could not find a version that satisfies the requirement mojimoji==0.0.9 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9.post0)  
No matching distribution found for mojimoji==0.0.9                                                                                                              
You are using pip version 19.0.3, however version 19.2.3 is available.                                                                                          
You should consider upgrading via the 'pip install --upgrade pip' command.                                                                                      
                                                                                                                                                                  
Exception trace:
 /Users/my_name/.poetry/lib/poetry/_vendor/py3.7/cleo/application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 /Users/my_name/.poetry/lib/poetry/console/application.py in do_run() at line 88
   return super(Application, self).do_run(i, o)
 /Users/my_name/.poetry/lib/poetry/_vendor/py3.7/cleo/application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 /Users/my_name/.poetry/lib/poetry/console/commands/command.py in run() at line 77
   return super(BaseCommand, self).run(i, o)
 /Users/my_name/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/base_command.py in run() at line 146
   status_code = self.execute(input_, output_)
 /Users/my_name/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/command.py in execute() at line 107
   return self.handle()
 /Users/my_name/.poetry/lib/poetry/console/commands/add.py in handle() at line 139
   status = installer.run()
 /Users/my_name/.poetry/lib/poetry/installation/installer.py in run() at line 73
   self._do_install(local_repo)
 /Users/my_name/.poetry/lib/poetry/installation/installer.py in _do_install() at line 290
   self._execute(op)
 /Users/my_name/.poetry/lib/poetry/installation/installer.py in _execute() at line 306
   getattr(self, "_execute_{}".format(method))(operation)
 /Users/my_name/.poetry/lib/poetry/installation/installer.py in _execute_install() at line 331
   self._installer.install(operation.package)
 /Users/my_name/.poetry/lib/poetry/installation/pip_installer.py in install() at line 91
   self.run(*args)
 /Users/my_name/.poetry/lib/poetry/installation/pip_installer.py in run() at line 112
   return self._env.run("python", "-m", "pip", *args, **kwargs)
 /Users/my_name/.poetry/lib/poetry/utils/env.py in run() at line 539
   return super(VirtualEnv, self).run(bin, *args, **kwargs)
 /Users/my_name/.poetry/lib/poetry/utils/env.py in run() at line 388
   raise EnvCommandError(e, input=input_)

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Secruscommented, May 23, 2022

There is no problem installing mojimoji in the current master version of Poetry.

1reaction
Jamimcommented, Oct 9, 2019

So do you think this is a glitch in Poetry’s constraint checking mechanism?

It seems so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

poetry add mojimoji fails · Issue #1447 - GitHub
command: $ poetry add mojimoji -vvv. fails. The error shown: ... and 0.0.9 are not equal for pip, so the package fails to...
Read more >
How can Python Poetry be forced to use a certain setuptools ...
If I add pyhash as a dependency, I get a build error: error in pyhash setup command: use_2to3 is invalid . This is...
Read more >
Commands | Documentation | Poetry - Python dependency ...
The install command reads the pyproject.toml file from the current project, ... If you try to add a package that is already present,...
Read more >
Configure a Poetry environment | PyCharm Documentation
Configure a Poetry environment · On macOS and Windows, the installation script will suggest adding the folder with the poetry executable to the...
Read more >
Poetry: Dependency Management for Python - PyPI
And finally, Poetry's code is only compatible with Python 3.6+ but it can manage Python project's with previous versions without any problem. Installation....
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