Skip to content
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

Local build and CI outside of this repo fails #661

Closed
andeplane opened this issue Dec 7, 2023 · 2 comments · Fixed by #665
Closed

Local build and CI outside of this repo fails #661

andeplane opened this issue Dec 7, 2023 · 2 comments · Fixed by #665

Comments

@andeplane
Copy link
Contributor

andeplane commented Dec 7, 2023

See #660

When I try to clone the repository and build locally it fails with package inconsistencies. I also see the same in CI elsewhere (but in the above PR it works).

If I do

git clone https://github.com/whitphx/stlite
cd stlite
make init
make mountable

I get

INFO: pip is looking at multiple versions of streamlit[snowflake] to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install streamlit[snowflake]==1.24.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    streamlit[snowflake] 1.24.0 depends on pillow<10 and >=6.2.0
    The user requested (constraint) pillow==10.1.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
make[2]: *** [python-init] Error 1
make[1]: *** [python-init-dev-only] Error 2
make: *** [streamlit/frontend/src/lib/proto.d.ts] Error 2

Am I missing something here?

@andeplane
Copy link
Contributor Author

I see that the 10.1.0 comes from https://github.com/streamlit/streamlit/blob/constraints-develop/constraints-3.11.txt#L68 which is used in Streamlit Makefile. So that constraint is problematic as the packages are updated and not matched with the version specified here.

Not sure why you don't see this in your CI?

@andeplane
Copy link
Contributor Author

I see it is because of this https://github.com/whitphx/stlite/blob/main/.github/workflows/gh-pages.yml#L16
It should likely be an environment variable set also in https://github.com/whitphx/stlite/blob/main/DEVELOPMENT.md

I'll check and make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant