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

Check if curl and unzip are installed, fix #383 #386

Merged
merged 11 commits into from Jan 30, 2023
Merged

Check if curl and unzip are installed, fix #383 #386

merged 11 commits into from Jan 30, 2023

Conversation

HellAmbro
Copy link
Contributor

As @brianmcconnel noted, Pynecone initialization may fail if curl and unzip are not installed.
Checks whether they are installed, if not the user is notified with a proper message.

@HellAmbro HellAmbro changed the title Check if curl and unzip are installe, fix (#383) Check if curl and unzip are installed, fix (#383) Jan 29, 2023
@HellAmbro HellAmbro changed the title Check if curl and unzip are installed, fix (#383) Check if curl and unzip are installed, fix #383 Jan 29, 2023
Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding

Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one change to make the linter happy

# Check if curl is installed
curl_path = which("curl")
if curl_path is None:
raise FileNotFoundError("Pynecone requires curl to be installed.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add this to the docstring:

"""Install bun onto the user's system.

Raises:
    FileNotFoundError: If the required packages are not installed.
"""

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome

@picklelo picklelo linked an issue Jan 30, 2023 that may be closed by this pull request
@picklelo picklelo merged commit 4c7d923 into reflex-dev:main Jan 30, 2023
ACucos1 pushed a commit to ACucos1/rd-pynecone that referenced this pull request Feb 28, 2023
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 this pull request may close these issues.

pc init does not fail when curl and unzip are not installed.
2 participants