scancode-workbench icon indicating copy to clipboard operation
scancode-workbench copied to clipboard

Unable to export from workbench

Open poti1 opened this issue 3 years ago • 4 comments

Description

I want to export my results, but it does not seem to work.

System configuration

Windows 10 scancode-workbench 3.1.1 scancode-toolkit 21.3.31 Python 3.6.2

poti1 avatar Apr 09 '21 11:04 poti1

@poti1 please post the error logs too if it's present

Pratikrocks avatar Apr 09 '21 12:04 Pratikrocks

@poti1 Can you give more context here? Are you trying to export a results sqlite file OR some user-created set of conclusions?

steven-esser avatar Apr 10 '21 01:04 steven-esser

I got the same issue:

  1. npm start => SCWB starts
  2. "Import ScanCode JSON", selecting a "json-lines" file 'sclicense-output.json' from scancode toolkit 30.1.0 output
  3. "Saving a "sclicense-output.sqlite" SQLite Database file in the same directory
  4. Doing my conclusion edits, when I am done it looks like this: image
  5. "File">"Export Conclusions JSON File" and trying to save as "sclicense-conclusion.json" in the same directory. => no json file is saved. (Windows Server 2016, npm 8.3.1, node 16.14.0, python 3.9.10, pip 22.0.3, SCWB 3.11)

Maybe it has something to do with the sequelizejs deprecated message in the command box:

E:\sctk\scancode-workbench>npm start

> [email protected] start
> electron main.js
(node:11616) Electron: Loading non-context-aware native module in renderer: '\\?\E:\sctk\scancode-workbench\node_modules\sqlite3\lib\binding\electron-v13.0-win32-x64\node_sqlite3.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
(Use `electron --trace-warnings ...` to show where the warning was created)
Thu, 24 Feb 2022 18:20:28 GMT sequelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more at http://docs.sequelizejs.com/manual/tutorial/querying.html#operators at node_modules\sequelize\lib\sequelize.js:245:13
(node:11616) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Thu, 24 Feb 2022 18:25:12 GMT sequelize deprecated Model.findById has been deprecated, please use Model.findByPk instead at node_modules\sequelize\lib\model.js:4208:9

I have no other log file seen laying around.

Regards FrySlim

FrySlim avatar Feb 24 '22 18:02 FrySlim

Neither with develop branch nor with master branch I got the "npm start" to work. Electron GUI starts but the Open/Save file dialogues do not appear.

But, the ready built 'dist' release Binaries with ScanCode-Workbench.exe works :-)

FrySlim avatar Feb 25 '22 17:02 FrySlim

I think we're no longer supporting conclusions as discussed here #512

OmkarPh avatar May 01 '23 13:05 OmkarPh

The Conclusions feature was deprecated for v4. We plan to eventually add this functionality in SCIO instead where we already have a shared database.

mjherzog avatar May 29 '23 16:05 mjherzog