Problem with THttpServer ans Pyroot

Hi All,

I am trying the code below in order to instantiate THttpServer with Pyroot:

Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

from ROOT import *;
server = THttpServer(“http:8082;rw”);
Info in TCivetweb::Create: Starting HTTP server on port 8082

but when I try the link localhost:8082 on my web browser, I can’t access to the ThttpServer web interface. (But it works very well when I am directly on ROOT command line)

Any Idea how to solve this please?

Thanks.

Hi All,

I still need help for this question.
How can I get the “ROOT online server” interface using PyRoot please?

I did this:
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

from ROOT import *;
server = THttpServer(“http:8082;rw”);
Info in TCivetweb::Create: Starting HTTP server on port 8082

but nothing appears in url localhost:8082….

Thanks for your help.

Hi,

this seems to be a bug, which I now reported here:
https://sft.its.cern.ch/jira/browse/ROOT-8417

At the moment there is only the chance to call [quote]server.ProcessRequests()[/quote] manually so that the server reacts to requests. You could put that into a loop of yours until the problem has been solved properly.

Benedikt

Thanks a lot for your help.

I put server.ProcessRequests() in a loop as you proposed and it’s working.
Until a better solution is Added.

Hiba.