poet
poet copied to clipboard
Attribute Error on poet init
The whole interactive session:
poet init
Welcome to the Poet config generator
This command will guide you through creating your poetry.toml config.
Package name [repo]: ***
Version [0.1.0]:
Description []: ***
Author [***, n to skip]:
License []: MIT
Would you like to define your dependencies (require) interactively? (yes/no) [yes] yes
Search for a package:
Would you like to define your dev dependencies (require-dev) interactively (yes/no) [yes] yes
Search for a package: mypy
Found 19 packages matching mypy
Enter package # to add, or the complete package name if it is not listed:
[ 0] flake8-mypy
[ 1] mypy-lang
[ 2] pytest-mypy
[ 3] mypy
[ 4] mypy_extensions
[ 5] MypyBear
[ 6] mypyHook
[ 7] MyPyML
[ 8] mypypi
[ 9] mypypilxp
[10] mypypiproject
[11] mypypitest
[12] MyPyPiTut
[13] mypytest
[14] mypython
[15] mypython02
[16] mypython2
[17] wymypy-ng
[18] wymypy
> 3
Enter the version constraint to require (or leave blank to use the latest version):
[AttributeError]
__exit__
I have no more information about the error.
Ubuntu 16.04, virtualenv with Python 3.4
Could you execute the command again with the -v/--verbose
option to get the full stack trace to see exactly where it is raised?
Here you are:
Exception trace:
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/cleo/application.py in run() at line 95
status_code = self.do_run(input_, output_)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/cleo/application.py in do_run() at line 188
status_code = command.run(input_, output_)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/cleo/commands/command.py in run() at line 99
return super(Command, self).run(i, o)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/cleo/commands/base_command.py in run() at line 146
status_code = self.execute(input_, output_)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/poet/console/commands/index_command.py in execute() at line 28
super(IndexCommand, self).execute(i, o)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/poet/console/commands/command.py in execute() at line 63
return super(Command, self).execute(i, o)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/cleo/commands/command.py in execute() at line 108
return self.handle()
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/poet/console/commands/init.py in handle() at line 154
self._determine_requirements(self.option('dev-dependency'))
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/poet/console/commands/init.py in _determine_requirements() at line 258
constraint = self._find_best_version_for_package(package)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/poet/console/commands/init.py in _find_best_version_for_package() at line 294
package = selector.find_best_candidate(package)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/poet/version_selector.py in find_best_candidate() at line 19
candidates = self._repository.find_packages(package_name, constraint)
/home/user/.local/share/virtualenvs/dyspatch/lib/python3.4/site-packages/poet/repositories/pypi_repository.py in find_packages() at line 34
with ServerProxy(self._url) as client:
init [-i|--index INDEX] [--name NAME] [--description DESCRIPTION] [--author AUTHOR] [--dependency DEPENDENCY] [--dev-dependency DEV-DEPENDENCY] [-l|--license LICENSE] [--] [<template>]