# KA Lite doesn't serve javascript assets in Windows 10

**URL:** <https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246>\
**Category:** KA Lite\
**Tags:** setup, windows10\
**Created:** [May 11, 2017, 8:13pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246 "2017-05-11T20:13:21Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![nana\_lawless](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nana\_lawless](https://community.learningequality.org/u/nana_lawless)\
**Post date:** [May 11, 2017, 8:13pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/1 "2017-05-11T20:13:21Z")

</div>

I wanted to use ka lite to try to study when I don’t have internet connection. I’ve followed the steps on the installation page then tried to launch it. This is what I get

 ![](https://canada1.discourse-cdn.com/flex035/uploads/learneq/original/1X/bd3021e8e2e381001df63c290feb2b1a4c438430.png)

I’m not sure what to do from here. when I click on “learn” I go to a page whith a logo and all the legal stuff at the bottom

---

<div class="post-metadata">

**Author:** ![benjamin](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/benjamin/32/574_2.png) [@benjamin](https://community.learningequality.org/u/benjamin)\
**Post date:** [May 12, 2017, 3:44pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/2 "2017-05-12T15:44:57Z")

</div>

Hi @nana_lawless!

Thanks for getting in touch!

Could you confirm how much time you’ve waited after starting KA Lite for the first time?

From your screenshot, it’s evident that some files aren’t loading in the browser (the ones that load the menu, graphics, fonts etc). Either because they haven’t been copied in yet or because of some other problem (which would be cause for concern of a technical problem).

Thanks,  
Benjamin

---

<div class="post-metadata">

**Author:** ![nana\_lawless](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nana\_lawless](https://community.learningequality.org/u/nana_lawless)\
**Post date:** [May 13, 2017, 3:16pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/3 "2017-05-13T15:16:46Z")

</div>

Hey, Thanks for resppnding! I started right after installing. Should I have waited? Ill start it again later today when I use the computer.

---

<div class="post-metadata">

**Author:** ![benjamin](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/benjamin/32/574_2.png) [@benjamin](https://community.learningequality.org/u/benjamin)\
**Post date:** [May 13, 2017, 3:23pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/4 "2017-05-13T15:23:06Z")

</div>

I have a theory that waiting a bit after starting KA Lite before loading it in your browser can do the trick, but I don’t have Windows at hand to test my theory 🙂

---

<div class="post-metadata">

**Author:** ![nana\_lawless](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nana\_lawless](https://community.learningequality.org/u/nana_lawless)\
**Post date:** [May 14, 2017, 1:49am UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/5 "2017-05-14T01:49:40Z")

</div>

I couldn’t test it today Becuse I was busy but I will soon

---

<div class="post-metadata">

**Author:** ![nana\_lawless](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nana\_lawless](https://community.learningequality.org/u/nana_lawless)\
**Post date:** [May 17, 2017, 7:51pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/6 "2017-05-17T19:51:09Z")

</div>

Its still doing the same thing. I waited awhile after starting it to open in browser

---

<div class="post-metadata">

**Author:** ![benjamin](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/benjamin/32/574_2.png) [@benjamin](https://community.learningequality.org/u/benjamin)\
**Post date:** [May 18, 2017, 10:05am UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/7 "2017-05-18T10:05:59Z")

</div>

Hi @nana_lawless

Some files are missing, and I think it might be related to a failed setup process. Could you open a command line, find the `kalite` command and run `kalite manage collectstatic` ?

1. WIN+R -\> type `cmd` and press ENTER
2. In the command line, go to your Python Scripts folder, typically `cd C:\Python27\Scripts`, but you may need to adapt the path to your specific system (navigate with your explorer to figure out your folder structure). `cd` means “change directory”, it’s a necessary step before running the `kalite` command on Windows.
3. On the command line, once it’s inside the Scripts folder, type `kalite manage collectstatic` and press ENTER. When prompted, say “yes”.

After this is done, try refreshing your browser. You don’t need to stop/start KA Lite.

In case this doesn’t complete correctly or you have other problems, please post screenshots or copy-paste the contents of the command line.

---

<div class="post-metadata">

**Author:** ![Scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Scott](https://community.learningequality.org/u/Scott)\
**Post date:** [June 6, 2017, 11:43am UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/8 "2017-06-06T11:43:24Z")

</div>

# ====================================================================================== First time running KA-Lite on Windows 10 Professional, Creators Update (ka-lite-static-0.17.0 and Python 2.7.13)

Chrome shows 23 errors on the splash page:

1. All image links broken:  
o /static/images\logo\_10-enlarged\_2.png  
o /static/images/distributed/FLE.png  
o /static/images/distributed/CC-BY-NC-SA.png

Looking at the splash screen html:

1. Referenced file not on machine: reverse.js

2. There is no file en.js in specified path “/static/js/118n/en.js”  
(on my machine, a valid path would be C:\Python27\Lib\site-packages\kalite\static-libraries\js\i18n\en.js)

3. For these paths on the splash page to work:  
“static/images/distributed/FLE.png” and  
“static/images/distributed/CC-BY-SA.png”  
“static/js/distributed/bundles/bundle\_common.js”  
“static/js/distributed/bundles/bundle\_base.js”  
“static/js/distributed/bundles/homepage.js”  
“static/js/distributed/perseus/ke/”  
the working direcory would need to be “C:\Python27\Lib\site-packages\kalite\distributed”

4. The only button on the page, “x Close”, doesn’t work.

5. None of the JavaScript resource files were executed.

6. None of the CSS was implemented.

Maybe a problem with paths?

---

<div class="post-metadata">

**Author:** ![benjamin](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/benjamin/32/574_2.png) [@benjamin](https://community.learningequality.org/u/benjamin)\
**Post date:** [June 6, 2017, 11:42am UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/9 "2017-06-06T11:42:42Z")

</div>

@Scott

What on earth - this is happening more and more often, could be a problem with the installer.

During installation, some steps are supposed to be executed, but this one seems to be missed from time to time.

Borrowing from your previous step guide, this is what should fix it:

1. With File Manager, navigate to C:\Python27\Scripts
2. Get command prompt (shift-right-click open area; select “Open command window here”)
3. Type `kalite manage collectstatic` and hit `[ENTER]`

---

<div class="post-metadata">

**Author:** ![aditya](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/aditya/32/62_2.png) [@aditya](https://community.learningequality.org/u/aditya)\
**Post date:** [June 7, 2017, 1:14am UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/10 "2017-06-07T01:14:14Z")

</div>

Hello,  
I just installed it on my Windows 10 Pro machine and it works fine.  
I suggest you try a fresh install but don’t install Python and KA Lite on the system drive (C:), in my past experience with other files Windows 10 tends to lock down files on the system drive.

I installed Python and KALite on D: instead (remember to point KAlite to the pip.exe in the Python folder when it asks).  
Give it a shot, might just work.

Also, when you start the server for the first time wait for two prompts - the first one will tell you the server is now starting - the second prompt will confirm the server is up and running - you can confirm this by launching from the tray icon instead of typing the url in the browser.

EDIT: Do you have any chrome plugins that are ad/script blockers? Disable those for the KALite site url if you do.

Regards,  
Aditya

---

<div class="post-metadata">

**Author:** ![benjamin](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/benjamin/32/574_2.png) [@benjamin](https://community.learningequality.org/u/benjamin)\
**Post date:** [June 8, 2017, 2:36pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/11 "2017-06-08T14:36:03Z")

</div>

Thanks for the insights @aditya - this is valuable, will share it with the Windows Installer team!

---

<div class="post-metadata">

**Author:** ![Simon\_Field](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Simon\_Field](https://community.learningequality.org/u/Simon_Field)\
**Post date:** [September 9, 2017, 8:13pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/12 "2017-09-09T20:13:48Z")

</div>

I had a similar problem, due to installing kalite on a different drive than C:.  
I had to add “C:” in front of the paths in KALITE\_PYTHON and KALITE\_SCRIPT.  
That allowed the server to actually run.

Now my problem is that the web page tells me I need to install the full version of the English language pack to work.  
I think the install process was supposed to do that.  
When I try to “Go to Language Management” I get the error:  
You must be logged in with an account authorized to view this page.

When I click on the LOGIN tab, nothing happens.

---

<div class="post-metadata">

**Author:** ![benjamin](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/benjamin/32/574_2.png) [@benjamin](https://community.learningequality.org/u/benjamin)\
**Post date:** [September 9, 2017, 9:06pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/13 "2017-09-09T21:06:03Z")

</div>

@Simon_Field

> [@Simon\_Field](#):
>
> Now my problem is that the web page tells me I need to install the full version of the English language pack to work.

Yes, this sounds like a similar problem to the one you solved by changing environment variables. Maybe @Richard_Amodia can advice on what to change further, and also make note of the possible cause of why the installer seems to get it wrong when the drive isn’t `C:\`.

> [@Simon\_Field](#):
>
> When I click on the LOGIN tab, nothing happens.

Could you post a screen shot of this and possibly have a look in your log files to see if there are errors explaining this odd behavior?

---

<div class="post-metadata">

**Author:** ![Simon\_Field](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Simon\_Field](https://community.learningequality.org/u/Simon_Field)\
**Post date:** [September 9, 2017, 9:13pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/14 "2017-09-09T21:13:09Z")

</div>

When I Inspect the web page in Chrome, I see that static/django\_js\_reverse/reverse.js is not loaded.  
The server log is empty.  
The logs/django.log is too long to post here, but looks healthy, just the startup lines and a lot of web log info.  
Everything there is prefixed by [INFO], no warnings or errors.

A screenshot of the page doing nothing when I click on the LOGIN tab would just look like the main page,  
since clicking does nothing. 🙂

---

<div class="post-metadata">

**Author:** ![Simon\_Field](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Simon\_Field](https://community.learningequality.org/u/Simon_Field)\
**Post date:** [September 10, 2017, 5:58pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/15 "2017-09-10T17:58:00Z")

</div>

Any ideas on how to get django\_js\_reverse/reverse.js to be installed in the right place?  
Or is this just one aspect of a general install failure?

---

<div class="post-metadata">

**Author:** ![Richard\_Amodia](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/richard_amodia/32/483_2.png) [@Richard\_Amodia](https://community.learningequality.org/u/Richard_Amodia)\
**Post date:** [September 11, 2017, 3:40am UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/16 "2017-09-11T03:40:33Z")

</div>

Hi @Simon_Field I think the KA Lite static files are not properly loaded could you try to run the following commands.  
`kalite.bat manage setup --noinput`  
`kalite.bat manage collectstatic --noinput`  
Instructions to manually run theses commands.

- Open the command prompt.
- Goto the KALITE\_SCRIPT\_DIR path. A sample command is `cd x:\xxxx\Python27\Scripts`.
- Now you can run these command `kalite.bat manage setup --noinput` then run `kalite.bat manage collectstatic --noinput`

It would also help if you post the output logs after you ran the following commands.

---

<div class="post-metadata">

**Author:** ![Richard\_Amodia](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/richard_amodia/32/483_2.png) [@Richard\_Amodia](https://community.learningequality.org/u/Richard_Amodia)\
**Post date:** [September 12, 2017, 12:56am UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/17 "2017-09-12T00:56:13Z")

</div>

FYI: @Simon_Field you can also use the `kalite` instead of `kalite.bat` in these command `manage setup --noinput` `manage collectstatic --noinput`

---

<div class="post-metadata">

**Author:** ![Simon\_Field](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Simon\_Field](https://community.learningequality.org/u/Simon_Field)\
**Post date:** [September 12, 2017, 2:11pm UTC](https://community.learningequality.org/t/ka-lite-doesnt-serve-javascript-assets-in-windows-10/246/18 "2017-09-12T14:11:53Z")

</div>

Thanks!  
That seemed to work:

C:\Python27\Scripts\>kalite.bat manage setup --noinput

* * *

| | / / / \_ \ | | (_) |  
| |/ / / /_\ \ | | _| |_ \_\_\_  
| \ | \_ | | | | | **/ \_   
| |\ | | | | | |**_| | || \_\_/  
\_| \_/\_| |_/ \_\_\ __/|\__ \_\_\_|

[https://learningequality.org/ka-lite/](https://learningequality.org/ka-lite/)

```
     version 0.17.3

```

* * *

## WARNING: Database file already exists!

Upgrading database to KA Lite version 0.17.3  
Baking a fresh database from scratch or upgrading existing database.  
Syncing…  
Creating tables …  
Installing custom SQL …  
Installing indexes …  
Installed 0 object(s) from 0 fixture(s)

Synced:

> django.contrib.auth  
> django.contrib.sessions  
> django.contrib.messages  
> django.contrib.admin  
> django.contrib.staticfiles  
> django.contrib.contenttypes  
> django\_js\_reverse  
> south  
> kalite.coachreports  
> kalite.distributed  
> kalite.topic\_tools  
> kalite.contentload  
> kalite.dynamic\_assets  
> kalite.inline  
> kalite.control\_panel

Not synced (use migrations):

- tastypie
- securesync
- fle\_utils.config
- fle\_utils.chronograph
- kalite.main
- kalite.updates
- kalite.facility
- kalite.student\_testing
- kalite.i18n  
(use ./manage.py migrate to migrate these)  
Running migrations for tastypie:
- Nothing to migrate.
- Loading initial data for tastypie.  
Installed 0 object(s) from 0 fixture(s)  
Running migrations for securesync:
- Nothing to migrate.
- Loading initial data for securesync.  
Installed 0 object(s) from 0 fixture(s)  
Running migrations for config:
- Nothing to migrate.
- Loading initial data for config.  
Installed 0 object(s) from 0 fixture(s)  
Running migrations for chronograph:
- Nothing to migrate.
- Loading initial data for chronograph.  
Installed 0 object(s) from 0 fixture(s)  
Running migrations for main:
- Nothing to migrate.
- Loading initial data for main.  
Installed 0 object(s) from 0 fixture(s)  
Running migrations for updates:
- Nothing to migrate.
- Loading initial data for updates.  
Installed 0 object(s) from 0 fixture(s)  
Running migrations for facility:
- Nothing to migrate.
- Loading initial data for facility.  
Installed 0 object(s) from 0 fixture(s)  
Running migrations for student\_testing:
- Nothing to migrate.
- Loading initial data for student\_testing.  
Installed 0 object(s) from 0 fixture(s)  
Running migrations for i18n:
- Nothing to migrate.
- Loading initial data for i18n.  
Installed 0 object(s) from 0 fixture(s)  
Skipping C:\Python27\lib\site-packages\kalite\database\templates\content\_items\content\_khan\_en.sqlite  
Not running in interactive mode; skipping content pack download.  
Copying static media…  
Annotating availability of all content, checking for content in this directory: C:\Users\User.kalite\content  
[INFO] [2017-09-12 07:03:28,056] kalite: Annotating content for language: en, channel: khan

This may take several minutes depending on system resources…  
[INFO] [2017-09-12 07:03:30,480] kalite: Annotation complete for language: en, channel: khan

CONGRATULATIONS! You’ve finished setting up the KA Lite server software.  
You can now start KA Lite with the following command:

```
None start

```
