Comments (5)
I replicate this also.
Here's my screenshot:
from kolibri.
It's not very clear from the order, but you must (in a separate terminal) also run npm run watch
. I'll amend the README.
from kolibri.
Adding this as help to anyone else facing this. I'm getting the same thing, and running npm run watch
is throwing the following error:
$ npm run watch
> [email protected] watch /home/jamalex/fle/kolibri
> webpack --config webpack.config.dev.js --watch
/home/jamalex/fle/kolibri/assets/src/read_bundle_plugin.js:31
var result = execSync("python kolibri/utils/webpack_config_export.py " + p
^
TypeError: undefined is not a function
at readBundlePlugin (/home/jamalex/fle/kolibri/assets/src/read_bundle_plugin.js:31:18)
at recurseBundlePlugins (/home/jamalex/fle/kolibri/assets/src/recurse_bundle_plugins.js:52:22)
at Object.<anonymous> (/home/jamalex/fle/kolibri/webpack.config.js:38:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/jamalex/fle/kolibri/webpack.config.dev.js:9:15)
npm ERR! weird error 8
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
It looks like execSync
was added in Node v0.12, and the version of Node in the Ubuntu repos is 0.10, so I'll need to update via a PPA to get it working.
from kolibri.
I upgraded to node v6.0.0, and now trying to build gives a different error:
$ npm run build
> [email protected] build /home/jamalex/fle/kolibri
> webpack
Traceback (most recent call last):
File "kolibri/utils/webpack_config_export.py", line 6, in <module>
import cli
File "/home/jamalex/fle/kolibri/kolibri/utils/cli.py", line 9, in <module>
import kolibri
ImportError: No module named kolibri
child_process.js:513
throw err;
^
Error: Command failed: python kolibri/utils/webpack_config_export.py kolibri.core.kolibri_plugin
Traceback (most recent call last):
File "kolibri/utils/webpack_config_export.py", line 6, in <module>
import cli
File "/home/jamalex/fle/kolibri/kolibri/utils/cli.py", line 9, in <module>
import kolibri
ImportError: No module named kolibri
at checkExecSyncError (child_process.js:470:13)
at execSync (child_process.js:510:13)
at readBundlePlugin (/home/jamalex/fle/kolibri/assets/src/read_bundle_plugin.js:31:18)
at recurseBundlePlugins (/home/jamalex/fle/kolibri/assets/src/recurse_bundle_plugins.js:52:22)
at Object.<anonymous> (/home/jamalex/fle/kolibri/webpack.config.js:38:15)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
npm ERR! Linux 4.0.0-xps13
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v6.0.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the kolibri package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs kolibri
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls kolibri
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/jamalex/fle/kolibri/npm-debug.log
I'm running from within a virtualenv. It seems maybe node's execSync
stuff is somehow getting run outside the virtualenv, and hence can't import kolibri.
from kolibri.
Note for people facing this issue in future, on Ubuntu using nvm
is required to make this work.
This was updated in the README here: 57a0d34
from kolibri.
Related Issues (20)
- Add `<SearchResultsGrid>` into `kolibri-common` and move relevant related components (such as `<LearningActivityChip>`)
- Update `<SearchFiltersPanel>` to accomodate differences in display between Learn and Coach, and within Coach, to manage quizzes (i.e. no Learning Activity types) vs. lesson resources
- Ensure grid "view more" and "pagination" behaviors that are present in learn are moved along with the components, and that they are reusable with them
- Replace KResponsiveElementMixin by useKResponsiveElement composable
- Create a `/search` view that opens when the search/filter button is clicked, and displays the available/relevant metadata filters, that are now in the `kolibri-common` component list, and displays the results when the search returns
- Write helper function(s) to manage display of metadata tags following prioritization criteria
- Implement conditionalized and prioritized metadata label display on Channel card
- Implement conditionalized and prioritized metadata label display on Folder card
- Create MVP Coach "channel card" using `<KCard>` to use in the resource management side panel HOT 3
- Implement conditionalized and prioritized metadata label display on Resource card
- EQM - Add new section/Edit Section - The 'Section settings' modal remains open after clicking 'Delete section' HOT 3
- TypeError: Cannot read properties of null (reading 'demographic_fields') HOT 1
- make docker-whl (build error: incompatible engine node version)
- Attempt to access undefined AttemptLog when looking at reports HOT 1
- Update dropshadows to the latest Kolibri Design System guidelines HOT 6
- Remove hardcoded color used for the button hover state HOT 4
- Prevent sensitive information like user passwords from being logged/captured
- Move `avg_request_time_to_error` to the backend `context` HOT 1
- Remove core vuex channel fetching logic and state and move to coach
- Move core vuex state registration out of the core store
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kolibri.