InvalidRequirement when installing apache airflow with gcp_api extra
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 (
-vvvoption).
Poetry
Version: 1.0.0a2
Python: 3.6.6
Virtualenv
Python: 3.6.6
Implementation: CPython
Path: /Users/benjamin/.pyenv/versions/3.6.6/envs/poetry
Valid: True
System
Platform: darwin
OS: posix
Python: /Users/benjamin/.pyenv/versions/3.6.6
Issue
# On a clean virtualenv
$ poetry add apache-airflow --extras gcp_api -v
Using virtualenv: /Users/benjamin/.pyenv/versions/3.6.6/envs/poetry
Using version ^1.10 for apache-airflow
Updating dependencies
Resolving dependencies... (1.3s)
[InvalidRequirement]
Invalid requirement, parse error at "'; <empty'"
Traceback (most recent call last):
File "/Users/benjamin/.poetry/lib/poetry/_vendor/py3.6/clikit/console_application.py", line 131, in run
status_code = command.handle(parsed_args, io)
File "/Users/benjamin/.poetry/lib/poetry/_vendor/py3.6/clikit/api/command/command.py", line 112, in handle
status_code = self._do_handle(args, io)
File "/Users/benjamin/.poetry/lib/poetry/_vendor/py3.6/clikit/api/command/command.py", line 160, in _do_handle
return getattr(handler, handler_method)(args, io, self)
File "/Users/benjamin/.poetry/lib/poetry/_vendor/py3.6/cleo/commands/command.py", line 92, in wrap_handle
return self.handle()
File "/Users/benjamin/.poetry/lib/poetry/console/commands/add.py", line 135, in handle
status = installer.run()
File "/Users/benjamin/.poetry/lib/poetry/installation/installer.py", line 74, in run
self._do_install(local_repo)
File "/Users/benjamin/.poetry/lib/poetry/installation/installer.py", line 214, in _do_install
ops = solver.solve(use_latest=whitelist)
File "/Users/benjamin/.poetry/lib/poetry/puzzle/solver.py", line 38, in solve
packages, depths = self._solve(use_latest=use_latest)
File "/Users/benjamin/.poetry/lib/poetry/puzzle/solver.py", line 171, in _solve
self._package, self._provider, locked=locked, use_latest=use_latest
File "/Users/benjamin/.poetry/lib/poetry/mixology/__init__.py", line 7, in resolve_version
return solver.solve()
File "/Users/benjamin/.poetry/lib/poetry/mixology/version_solver.py", line 79, in solve
next = self._choose_package_version()
File "/Users/benjamin/.poetry/lib/poetry/mixology/version_solver.py", line 380, in _choose_package_version
for incompatibility in self._provider.incompatibilities_for(version):
File "/Users/benjamin/.poetry/lib/poetry/puzzle/provider.py", line 435, in incompatibilities_for
for dep in dependencies
File "/Users/benjamin/.poetry/lib/poetry/puzzle/provider.py", line 435, in <listcomp>
for dep in dependencies
File "/Users/benjamin/.poetry/lib/poetry/packages/package.py", line 346, in to_dependency
return dependency_from_pep_508(name)
File "/Users/benjamin/.poetry/lib/poetry/packages/__init__.py", line 34, in dependency_from_pep_508
req = Requirement(name)
File "/Users/benjamin/.poetry/lib/poetry/version/requirements.py", line 202, in __init__
requirement_string[e.loc : e.loc + 8]
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:19 (7 by maintainers)
Top Results From Across the Web
Installation — Airflow Documentation - Apache Airflow
Extra Packages¶. The apache-airflow PyPI basic package only installs what's needed to get started. Subpackages can be installed depending on what will be ......
Read more >apache-airflow-providers-google Documentation
You need to install the specified provider packages in order to use them. You can install such cross-provider dependencies when installing from PyPI....
Read more >Installation — Airflow Documentation
subpackage install command enables
all pip install 'apache‑airflow' All Airflow features known to man
all_dbs pip install 'apache‑airflow' All databases integrations
async pip install 'apache‑airflow' Async...
Read more >Installation from PyPI - Apache Airflow
Installing Airflow with extras and providers¶. If you need to install extra dependencies of Airflow, you can use the script below to make...
Read more >Installation — Airflow Documentation - Apache Airflow
Airflow requires additional Dependencies to be installed - which can be done via extras and providers. When you install Airflow, you need to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Still an issue, both under 0.12.17 and 1.0.0a4
@sdispater would you mind reopening this issue as it does not seem to be fixed?