question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve discoverability of message to set $PATH on Windows

See original GitHub issue

Summary

A number of users are running into trouble installing Streamlit on Windows because they don’t realize they have to manually edit their $PATH.

Solution 1

Set the $PATH automatically after installation on Windows.

Solution 2

If Solution 1 is impossible for some reason, then we could increase the discoverability of the message to set the $PATH on Windows, following this suggestion.

Ways to make it stand out:

  1. Make sure this message is at the bottom of the installation messages, as much as possible.
  2. Use console colors (is this possible on Windows?)
  3. Use capital letters. (If #2 doesn’t work.)
  4. Separate this message from others with a newline above and below.

We don’t need to do all of these options, but it’d be nice to have the minimum to improve discoverability.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nthmostcommented, May 22, 2020

If we want Streamlit to add to the $PATH itself, this might have a solution:

https://stackoverflow.com/questions/1085852/interface-for-modifying-windows-environment-variables-from-python

I personally (as someone who isn’t anywhere near an expert on Windows programming) don’t feel comfortable integrating something like this as a solution. Which is why I’m advocating for a documentation based approach instead.

1reaction
randyzwitchcommented, May 13, 2020

Without directly modifying the Windows $PATH variable directly, there are two approaches we should consider here:

I agree that we shouldn’t modify the PATH, that feels too intrusive.

We already have the wiki content in the docs here, but it’s under ‘Troubleshooting’. It probably should be front and center in a ‘getting started’ section, and maybe the exact error message text could be part of the ‘Troubleshooting’ section.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set path at test discovery in visual studio?
Add the full path to the PATH Extension under Visual Studio -> Options -> Test Adapter for Google Test settings. Meanwhile the custom...
Read more >
Recommended TCP/IP settings for WAN links with a MTU size ...
Method 1: Enable Path Maximum Transfer Unit (PMTU) black hole detection · Click Start, click Run, type regedit, and then click OK. ·...
Read more >
Can't turn on Network Discovery - Windows Client
Open Control Panel, select System and Security, and then select Windows Firewall. · In the left pane, select Allow an app or feature...
Read more >
Configure discovery methods for Configuration Manager
Configure discovery methods to find resources to manage from your network, Active Directory, and Azure Active Directory.
Read more >
Discovery methods - Configuration Manager | Microsoft Learn
You can also specify a schedule to run discovery. Configure it to automatically create boundaries from the IP subnets and Active Directory ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found