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

issues during setup that I resolved but documenting here #1

Open
Francisco-RP opened this issue Mar 27, 2024 · 5 comments
Open

issues during setup that I resolved but documenting here #1

Francisco-RP opened this issue Mar 27, 2024 · 5 comments

Comments

@Francisco-RP
Copy link

Francisco-RP commented Mar 27, 2024

I had some issues on my mac during the setup process that I wanted to list out here. Probably should put in PR instead of an issue but don't have time

Note: This was the first time I ever used Python on my work laptop

Rye

Don't install rye via homebrew, I did and it skipped a few important steps. Install it using the official guide on the website: https://rye-up.com/

Allow it to install Python for you and don't forget to "Add Shims to Path": https://rye-up.com/guide/installation/#add-shims-to-path
The install script will prompt you to do it for you, but I said no and did it myself.

Ryn Sync Cert failure

running rye sync got me a Cert issue caused by our Zscaler cert.

Screenshot 2024-03-27 at 12 08 30 PM

easy fix that I found in our product handbook

I added these variables to my bash/zsh profile (for me it's .bashrc)

# needed for Pip (python) to work
# https://help.zscaler.com/zia/adding-custom-certificate-application-specific-trust-store
export CERT_PATH=/etc/ssl/certs/ca-zscaler-plus-all.pem
export CERT_DIR=/etc/ssl/certs/
export SSL_CERT_FILE=${CERT_PATH} 
export SSL_CERT_DIR=${CERT_DIR}
export REQUESTS_CA_BUNDLE=${CERT_PATH} 

Ollama

I installed this via Homebrew, and then I had to start the service using brew services start ollama

This command didn't work for me at first

$ ollama run llama2

But it worked after I ran ollama serve for some reason. See screenshots below

Screenshot 2024-03-27 at 1 19 32 PM
Screenshot 2024-03-27 at 1 20 01 PM

@4j4yk
Copy link

4j4yk commented Mar 27, 2024

After brew install, did it ask for initial config like below ? which sets the initial config for rye in ~/.rye

Welcome to Rye!

Rye has detected that it's not installed on this computer yet and
automatically started the installer for you. For more information
read https://rye-up.com/guide/installation/

This installer will install rye to /Users/ajaykhampariya/.rye
This path can be changed by exporting the RYE_HOME environment variable.

Details:
  Rye Version: 0.31.0
  Platform: macos (aarch64)

✔ Continue? · yes
✔ Select the preferred package installer · uv (fast, recommended)
✔ What should running `python` or `python3` do when you are not inside a Rye managed project? · Run a Python installed and managed by Rye
✔ Which version of Python should be used as default toolchain? · cpython@3.12
Installed binary to /Users/ajaykhampariya/.rye/shims/rye
Bootstrapping rye internals
Downloading cpython@3.12.2
Checking checksum
Unpacking
Downloaded cpython@3.12.2
Updated self-python installation at /Users/ajaykhampariya/.rye/self

The rye directory /Users/ajaykhampariya/.rye/shims was not detected on PATH.
It is highly recommended that you add it.
Added to PATH.
note: for this to take effect you will need to restart your shell or run this manually:

    source "$HOME/.rye/env"

To make it work with zsh, you might need to add this to your .zprofile:

    source "$HOME/.rye/env"

For more information read https://rye-up.com/guide/installation/

All done!

and later rye sync will work as expected.

@Francisco-RP
Copy link
Author

It didn't ask all of those things after installing from brew, only using the bash script that the official website provided did all of that. So I just did that instead. (uninstalling the one from brew first)

@andyjv
Copy link

andyjv commented Mar 27, 2024

I was able to install rye using brew, but I don't remember it asking questions (it may have, I just don't remember). I do remember having to close terminal and VScode, removing the created virtual environment (/.venv/), and re-running rye sync to get it to work correctly, though.

@Francisco-RP
Copy link
Author

I used rye sync -f to force re-create the virtualenv

@4j4yk
Copy link

4j4yk commented Mar 28, 2024

I think the first time you just type rye and it asks all those questions; if you remove ~/.rye and just type rye, it will ask those questions.

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

No branches or pull requests

3 participants