cybergis / cybergis-compute-python-sdk

https://cybergis.github.io/cybergis-compute-python-sdk
Apache License 2.0
5 stars 7 forks source link

[Bug] "Error displaying widget: model not found" with `--force-reinstall` flag #56

Closed alexandermichels closed 2 years ago

alexandermichels commented 2 years ago

Expected Behavior

We should be able to install the SDK with the --force-reinstall flag.

Actual Behavior

When installing on CyberGISX (and using the --force-reinstall flag), the SDK seems to break. For example, on CyberGISX right now, if you run

pip install --force-reinstall git+https://github.com/cybergis/cybergis-compute-python-sdk.git

then restart the kernel and run the cells to connect to dev and bring up the UI, you get the following error:

Error displaying widget: model not found
Click here for full output 📃 Found "cybergis_compute_user.json" NOTE: if you want to login as another user, please remove this file 🎯 Logged in as alexandermichels@cybergisx.cigi.illinois.edu Error displaying widget: model not found hello_world Job Description: none keeling_community HPC Description: none Estimated Runtime: unknown Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found 😴 No Job to Work On you need to submit your job first ⏳ Waiting for Job to Finish... Error displaying widget: model not found Recently Submitted Jobs for alexandermichels id slurmId hpc remoteExecutableFolder remoteDataFolder remoteResultFolder 1664464919Miqcu 942289 keeling_community {'id': '1664464920xVoco', 'name': None, 'hpc': 'keeling_community', 'hpcPath': '/data/keeling/a/cigi-gisolve/scratch/1664464920xVoco', 'globusPath': '/1664464920xVoco', 'userId': '[alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu)', 'isWritable': False, 'createdAt': '2022-09-29T15:22:01.434Z', 'updatedAt': None, 'deletedAt': None} None {'id': '16644649210br1B', 'name': None, 'hpc': 'keeling_community', 'hpcPath': '/data/keeling/a/cigi-gisolve/scratch/16644649210br1B', 'globusPath': '/16644649210br1B', 'userId': '[alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu)', 'isWritable': False, 'createdAt': '2022-09-29T15:22:01.742Z', 'updatedAt': None, 'deletedAt': None} param slurm userId maintainer createdAt modelName {"input_a": 50, "input_b": "foo"} {"time": "10:00", "num_of_task": 2, "cpu_per_task": 1} [alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu) community_contribution 2022-09-29T15:21:59.227Z hello_world Error displaying widget: model not found id slurmId hpc remoteExecutableFolder remoteDataFolder remoteResultFolder 1664464651phVmf 942287 keeling_community {'id': '16644646533Rf22', 'name': None, 'hpc': 'keeling_community', 'hpcPath': '/data/keeling/a/cigi-gisolve/scratch/16644646533Rf22', 'globusPath': '/16644646533Rf22', 'userId': '[alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu)', 'isWritable': False, 'createdAt': '2022-09-29T15:17:34.373Z', 'updatedAt': None, 'deletedAt': None} None {'id': '1664464654mfhbf', 'name': None, 'hpc': 'keeling_community', 'hpcPath': '/data/keeling/a/cigi-gisolve/scratch/1664464654mfhbf', 'globusPath': '/1664464654mfhbf', 'userId': '[alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu)', 'isWritable': False, 'createdAt': '2022-09-29T15:17:34.636Z', 'updatedAt': None, 'deletedAt': None} param slurm userId maintainer createdAt modelName {"input_a": 50, "input_b": "foo"} {"time": "10:00", "num_of_task": 2, "cpu_per_task": 1} [alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu) community_contribution 2022-09-29T15:17:30.757Z hello_world Error displaying widget: model not found id slurmId hpc remoteExecutableFolder remoteDataFolder remoteResultFolder 1663963513C5Ygc None keeling_community None None None param slurm userId maintainer createdAt modelName {} {} [alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu) community_contribution 2022-09-23T20:05:13.455Z None Error displaying widget: model not found id slurmId hpc remoteExecutableFolder remoteDataFolder remoteResultFolder 1663963051LhLUR None keeling_community None None None param slurm userId maintainer createdAt modelName {} {} [alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu) community_contribution 2022-09-23T19:57:30.989Z None Error displaying widget: model not found id slurmId hpc remoteExecutableFolder remoteDataFolder remoteResultFolder 1663277428FfZ06 None keeling_community None None None param slurm userId maintainer createdAt modelName {} {} [alexandermichels@cybergisx.cigi.illinois.edu](mailto:alexandermichels@cybergisx.cigi.illinois.edu) community_contribution 2022-09-15T21:30:27.518Z None Error displaying widget: model not found Error displaying widget: model not found Welcome to CyberGIS-Compute A scalable middleware framework for enabling high-performance and data-intensive geospatial research and education on CyberGIS-Jupyter Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found Error displaying widget: model not found 📋 job events (live refresh) Error displaying widget: model not found 📋 job logs Output of this cell has been trimmed on the initial display. Displaying the first 50 top outputs. Click on this message to get the complete output.

## Steps to Reproduce the Problem 1. Reinstall the SDK on CyberGISX using the line `!pip install --force-reinstall git+https://github.com/cybergis/cybergis-compute-python-sdk.git` 1. Restart the kernel 1. Run ``` from cybergis_compute_client import CyberGISCompute cybergis = CyberGISCompute(url="cgjobsup-dev.cigi.illinois.edu", isJupyter=True, protocol="HTTPS", port=443, suffix="v2") cybergis.show_ui() ``` ## Specifications - Version: latest on Github (0.2.2 plus some commits), but was encountered before this version. - Platform: CyberGISX