Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh install unsing script on Rpi5 inop - current plotly lib will break installations #155

Closed
HookdomPonix opened this issue Feb 15, 2025 · 4 comments

Comments

@HookdomPonix
Copy link

I'm running the latest Rpi5 factory 64 bit image and i'm not getting a working install.

The system never starts listening on port 8080. I do get listening on port 8081.

Nothing is listening on 8080 already either.

Steps:

Install Raspbian 64 bit latest on RPI5.
Create krakensdr user.
Set password.

Run this script set:

wget https://raw.githubusercontent.com/krakenrf/krakensdr_docs/main/install_scripts/krakensdr_aarch64_install_doa.sh sudo chmod +x krakensdr_aarch64_install_doa.sh ./krakensdr_aarch64_install_doa.sh

Then cd to the kraken_doa directory and run the start script.

I can see my device in lsusb just fine.

Heimdall logs. show the system calibrating itself for example, so I think the Heimdall side is working.

Thoughts?

@HookdomPonix
Copy link
Author

I'm seeing this error in the logs:

==> ui.log <== from maindash import app File "/home/krakenrf/krakensdr/krakensdr_doa/_ui/_web_interface/maindash.py", line 27, in <module> waterfall_fig = init_waterfall(web_interface) File "/home/krakenrf/krakensdr/krakensdr_doa/_ui/_web_interface/waterfall.py", line 13, in init_waterfall go.Heatmapgl( File "/home/krakenrf/miniforge3/envs/kraken/lib/python3.9/site-packages/plotly/graph_objects/__init__.py", line 303, in __getattr__ return orig_getattr(import_name) File "/home/krakenrf/miniforge3/envs/kraken/lib/python3.9/site-packages/_plotly_utils/importers.py", line 39, in __getattr__ raise AttributeError( AttributeError: module 'plotly.graph_objects' has no attribute 'Heatmapgl'

Looks like these attributes were removed from plotly:

plotly/plotly.py#4792

Unsure if its THE error causing port 8080 not to come up. Testing using the kraken_test -d0 shows my whole setup is working right hardware wise.

@HookdomPonix
Copy link
Author

I modified the container image to build on the RPI5/CM5 as well. Still getting the same error inside the container:

root@type4-1:/var/lib/containers/storage/overlay/00cc5831efaaf95cefb14f55d13d065bce62dbf7caa5ad088eda6f6e09ca488d/merged/root/krakensdr/krakensdr_doa/_share/logs/krakensdr_doa# cat ui.log gpsd Available Traceback (most recent call last): File "/root/krakensdr/krakensdr_doa/_ui/_web_interface/app.py", line 22, in <module> from maindash import app File "/root/krakensdr/krakensdr_doa/_ui/_web_interface/maindash.py", line 27, in <module> waterfall_fig = init_waterfall(web_interface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/krakensdr/krakensdr_doa/_ui/_web_interface/waterfall.py", line 13, in init_waterfall go.Heatmapgl( ^^^^^^^^^^^^ File "/root/miniconda/envs/kraken/lib/python3.11/site-packages/plotly/graph_objects/__init__.py", line 303, in __getattr__ return orig_getattr(import_name) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/miniconda/envs/kraken/lib/python3.11/site-packages/_plotly_utils/importers.py", line 39, in __getattr__ raise AttributeError( AttributeError: module 'plotly.graph_objects' has no attribute 'Heatmapgl'. Did you mean: 'Heatmap'? root@type4-1:/var/lib/containers/storage/overlay/00cc5831efaaf95cefb14f55d13d065bce62dbf7caa5ad088eda6f6e09ca488d/merged/root/krakensdr/krakensdr_doa/_share/logs/krakensdr_doa#

@HookdomPonix
Copy link
Author

HookdomPonix commented Feb 15, 2025

Okay - so this is because a function was removed from plotly in the latest versions. All new installations should probably break under this model. This script has been modified to revert to an earlier version of plotly and now function resumes.

aarch_install.sh.zip

@HookdomPonix HookdomPonix changed the title Fresh install unsing script on Rpi5 inop. Fresh install unsing script on Rpi5 inop - current plotly lib will break installations Feb 15, 2025
@krakenrf
Copy link
Owner

Thanks for catching that depreciation. I've pinned plotly in the install scripts now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants