Skip to content

Attribute error if python="^3.5" but not with python="*" in 0.9.0.a2 #84

@jgirardet

Description

@jgirardet

clean new project, tested under python 3.5, 3.6 and poetry 0.9.0.a2

poetry add isort produce the following error message if python version is specified but it's ok if python="*"

I only have the issue with isort

[AttributeError]              
'NoneType' object has no attribute 'name'  
                                             
Exception trace:
 /usr/lib/python3.6/site-packages/poetry/_vendor/cleo/application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 /usr/lib/python3.6/site-packages/poetry/console/application.py in do_run() at line 84
   return super(Application, self).do_run(i, o)
 /usr/lib/python3.6/site-packages/poetry/_vendor/cleo/application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 /usr/lib/python3.6/site-packages/poetry/console/commands/command.py in run() at line 77
   return super(BaseCommand, self).run(i, o)
 /usr/lib/python3.6/site-packages/poetry/_vendor/cleo/commands/base_command.py in run() at line 146
   status_code = self.execute(input_, output_)
 /usr/lib/python3.6/site-packages/poetry/_vendor/cleo/commands/command.py in execute() at line 107
   return self.handle()
 /usr/lib/python3.6/site-packages/poetry/console/commands/add.py in handle() at line 129
   status = installer.run()
 /usr/lib/python3.6/site-packages/poetry/installation/installer.py in run() at line 73
   self._do_install(local_repo)
 /usr/lib/python3.6/site-packages/poetry/installation/installer.py in _do_install() at line 171
   ops = solver.solve(request, fixed=fixed)
 /usr/lib/python3.6/site-packages/poetry/puzzle/solver.py in solve() at line 48
   vertex, requested
 /usr/lib/python3.6/site-packages/poetry/puzzle/solver.py in _get_tags_for_vertex() at line 142
   if req.name == vertex.payload.name:

add [-D|--dev] [--git GIT] [--path PATH] [--optional] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions