GithubHelp home page GithubHelp logo

Comments (5)

Pavion avatar Pavion commented on July 30, 2024

Hi, with a standard configuration I'm encountering no issues with supplied CherryPy, both Python 2.x and 3.x don't throw any exceptions.
Do you have further steps to reproduce your problem?
I've got but one idea:

As I see, you've tried to use port 80 for my application, which may have caused this problem.
On my test systems everything is fine as long as I'm using port 8030 but switching to 80 throws an exception:

  • on Windows: OSError: No socket could be created: Access denied
  • on Synology (Linux): No socket could be created: Address is in use

Both exceptions are legit, as both systems reserve their port 80 for other services.

  • Can you confirm this behavior?
  • Do you get your error with default settings too?
  • Is there a need to use default http port 80 for my application? Are you really sure it's not blocked by an other application? Could it be solved with a router-sided port forwarding instead?

P.S. Sadly, an exception on start won't let you change your port back. To get over this, you must delete the file "settings.db" in the application folder. This will also delete channels and recordings! If you want to keep your data, you can connect to this file using SQLite driver and change it manually or send me your file via E-Mail.

from tvstreamrecord.

usox avatar usox commented on July 30, 2024

The issue is not related to the port configuration. For testing purposes, I created a fresh linux VM (ubuntu 14.04), downloaded the 1.2.0 package and ran it using python2.7 - same result.

The import of the is_closeable_iterator in cherrypy/_cpwsgi.py:16 fails because of the missing definition (see https://github.com/cherrypy/cherrypy/blob/master/cherrypy/lib/__init__.py vs https://github.com/Pavion/tvstreamrecord/blob/master/cherrypy/lib/__init__.py)

Starting tvstreamrecord v.1.2.0 with Python 2.7
Logging output initialized
Initializing database... 
New database created. Thank you for using this package.
Initializing config...
Checking internationalization...
Initializing records...
Initializing EPG import thread...
Starting server on: 0.0.0.0:8030
Traceback (most recent call last):
  File "tvstreamrecord.py", line 1163, in <module>
    run(host=config.cfg_server_bind_address, port=config.cfg_server_port, server=CherryPyServer, quiet=True)
  File "/home/wolverine/aggi/tvstreamrecord-1.2.0/bottle.py", line 3026, in run
    server.run(app)
  File "/home/wolverine/aggi/tvstreamrecord-1.2.0/bottle.py", line 2666, in run
    from cherrypy import wsgiserver
  File "/home/wolverine/aggi/tvstreamrecord-1.2.0/cherrypy/__init__.py", line 76, in <module>
    from cherrypy import _cptree
  File "/home/wolverine/aggi/tvstreamrecord-1.2.0/cherrypy/_cptree.py", line 7, in <module>
    from cherrypy import _cpconfig, _cplogging, _cprequest, _cpwsgi, tools
  File "/home/wolverine/aggi/tvstreamrecord-1.2.0/cherrypy/_cpwsgi.py", line 16, in <module>
    from cherrypy.lib import is_closable_iterator
ImportError: cannot import name is_closable_iterator

from tvstreamrecord.

Pavion avatar Pavion commented on July 30, 2024

I've implemented a fix for dead servers (855ab03). Getting an exception on server start should now load a default server 0.0.0.0:8030 instead.

from tvstreamrecord.

Pavion avatar Pavion commented on July 30, 2024

Sorry, it seems, my 'lib' folder was excluded from all commits (52f6dc5). Thanks for waking me up! Please test and close this issue, if successful.

from tvstreamrecord.

usox avatar usox commented on July 30, 2024

Seems to work as expected ;)

from tvstreamrecord.

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.