Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Sumo-web3d shows only the word 'loading...' in browser #19

Open
oferonmi opened this issue Apr 2, 2019 · 3 comments
Open

Sumo-web3d shows only the word 'loading...' in browser #19

oferonmi opened this issue Apr 2, 2019 · 3 comments

Comments

@oferonmi
Copy link

oferonmi commented Apr 2, 2019

Hi,
when I run sumo-web3d and point my browser to local host at port 5000, I get the blank page with the word 'loading...'.
From the web console in Firefox, the problem appears to do with a

failure to load index.bundle.js

and also something to do with

index.bundle.js being loaded with the MIME type text/plain which it doesn't regard as a valid JavaScript MIME type.

please does anyone have any idea how I could resolve this.
I have attached screenshots below
Screenshot from 2019-04-01 18-18-44
Screenshot from 2019-04-01 18-14-55

@naman0512gupta
Copy link

naman0512gupta commented Dec 16, 2019

Hi @datafilik, Did you find a solution for the same?

@oferonmi
Copy link
Author

oferonmi commented Dec 21, 2019 via email

@bstouten
Copy link

Hi, I am on Windows 10 with Python 3.7.7 with SUMO 1.0.1 and initially experienced the same issue. Here are two options that may resolve it:

  1. Since I experienced the "Error on installation" Error on installation #32 , I could not use pip and therefore downloaded the sumo_web3d sources from github. Subsequently, I installed git for windows (version 12.16.2), node.js (version 12.16.2), and yarn (by running npm install -g yarn). After that, I changed setup.py as described in Error on installation #32. From there I followed the README.md in the sumo_web3d root directory and ran
    yarn
    yarn webpack
    which generated index.bundle.js and index.bundle.js.map. After that I did a
    python setup.py install
    resulting in a build\lib\sumo_web3d directory. From that directory I could succesfully run
    python sumo_web3d.py
    The files index.bundle.js and index.bundle.js.map can be found in build\lib\sumo_web3d\static

  2. Another option is to notice that index.bundle.js and index.bundle.js.map are included in the sumo-web3d-1.0.1.tar.gz that is available from https://pypi.org/project/sumo-web3d/#files. Perhaps extracting those two files and putting them in the \static directory of your sumo_web3d folder may work as well - I have not tried it though.

roireshef added a commit to roireshef/sumo-web3d that referenced this issue Jul 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants