Traceback (most recent call last):


 "/Users/albert/Projects/pip-tools/.venv/bin/pip-compile", line 33, in <module>

sys.exit(load_entry_point('pip-tools', 'console_scripts', 'pip-compile')())


 "/Users/albert/Projects/pip-tools/.venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "/Users/albert/Projects/pip-tools/.venv/lib/python3.8/site-packages/click/core.py", line 782, in main

rv = self.invoke(ctx)


 "/Users/albert/Projects/pip-tools/.venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/Users/albert/Projects/pip-tools/.venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/Users/albert/Projects/pip-tools/.venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func

return f(get_current_context(), *args, **kwargs)


 "/Users/albert/Projects/pip-tools/piptools/scripts/compile.py", line 361, in cli

[


 "/Users/albert/Projects/pip-tools/piptools/scripts/compile.py", line 362, in <listcomp>

install_req_from_req_string(req, comes_from=comes_from)


 "/Users/albert/Projects/pip-tools/.venv/lib/python3.8/site-packages/pip/_internal/req/constructors.py", line 422, in install_req_from_req_string

if (req.url and comes_from and comes_from.link and
AttributeError: 'str' object has no attribute 'link'

Traceback (most recent call last):


 "ref_cte.py", line 28, in <module>

test_pg_example_one()


 "ref_cte.py", line 23, in test_pg_example_one

c = stmt.compile(dialect=dialect)


 "<string>", line 1, in <lambda>


 "/Users/xtof/Documents/Dev/Python/bug-sa/venv/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 468, in compile

return self._compiler(dialect, bind=bind, **kw)


 "/Users/xtof/Documents/Dev/Python/bug-sa/venv/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 474, in _compiler

return dialect.statement_compiler(dialect, self, **kw)


 "/Users/xtof/Documents/Dev/Python/bug-sa/venv/lib/python3.7/site-packages/sqlalchemy/sql/compiler.py", line 593, in __init__

) and statement._returning:
AttributeError: 'Select' object has no attribute '_returning'
