1. Marcin Kuzminski
  2. RhodeCode

Issues

Issue #133 resolved

Error on Windows: used os.kill

Michal Kandulski
created an issue

I tried to run RhodeCode (it's in fact from the https://kandul@bitbucket.org/mantis406/rhodecode repository) on Windows and I got following error (missing "kill" attribute in "os" module): {{{ File 'c:\Python25\Lib\site-packages\weberror\errormiddleware.py', line 162 in call app_iter = self.application(environ, sr_checker) File 'c:\Python25\Lib\site-packages\rhodecode\lib\middleware\simplegit.py', line 101 in call return self.application(environ, start_response) File 'c:\Python25\Lib\site-packages\rhodecode\lib\middleware\simplehg.py', line 67 in call return self.application(environ, start_response) File 'c:\Python25\Lib\site-packages\beaker\middleware.py', line 152 in call return self.wrap_app(environ, session_start_response) File 'c:\Python25\Lib\site-packages\routes\middleware.py', line 131 in call response = self.app(environ, start_response) File 'c:\Python25\Lib\site-packages\pylons\wsgiapp.py', line 107 in call response = self.dispatch(controller, environ, start_response) File 'c:\Python25\Lib\site-packages\pylons\wsgiapp.py', line 312 in dispatch return controller(environ, start_response) File 'c:\Python25\Lib\site-packages\rhodecode\lib\base.py', line 50 in call return WSGIController.call(self, environ, start_response) File 'c:\Python25\Lib\site-packages\pylons\controllers\core.py', line 211 in call response = self._dispatch_call() File 'c:\Python25\Lib\site-packages\pylons\controllers\core.py', line 162 in _dispatch_call response = self._inspect_call(func) File 'c:\Python25\Lib\site-packages\pylons\controllers\core.py', line 105 in _inspect_call result = self._perform_call(func, args) File 'c:\Python25\Lib\site-packages\pylons\controllers\core.py', line 57 in _perform_call return func(args) File 'c:\Python25\Lib\site-packages\rhodecode\controllers\summary.py', line 115 in index run_task(get_commits_stats, c.repo_info.name, ts_min_y, ts_max_y) File 'c:\Python25\Lib\site-packages\rhodecode\lib\celerylib\__init__.py', line 77 in run_task return ResultWrapper(task(*args, kwargs)) File 'c:\Python25\Lib\site-packages\celery\task\base.py', line 248 in call return self.run(*args, kwargs) File 'c:\Python25\Lib\site-packages\celery\decorators.py', line 52 in run return fun(*args, kwargs) File '<string>', line 2 in get_commits_stats File 'c:\Python25\Lib\site-packages\rhodecode\lib\celerylib\init.py', line 91 in wrapper ret = func(fargs, *fkwargs) File 'c:\Python25\Lib\site-packages\rhodecode\lib\celerylib\tasks.py', line 223 in get_commits_stats run_task(get_commits_stats, repo_name, ts_min_y, ts_max_y) File 'c:\Python25\Lib\site-packages\rhodecode\lib\celerylib\init.py', line 77 in run_task return ResultWrapper(task(args, *kwargs)) File 'c:\Python25\Lib\site-packages\celery\task\base.py', line 248 in call return self.run(args, kwargs) File 'c:\Python25\Lib\site-packages\celery\decorators.py', line 52 in run return fun(args, **kwargs) File '<string>', line 2 in get_commits_stats File 'c:\Python25\Lib\site-packages\rhodecode\lib\celerylib\init.py', line 90 in wrapper l = DaemonLock(lockkey) File 'c:\Python25\Lib\site-packages\rhodecode\lib\pidlock.py', line 31 in init self.lock() File 'c:\Python25\Lib\site-packages\rhodecode\lib\pidlock.py', line 49 in lock self.trylock() File 'c:\Python25\Lib\site-packages\rhodecode\lib\pidlock.py', line 71 in trylock os.kill(running_pid, 0) AttributeError: 'module' object has no attribute 'kill'

CGI Variables

CONTENT_LENGTH: '0' CONTENT_TYPE: '; charset="utf-8"' HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8' HTTP_ACCEPT_CHARSET: 'ISO-8859-2,utf-8;q=0.7,*;q=0.7' HTTP_ACCEPT_ENCODING: 'gzip,deflate' HTTP_ACCEPT_LANGUAGE: 'pl,en-us;q=0.7,en;q=0.3' HTTP_CONNECTION: 'keep-alive' HTTP_COOKIE: 'rhodecode=6b27788316a79913a351abd9cbf213ddd2214e7e2b497751cb31a3e43ee48e5ee7f7245b' HTTP_HOST: '127.0.0.1:5000' HTTP_KEEP_ALIVE: '115' HTTP_REFERER: 'http://127.0.0.1:5000/' HTTP_USER_AGENT: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15' PATH_INFO: '/sphinx/summary' REMOTE_ADDR: '127.0.0.1' REQUEST_METHOD: 'GET' SERVER_NAME: '127.0.0.1' SERVER_PORT: '5000' SERVER_PROTOCOL: 'HTTP/1.1'

WSGI Variables

application: <rhodecode.lib.middleware.simplegit.SimpleGit object at 0x033AF3F0> beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x03316C70>> beaker.session: {'rhodecode_user': <AuthUser('id:2:admin')>, '_accessed_time': 1300321961.3670001, '_creation_time': 1300320268.365} paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0x0289D230> paste.registry: <paste.registry.Registry object at 0x0341EC90> paste.throw_errors: True pylons.action_method: <bound method SummaryController.index of <rhodecode.controllers.summary.SummaryController object at 0x0351B2F0>> pylons.controller: <rhodecode.controllers.summary.SummaryController object at 0x0351B2F0> pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'} pylons.pylons: <pylons.util.PylonsContext object at 0x0351B810> pylons.routes_dict: {'action': u'index', 'controller': u'summary', 'repo_name': u'sphinx'} routes.route: <routes.route.Route object at 0x031B1890> routes.url: <routes.util.URLGenerator object at 0x0351B750> webob.adhoc_attrs: {'language': 'en-us'} wsgi process: 'Multithreaded' wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x0351B750>, {'action': u'index', 'controller': u'summary', 'repo_name': u'sphinx'})


←[1;34m2011-03-17 01:32:48.608 DEBUG [rhodecode.controllers.error] ### 500 Internal Server Error ###←[0m }}}

Comments (3)

  1. Anonymous

    I tried Python 2.7 and now get the following error:

    os.kill(running_pid, 0) WindowsError: [Error 87] The parameter is incorrect

  2. Log in to comment