Giter VIP home page Giter VIP logo

Comments (6)

user234683 avatar user234683 commented on June 12, 2024

from youtube-local.

 avatar commented on June 12, 2024

I'm not sure it's working, it still seems to try to use port 8080 even if i set it to something like 8086. I edit settings.py and then do python3 server.py but it still get this.

Running in non-portable mode
Tor routing is OFF - your Youtube activity is NOT anonymous
Started httpserver on port 8080
Traceback (most recent call last):
  File "/root/yt-local/server.py", line 277, in <module>
    server.serve_forever()
  File "/usr/local/lib/python3.9/dist-packages/gevent/baseserver.py", line 398, in serve_forever
    self.start()
  File "/usr/local/lib/python3.9/dist-packages/gevent/baseserver.py", line 336, in start
    self.init_socket()
  File "/usr/local/lib/python3.9/dist-packages/gevent/pywsgi.py", line 1545, in init_socket
    StreamServer.init_socket(self)
  File "/usr/local/lib/python3.9/dist-packages/gevent/server.py", line 180, in init_socket
    self.socket = self.get_listener(self.address, self.backlog, self.family)
  File "/usr/local/lib/python3.9/dist-packages/gevent/server.py", line 192, in get_listener
    return _tcp_listener(address, backlog=backlog, reuse_addr=cls.reuse_addr, family=family)
  File "/usr/local/lib/python3.9/dist-packages/gevent/server.py", line 288, in _tcp_listener
    sock.bind(address)
  File "/usr/local/lib/python3.9/dist-packages/gevent/_socketcommon.py", line 563, in bind
    return self._sock.bind(address)
OSError: [Errno 98] Address already in use: ('127.0.0.1', 8080)

from youtube-local.

user234683 avatar user234683 commented on June 12, 2024

from youtube-local.

 avatar commented on June 12, 2024

Yes, I'm making sure to write to the file before running server.py.
I should clarify what my setup looks like, should've done that earlier.

Running this off a Debian 10 VPS. git clone the repo and cd into the directory. vim settings.py and edit the 'default' option under 'port_number' to a different port, :wq. run python3 server.py, but it still gives the error I had pasted earlier.

from youtube-local.

user234683 avatar user234683 commented on June 12, 2024

from youtube-local.

 avatar commented on June 12, 2024

You don't want to edit the .py files. You need to edit settings.txt. By default it will be in ~/.youtube-local. Alternatively if you create a blank settings.txt file in the same directory it will populate that instead and store the rest of the data there (portable mode per the readme)

This did it, thanks for your time and help!

from youtube-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.