Issues running the iTowns demo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues running the iTowns demo

marc-2

Hi,

We wanted to have a look at the iTowns Demo, I have followed the
instructions on http://www.itowns-project.org/:
"git clone -b gh-pages https://github.com/iTowns/itowns.git
git clone https://github.com/iTowns/itowns-sample-data.git
python -m SimpleHTTPServer

Now open http://localhost:8000/itowns-sample-data/ in a browser and
enjoy!"
Note:
with python 3 I had to change the line:
"python -m SimpleHTTPServer"
with
"python -m http.server 8000"

Unfortunately I keep on getting a:
"Error code: 404

Message: File not found.

Error code explanation: HTTPStatus.NOT_FOUND - Nothing matches the given
URI."
in the browser, and:

"C:\Windows\system32>python -m http.server 8000
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
127.0.0.1 - - [23/Jun/2017 12:01:45] code 404, message File not found
127.0.0.1 - - [23/Jun/2017 12:01:45] "GET /itowns-sample-data/ HTTP/1.1"
404 -
127.0.0.1 - - [23/Jun/2017 12:01:45] code 404, message File not found
127.0.0.1 - - [23/Jun/2017 12:01:45] "GET /favicon.ico HTTP/1.1" 404 -"
in the console.

I am running a Windows 10 machine with python 3.6 and the browsers tried
are: firefox64 bit:'firefox nightly', windows edge, and chrome.

Any help would be appreciated.

Regards,

--
Marc Desprez
Senior Programmer
_______________________________________________
ITowns-user mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/itowns-user
Reply | Threaded
Open this post in threaded view
|

Re: Issues running the iTowns demo

Thomas Broyer
Hi Marc,

2017-06-23 12:02 GMT+02:00 <[hidden email]>:

Hi,

We wanted to have a look at the iTowns Demo, I have followed the instructions on http://www.itowns-project.org/:
"git clone -b gh-pages https://github.com/iTowns/itowns.git
git clone https://github.com/iTowns/itowns-sample-data.git
python -m SimpleHTTPServer

Now open http://localhost:8000/itowns-sample-data/ in a browser and enjoy!"
Note:
with python 3 I had to change the line:
"python -m SimpleHTTPServer"
with
"python -m http.server 8000"

Unfortunately I keep on getting a:
"Error code: 404

Message: File not found.

Error code explanation: HTTPStatus.NOT_FOUND - Nothing matches the given URI."
in the browser, and:

"C:\Windows\system32>python -m http.server 8000

The command has to be run in the same folder where you "git clone"'d the repositories.
You should have both an "itowns" and "itowns-sample-data" folders in that same folder (which is how Python finds the content for http://localhost:8000/itowns-sample-data/ : http://localhost:8000/ corresponds to the folder you run the Python command in)


Cordialement,
-- 
Thomas Broyer
Atol Conseils et Développements


_______________________________________________
ITowns-user mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/itowns-user