Giter Site home page Giter Site logo

pants-snowpark-fail's Introduction

Resolution

Thanks to the fantastic help from the pants folks on slack, answer was to change the interpreter_constraints to have a constraint on the max version of python to <3.11... It was a stupid copy/paste/understanding failure from me. Whoops!

Slack convo at: https://pantsbuild.slack.com/archives/C046T6T9U/p1692667074554899

Original Issue

Having an issue with Pants and snowflake-snowpark-python library.

attempt to do

pants generate-lockfiles --resolve=python-default

The corresponding error is something like:

19:09:43.13 [ERROR] 1 Exception encountered:

Engine traceback:
  in `generate-lockfiles` goal

ProcessExecutionFailure: Process 'Generate lockfile for python-default' failed with exit code 1.
stdout:

stderr:
pid 75241 -> /Users/ryan.despain/.cache/pants/named_caches/pex_root/venvs/9cab1b09d92c35cb0fcb3ac5f7a2c200b8d7bd3e/a94e5c7888694eb2dbf0d3c7ec2c78ae3a95e2e0/bin/python -sE /Users/ryan.despain/.cache/pants/named_caches/pex_root/venvs/9cab1b09d92c35cb0fcb3ac5f7a2c200b8d7bd3e/a94e5c7888694eb2dbf0d3c7ec2c78ae3a95e2e0/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --isolated -q --cache-dir /Users/ryan.despain/.cache/pants/named_caches/pex_root/pip_cache --log /private/var/folders/s2/fjg_n9md6g1gchtn40bt1vzw0000gp/T/pants-sandbox-VyMhz1/.tmp/pex-pip-log.sf_hs4nn/pip.log download --dest /private/var/folders/s2/fjg_n9md6g1gchtn40bt1vzw0000gp/T/pants-sandbox-VyMhz1/.tmp/tmpmpl29m3z/Users.ryan.despain..pyenv.versions.3.10.12.bin.python3.10 snowflake-connector-python snowflake-snowpark-python --index-url https://pypi.org/simple/ --retries 5 --timeout 15 exited with 1 and STDERR:
ERROR: Could not find a version that satisfies the requirement snowflake-snowpark-python
ERROR: No matching distribution found for snowflake-snowpark-python

Which is odd because that library does exist. I've tried a few things. Take the command from the stderr above and run it:

/Users/ryan.despain/.cache/pants/named_caches/pex_root/venvs/9cab1b09d92c35cb0fcb3ac5f7a2c200b8d7bd3e/a94e5c7888694eb2dbf0d3c7ec2c78ae3a95e2e0/bin/python -sE /Users/ryan.despain/.cache/pants/named_caches/pex_root/venvs/9cab1b09d92c35cb0fcb3ac5f7a2c200b8d7bd3e/a94e5c7888694eb2dbf0d3c7ec2c78ae3a95e2e0/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --isolated -q --cache-dir /Users/ryan.despain/.cache/pants/named_caches/pex_root/pip_cache --log /private/var/folders/s2/fjg_n9md6g1gchtn40bt1vzw0000gp/T/pants-sandbox-VyMhz1/.tmp/pex-pip-log.sf_hs4nn/pip.log download --dest /private/var/folders/s2/fjg_n9md6g1gchtn40bt1vzw0000gp/T/pants-sandbox-VyMhz1/.tmp/tmpmpl29m3z/Users.ryan.despain..pyenv.versions.3.10.12.bin.python3.10 snowflake-connector-python snowflake-snowpark-python --index-url https://pypi.org/simple/ --retries 5 --timeout 15

That command seems to install and work just fine.

Another variant is to change the 3rdparty/python/requirements.txt to have just one thing, like rich or something. Then generate lockfiles, then pants export, then activate that exported env. When that is done, then try a pip install snowflake-snowpark-python and that works, as expected.

Not certain what I'm missing here. snowflake-snowpark-python is the first/only lib i've encountered that has a problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.