B-SOID icon indicating copy to clipboard operation
B-SOID copied to clipboard

extract features fails

Open vickerse1 opened this issue 2 years ago • 0 comments

this happens while running streamlit over port forwarding. i get the following error:


Failed on feature embedding. Try again by unchecking sidebar and rerunning extract features.

UnboundLocalError: local variable 'learned_embeddings' referenced before assignment Traceback: File "/usr/local/anaconda3/envs/streamlit/lib/python3.9/site-packages/streamlit/script_runner.py", line 354, in run_script exec(code, module.dict) File "/disk/B-SOID/bsoid_app.py", line 46, in extractor.main() File "/disk/B-SOID/bsoid_app/extract_features.py", line 192, in main self.compute() File "/disk/B-SOID/bsoid_app/extract_features.py", line 137, in compute self.learn_embeddings() File "/disk/B-SOID/bsoid_app/extract_features.py", line 172, in learn_embeddings self.sampled_embeddings = learned_embeddings.embedding

when initializing bsoid on these sessions, i get get the following (possibly related?) runtime / non-fatal error:


2021-10-06 10:27:59.806 Examining the path of widgets raised: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (/usr/local/zmq/backend/cython/init.py) 2021-10-06 10:28:18.806 Examining the path of widgets raised: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (/usr/local/zmq/backend/cython/init.py) 2021-10-06 10:28:24.747 Examining the path of widgets raised: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (/usr/local/zmq/backend/cython/init.py) 2021-10-06 12:53:45.410 Traceback (most recent call last):

Do you have any ideas about what could be causing these problems?

Thanks,

Evan

vickerse1 avatar Oct 07 '21 00:10 vickerse1