cdQA-ui icon indicating copy to clipboard operation
cdQA-ui copied to clipboard

cdQA not working

Open ghost opened this issue 5 years ago • 8 comments

Here is a screenshot for your reference. I have tried installing vue. However, I havent changed ny code. Please let me know how I can use the ui part along with cdqa as the read me is very open ended.

Screenshot from 2019-10-19 16-01-40

ghost avatar Oct 19 '19 05:10 ghost

Hi, If you are having difficulties to understand the readme you can also refer to my blogpost about cdqa:

https://towardsdatascience.com/how-to-create-your-own-question-answering-system-easily-with-python-2ef8abc8eb5

By the end of the article, I teach how to integrate cdqa with the UI.

andrelmfarias avatar Oct 21 '19 16:10 andrelmfarias

Hi @vedaanth

You can follow the development steps of the readme to get started:

https://github.com/cdqa-suite/cdQA-ui#development

Please note that you also need to start a cdQA python API in the background:

https://github.com/cdqa-suite/cdQA/blob/master/README.md#manual-1

fmikaelian avatar Oct 21 '19 19:10 fmikaelian

Screenshot from 2019-10-22 06-33-32 I did the same, cloned the directory cdQA-ui in the main cdQA. Then went on to run the api.py using flask which was running alongside. However, once I am running the ui file using npm run serve. It just returns : root@kali:~/Documents/cdQA-master/cdQA-ui# npm run serve

[email protected] serve /root/Documents/cdQA-master/cdQA-ui vue serve ./load-dev-dependencies.js

And then it stops.

ghost avatar Oct 21 '19 20:10 ghost

I ran the following command : npm install -g @vue/cli-service-global to ensure everything is installed globally and this is the output: Screenshot from 2019-10-22 06-57-04

ghost avatar Oct 21 '19 20:10 ghost

Hi @vedaanth , what is your environment config?

I just suceeded reproducing the development steps of the readme (https://github.com/cdqa-suite/cdQA-ui#development) on my machine:

npm --version 6.9.0

vue --version 3.7.0

npm list vue └── [email protected]

node -v v11.8.0

fmikaelian avatar Nov 16 '19 12:11 fmikaelian

Hi @fmikaelian , These are my specifications? Screenshot from 2019-11-16 23-10-10

root@kali:~# npm list vue /root └── [email protected]

root@kali:~# vue --version @vue/cli 4.0.5 root@kali:~# npm --version 6.12.0 root@kali:~# node -v v12.12.0 root@kali:~#

After running this is the issue thats coming. ERROR Failed to compile with 4 errors 11:17:20 PM

These dependencies were not found:

  • core-js/library/fn/array/from in ./node_modules/bootstrap-vue/esm/utils/array.js
  • core-js/library/fn/array/is-array in ./node_modules/bootstrap-vue/esm/utils/array.js
  • core-js/library/fn/object/assign in ./node_modules/bootstrap-vue/esm/utils/object.js
  • core-js/library/fn/object/is in ./node_modules/bootstrap-vue/esm/utils/object.js

To install them, you can run: npm install --save core-js/library/fn/array/from core-js/library/fn/array/is-array core-js/library/fn/object/assign core-js/library/fn/object/is

ghost avatar Nov 16 '19 12:11 ghost

Hi @vedaanth I had the same problem for couple of hours today :-) The problem is vue version. I did following:

npm install -g @vue/[email protected]
npm install -g @vue/[email protected]

Example started working.

IzidoroBaltazar avatar Apr 09 '20 13:04 IzidoroBaltazar

As of this date, additional steps were required for me as follows - Updating vue and vue-template-compiler versions in package.json as given in this SOf answer. And then running npm update vue-template-compiler (also another answer in the above link's question).

Hope it helps, cheers.

rajdeep-biswas avatar Sep 07 '21 18:09 rajdeep-biswas