superdesk / superdesk-analytics Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
Followed as per documentation, but no help.
I've got following errors in browser console.
GET http://localhost:9000/tansaclient/tansaLoader.js?1527783916270
(anonymous) @ index.js:15
(anonymous) @ app.bundle.js:12987
webpack_require @ app.bundle.js:20
(anonymous) @ index.js:22
(anonymous) @ app.bundle.js:4160
webpack_require @ app.bundle.js:20
(anonymous) @ client:2
(anonymous) @ app.bundle.js:4016
webpack_require @ app.bundle.js:20
(anonymous) @ app.bundle.js:63
(anonymous) @ app.bundle.js:66
(index):17 Uncaught ReferenceError: tansaJQuery is not defined
at (index):17
Thanks.
I'm installing the plugin in superdesk server as described in readme:
add line
git+git://github.com/superdesk/[email protected]#egg=superdesk-analytics
to requirements.txt inside server folder, then run
pip install -r requirements.txt
It shows
"Successfully installed icalendar-3.11.1 python-dateutil-2.8.0 pytz-2019.3 setuptools-41.4.0 six-1.12.0 superdesk-analytics-0.1"
Then I add line 'analytics'
to INSTALLED_APPS.extend([])
section of settings.py, then I restart the servicedesk service and see in logs
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 beat.1 | Error:
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 beat.1 | Unable to load celery application.
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 beat.1 | The module analytics was not found.
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 work.1 | Error:
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 work.1 | Unable to load celery application.
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 work.1 | The module analytics was not found.
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 beat.1 |
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 work.1 |
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | [2019-10-23 17:48:17 +0500] [1193] [ERROR] Exception in worker process
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | Traceback (most recent call last):
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | worker.init_process()
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/gunicorn/workers/base.py", line 129, in init_process
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | self.load_wsgi()
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | self.wsgi = self.app.wsgi()
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/gunicorn/app/base.py", line 67, in wsgi
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | self.callable = self.load()
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | return self.load_wsgiapp()
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | return util.import_app(self.app_uri)
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/gunicorn/util.py", line 350, in import_app
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | __import__(module)
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/server/wsgi.py", line 14, in <module>
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | application = get_app()
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/server/app.py", line 41, in get_app
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | app = superdesk_app(config)
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/factory/app.py", line 184, in get_app
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | install_app(module_name)
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/opt/superdesk/env/lib/python3.5/site-packages/superdesk/factory/app.py", line 176, in install_app
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | app_module = importlib.import_module(module_name)
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | return _bootstrap._gcd_import(name[level:], package, level)
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | ImportError: No module named 'analytics'
Oct 23 17:48:17 ubuntu16 sh[981]: 17:48:17 rest.1 | [2019-10-23 17:48:17 +0500] [1193] [INFO] Worker exiting (pid: 1193)
Following error appears, if we put below superdesk-analytics line.
{
"dependencies": {
"superdesk-core": "superdesk/superdesk-client-core#a020139",
"superdesk-analytics": "superdesk/superdesk-analytics#c7f7145"
}
}
npm ERR! git rev-list -n1 c7f7145: fatal: ambiguous argument 'c7f7145': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 c7f7145: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 c7f7145: 'git [...] -- [...]'
npm ERR! git rev-list -n1 c7f7145:
npm ERR! git rev-list -n1 c7f7145: fatal: ambiguous argument 'c7f7145': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 c7f7145: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 c7f7145: 'git [...] -- [...]'
npm ERR! git rev-list -n1 c7f7145:
npm ERR! git rev-list -n1 c7f7145: fatal: ambiguous argument 'c7f7145': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 c7f7145: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 c7f7145: 'git [...] -- [...]'
npm ERR! git rev-list -n1 c7f7145:
npm ERR! Linux 3.13.0-128-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code 128
npm ERR! Command failed: git rev-list -n1 c7f7145
npm ERR! fatal: ambiguous argument 'c7f7145': unknown revision or path not in the working tree.
npm ERR! Use '--' to separate paths from revisions, like this:
npm ERR! 'git [...] -- [...]'
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /home/gtcoder/.npm/_logs/2018-06-08T10_01_54_997Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.