Skip to content

Cannot install pybiquery for Python 3.10 #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
munro opened this issue Feb 24, 2022 · 2 comments
Closed

Cannot install pybiquery for Python 3.10 #417

munro opened this issue Feb 24, 2022 · 2 comments
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. type: question Request for information or clarification. Not an issue.

Comments

@munro
Copy link

munro commented Feb 24, 2022

When I try to add pybigquery to my Python 3.10 project, I'm getting an error about it not supporting Python 3.10 😢

Even though I see support was added #374 !

poetry add pybigquery
Using version ^0.10.2 for pybigquery

Updating dependencies
Resolving dependencies... (0.0s)

  SolverProblemError

  The current project's Python requirement (>=3.10,<4.0) is not compatible with some of the required packages Python requirement:
    - pybigquery requires Python >=3.6, <3.10, so it will not be satisfied for Python >=3.10,<4.0
  
  Because pybigquery (0.10.2) requires Python >=3.6, <3.10
   and no versions of pybigquery match >0.10.2,<0.11.0, pybigquery is forbidden.
  So, because kw-kitchen-sink depends on pybigquery (^0.10.2), version solving failed.

  at /usr/local/Cellar/poetry/1.1.12/libexec/lib/python3.10/site-packages/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│ 
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
    
    For pybigquery, a possible solution would be to set the `python` property to "<empty>"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. label Feb 24, 2022
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Feb 25, 2022
@tswast tswast added type: question Request for information or clarification. Not an issue. and removed triage me I really want to be triaged. labels Feb 28, 2022
@tswast
Copy link
Collaborator

tswast commented Feb 28, 2022

@munro Thanks for the report. Unfortunately, while prepping for a 1.0 release, we realized the package name pybigquery was making it difficult to run the core SQLAlchemy compliance tests. As such, this package is now distributed as sqlalchemy-bigquery. For most users, it should be API-compatible.

@tswast tswast self-assigned this Feb 28, 2022
@tswast
Copy link
Collaborator

tswast commented Feb 28, 2022

I'm closing this as "working as intended", but please do let us know if you encounter issues migrating to sqlalchemy-bigquery.

@tswast tswast closed this as completed Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants