loosolab / jlu-bda-2020

Code repository for the JLU practical in Biodatenanalyse in winter 2020/2021
MIT License
0 stars 1 forks source link

Visualization error #49

Closed hschult closed 3 years ago

hschult commented 3 years ago

I tried the solution in your readme with python ../bin/tf_analyzer.py --visualize and got the following error:

 * Serving Flask app "visualization_app_api_start" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 106-975-674
An unhandled exception occurred: Cannot find module 'node-releases/data/processed/envs.json'
Require stack:
- /mnt/workspace/hschult/jlu-bda-2020/visualization/node_modules/browserslist/index.js
- /mnt/workspace/hschult/jlu-bda-2020/visualization/node_modules/@angular-devkit/build-angular/src/utils/build-browser-features.js
- /mnt/workspace/hschult/jlu-bda-2020/visualization/node_modules/@angular-devkit/build-angular/src/utils/index.js
- /mnt/workspace/hschult/jlu-bda-2020/visualization/node_modules/@angular-devkit/build-angular/src/browser/index.js
- /mnt/workspace/hschult/jlu-bda-2020/visualization/node_modules/@angular-devkit/build-angular/src/dev-server/index.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/index.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/models/architect-command.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/commands/serve-impl.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/index.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/utilities/json-schema.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/models/command-runner.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/lib/cli/index.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/lib/init.js
- /home/hschult/.conda/tf_analyzer/lib/node_modules/@angular/cli/bin/ng
See "/tmp/ng-NngtrF/angular-errors.log" for further details.
Jasmin-Walter commented 3 years ago

Please remove the folder node_modules in the visualization folder. Then reinstall angular using: npm install -g @angular/cli npm install --save-dev @angular-devkit/build-angular

The error was most likely caused by accidentally uploading the node_modules folder to git. The steps written above should solve the problem and the git repository was already cleaned.

hschult commented 3 years ago

Yes, that fixed it. Great! 👍