Skip to content

Uncaught exception using cherrypy/__init__.py from a non-existent dir. #2055

@drrtuy

Description

@drrtuy

Hi.
Thx for the CherryPy!
Could you tell me if an uncaught exception with the latest 18.10.0 in a situation where cwd doesn't exist is an appropriate behavior for CherryPy and we should work around this behavior ourselves, or you will accept a patch that will turn this uncaught exception into a graceful exit? Plz find the traceback below.

Traceback (most recent call last): 
File "/usr/share/columnstore/cmapi/python/lib/python3.9/runpy.py", line 197, in _run_module_as_main 
return _run_code(code, main_globals, None, 
File "/usr/share/columnstore/cmapi/python/lib/python3.9/runpy.py", line 87, in _run_code 
exec(code, run_globals) 
File "/usr/share/columnstore/cmapi/mcs_cluster_tool/__main__.py", line 6, in <module> 
from cmapi_server.logging_management import dict_config, add_logging_level 
File "/usr/share/columnstore/cmapi/cmapi_server/logging_management.py", line 6, in <module> import cherrypy 
File "/usr/share/columnstore/cmapi/deps/cherrypy/__init__.py", line 76, in <module> 
from . import _cprequest, _cpserver, _cptree, _cplogging, _cpconfig 
File "/usr/share/columnstore/cmapi/deps/cherrypy/_cpserver.py", line 6, in <module> 
from cherrypy.process.servers import ServerAdapter 
File "/usr/share/columnstore/cmapi/deps/cherrypy/process/__init__.py", line 13, in <module> 
from .wspbus import bus 
File "/usr/share/columnstore/cmapi/deps/cherrypy/process/wspbus.py", line 93, in <module> 
_startup_cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions