keifufu / pywnp Goto Github PK
View Code? Open in Web Editor NEWA Python library for WebNowPlaying
License: MIT License
A Python library for WebNowPlaying
License: MIT License
I'm having an issue using this project on Linux.
Whenever I try and run the Initialize function, I get the following error:
OSError: [Errno 99] error while attempting to bind on address ('172.0.0.1', 3333): cannot assign requested address
I believe that I have found the issue which is that when you call WNPRedux._server = serve(WNPRedux._onConnect, 'localhost', port)
on line 147 of pywnp.py, you are trying to bind to localhost
and not the loopback IP 127.0.0.1
which has been known to cause issues on devices with IPv6 disabled/unavailable (See WebSockets: Read the Docs - FAQ)
The easiest way to fix this would be to change localhost to to 127.0.0.1, but another parameter could be added to an overloaded version of the Initialize function to make it more configurable and avert issues if the user isn't using 127.0.0.1 as their loopback for whatever reason or allow the use of localhost in IPv6 environments.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.