Closed WHBSpeiser closed 1 year ago
I have never seen that type of meesage before... but can you try this and report back:
conda install -c conda-forge libstdcxx-ng=12
Tried the suggested a couple of times and each time it made it so the environment could no longer run jupyter notebook. I also tried updating the system's C++ but didn't work (sudo apt-get upgrade libstdc++6)
... I will try running the notebook on a different OS later.
arg - too bad.. let us know if it works on a different OS...
Hey, sorry it took me a while to get back around to this. I got it to run on windows, but had to retry it a couple of times. It seems like the way the zoo install instructions are ordered on the github page, there is a dependency issue between the numpy version downloaded initially and what tensorflow prefers: ```
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
scipy 1.8.1 requires numpy<1.25.0,>=1.17.3, but you have numpy 1.26.0 which is incompatible.
Successfully installed absl-py-2.0.0 aiohttp-3.8.6 aiosignal-1.3.1 astunparse-1.6.3 async-timeout-4.0.3 cachetools-5.3.1 doodleverse_utils-0.0.29 flatbuffers-23.5.26 frozenlist-1.4.0 gast-0.5.4 google-auth-2.23.3 google-auth-oauthlib-1.0.0 google-pasta-0.2.0 grpcio-1.59.0 h5py-3.10.0 ipyfilechooser-0.6.0 ipywidgets-8.1.1 jupyterlab-widgets-3.0.9 keras-2.14.0 libclang-16.0.6 markdown-3.5 ml-dtypes-0.2.0 multidict-6.0.4 numpy-1.26.0 oauthlib-3.2.2 opt-einsum-3.3.0 protobuf-4.24.4 pyasn1-0.5.0 pyasn1-modules-0.3.0 requests-oauthlib-1.3.1 rsa-4.9 tensorboard-2.14.1 tensorboard-data-server-0.7.1 tensorflow-2.14.0 tensorflow-estimator-2.14.0 tensorflow-intel-2.14.0 tensorflow-io-gcs-filesystem-0.31.0 termcolor-2.3.0 versioneer-0.29 werkzeug-3.0.0 widgetsnbextension-4.0.9 wrapt-1.14.1 yarl-1.9.2
I was able to get it to properly download by installing tensorflow first and then the remaining packages not associated with tensorflow. I'll try doing this on Ubuntu as well and see if it fixes the overall issue.
Yep! Installing tensorflow before all other packages fixed both the numpy dependency issue on windows and the error that I received on pop/ubuntu. Weird!
Very good info- @WHBSpeiser , do you want to give close this issue? Or make a PR on the readme/wiki to explain?
Thanks @WHBSpeiser for figuring this out
Hello! I just did a fresh install of segmentation_zoo and am running on Pop!_OS 22.04 (aka Ubuntu). When trying to use the SDSmodels notebook, I run into an error when trying to import seg_file2tensor_3band, seg_file2tensor_ND from `doodleverse_utils.prediction_imports. I successfully downloaded all of the supporting libraries and the notebook was working before the fresh install. It looks like the error is from scripy. I tried redownloading scipy which didn't fix the error.
Below is the code and the error:
Running:
from doodleverse_utils.prediction_imports import seg_file2tensor_3band, seg_file2tensor_ND
yields: