Python windows os.uname




















Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Since it's used only in banner upon library load, it's not crucial IMO and can be replaced by sys. The text was updated successfully, but these errors were encountered:. Sorry, something went wrong.

Well, in wider context it actually does crash - AttributeError is thrown upon import. This issue should be closed since PR 33 is merged. Skip to content. Star Save my name, email, and website in this browser for the next time I comment. Home Python How to get hostname in Python? Table of Contents Hide Python code to get a hostname using the socket module Python code to find a hostname using the platform module Python code to find a hostname using the os module Using os.

Share 0. Tweet 0. Srinivas Blogger, Traveller, Investor and Technologist. Leave a Reply Cancel reply Your email address will not be published. By checking this box, you confirm that you have read and are agreeing to our terms of use regarding the storage of the data submitted through this form.

You May Also Like. View Post. Here is the relevant code in the module session. Marc Maxmeister. Marc Maxmeister Marc Maxmeister 3, 2 2 gold badges 32 32 silver badges 44 44 bronze badges. Add a comment. Active Oldest Votes.

From the doc: os. Availability: recent flavors of Unix. As said by the doc: a better way to get the hostname is socket. Community Bot 1 1 1 silver badge. So is this a bug in the internetarchive python module that is doesn't have a caveat for windows machines? Its not under windows because windows don't have the uname command. Unix systems provides that command, allowing Python to call it and get its result. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.



0コメント

  • 1000 / 1000