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

DAS gui spectrogram y-axis floating/not aligned to spectrogram itself #77

Closed
avakiai opened this issue Oct 25, 2024 · 13 comments
Closed

Comments

@avakiai
Copy link

avakiai commented Oct 25, 2024

Hi there,

I've had an issue (with multiple versions of DAS) whereby the y-axis on the spectrogram is sort of floating and not aligned with the boundaries of the spectrogram itself (Fig. 1). This is the case regardless of changes to spectrogram settings (bandpass filter, newer spectrogram view settings, or use of audio sample rate or 1k sample rate).

Up to now I've always just tried to visually infer where the frequency markings should be, but this is now becoming an issue (and I find I have to open the file in another software like Avisoft in order to see the frequency markings accurately).

Is there some setting I've messed up? If not, hopefully it's a relatively simple fix?

Thanks!

Fig. 1
image

NB: Windows 11 and das version 0.32.3 I believe.

@postpop
Copy link
Contributor

postpop commented Oct 28, 2024

Hi, I checked this on win 11 with a newly installed DAS and I cannot reproduce this issue.
Is this happening in a fresh install or after installing additional packages (seaborn et al.)?

@avakiai
Copy link
Author

avakiai commented Oct 28, 2024

Hi Jan,

thanks for the quick reply.
Just did a fresh fresh install as per mamba create python=3.9 das=0.32.3 "numpy<1.24" -c conda-forge -c ncb -c anaconda -c nvidia -n das_fresh -y. Same issue (Fig. 2). Below I've included the conda list just in case you're able to spot something odd.

Fig. 2
image

# Name                    Version                   Build  Channel
_tflow_select             2.1.0                       gpu    anaconda
abseil-cpp                20210324.2           h0e60522_0    conda-forge
absl-py                   2.1.0              pyhd8ed1ab_0    conda-forge
aiohappyeyeballs          2.4.3              pyhd8ed1ab_0    conda-forge
aiohttp                   3.10.10          py39hf73967f_0    conda-forge
aiosignal                 1.3.1              pyhd8ed1ab_0    conda-forge
aom                       3.7.1                h63175ca_0    conda-forge
asciitree                 0.3.3                      py_2    conda-forge
astor                     0.8.1              pyh9f0ad1d_0    conda-forge
asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
astunparse                1.6.3              pyhd8ed1ab_2    conda-forge
async-timeout             4.0.3              pyhd8ed1ab_0    conda-forge
attrs                     24.2.0             pyh71513ae_0    conda-forge
audioread                 3.0.1            py39hcbf5309_2    conda-forge
blinker                   1.8.2              pyhd8ed1ab_0    conda-forge
blosc                     1.21.5               hbd69f2e_1    conda-forge
bokeh                     2.4.3            py39hcbf5309_0    conda-forge
brotli                    1.1.0                h2466b09_2    conda-forge
brotli-bin                1.1.0                h2466b09_2    conda-forge
brotli-python             1.1.0            py39ha51f57c_2    conda-forge
bzip2                     1.0.8                h2466b09_7    conda-forge
c-blosc2                  2.15.1               hb461149_0    conda-forge
ca-certificates           2024.9.24            haa95532_0    anaconda
cachetools                4.2.4              pyhd8ed1ab_0    conda-forge
certifi                   2024.8.30          pyhd8ed1ab_0    conda-forge
cffi                      1.17.1           py39ha55e580_0    conda-forge
charset-normalizer        3.4.0              pyhd8ed1ab_0    conda-forge
click                     8.1.7           win_pyh7428d3b_0    conda-forge
cloudpickle               3.1.0              pyhd8ed1ab_1    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
colorcet                  3.1.0              pyhd8ed1ab_0    conda-forge
contourpy                 1.3.0            py39h2b77a98_2    conda-forge
cryptography              41.0.3           py39h3438e0d_0    anaconda
cudatoolkit               11.3.1              hf2f0253_13    conda-forge
cudnn                     8.2.1.32             h754d62a_0    conda-forge
cycler                    0.12.1             pyhd8ed1ab_0    conda-forge
cytoolz                   1.0.0            py39ha55e580_1    conda-forge
das                       0.32.3           py39hb572761_0    ncb
dask                      2023.4.1         py39haa95532_0    anaconda
dask-core                 2023.4.1           pyhd8ed1ab_0    conda-forge
dav1d                     1.2.1                hcfcfb64_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defopt                    6.3.0              pyhd8ed1ab_1    conda-forge
distributed               2023.4.1           pyhd8ed1ab_0    conda-forge
dm-tree                   0.1.7            py39h2e25243_0    conda-forge
docutils                  0.21.2             pyhd8ed1ab_0    conda-forge
exceptiongroup            1.2.2              pyhd8ed1ab_0    conda-forge
executing                 2.1.0              pyhd8ed1ab_0    conda-forge
expat                     2.6.3                he0c23c2_0    conda-forge
fasteners                 0.17.3             pyhd8ed1ab_0    conda-forge
ffmpeg                    6.1.0           gpl_h0859920_103    conda-forge
flammkuchen               0.9.2                      py_0    conda-forge
flatbuffers               24.3.25              h63175ca_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 h77eed37_3    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.54.1           py39hf73967f_1    conda-forge
freeglut                  3.4.0                hd77b12b_0    anaconda
freetype                  2.12.1               hdaf720e_2    conda-forge
frozenlist                1.5.0            py39ha55e580_0    conda-forge
fsspec                    2024.10.0          pyhff2d567_0    conda-forge
gast                      0.4.0              pyh9f0ad1d_0    conda-forge
giflib                    5.2.2                h64bf75a_0    conda-forge
google-auth               1.35.0             pyh6c4a22f_0    conda-forge
google-auth-oauthlib      0.4.6              pyhd8ed1ab_0    conda-forge
google-pasta              0.2.0              pyhd8ed1ab_1    conda-forge
grpcio                    1.46.3           py39hb76b349_0    conda-forge
h2                        4.1.0            py39hcbf5309_0    conda-forge
h5py                      3.11.0           py39hed405ee_0    anaconda
hdf5                      1.12.1          nompi_h2a0e4a3_104    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
icu                       68.2                 h0e60522_0    conda-forge
idna                      3.10               pyhd8ed1ab_0    conda-forge
imagecodecs-lite          2019.12.3        py39h4b0a98a_8    conda-forge
imageio                   2.36.0             pyh12aca89_1    conda-forge
importlib-metadata        8.5.0              pyha770c72_0    conda-forge
importlib-resources       6.4.5              pyhd8ed1ab_0    conda-forge
importlib_metadata        8.5.0                hd8ed1ab_0    conda-forge
importlib_resources       6.4.5              pyhd8ed1ab_0    conda-forge
intel-openmp              2024.2.1          h57928b3_1083    conda-forge
ipython                   8.18.1             pyh7428d3b_3    conda-forge
jasper                    2.0.33               hc2e4405_1    conda-forge
jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
jinja2                    3.1.4              pyhd8ed1ab_0    conda-forge
joblib                    1.4.2              pyhd8ed1ab_0    conda-forge
jpeg                      9e                   hcfcfb64_3    conda-forge
keras                     2.6.0              pyhd8ed1ab_1    conda-forge
keras-core                0.1.7              pyhd8ed1ab_0    conda-forge
keras-preprocessing       1.1.2              pyhd8ed1ab_0    conda-forge
keras-tuner               1.4.7              pyhd8ed1ab_0    conda-forge
kiwisolver                1.4.7            py39h2b77a98_0    conda-forge
krb5                      1.20.1               h6609f42_0    conda-forge
kt-legacy                 1.0.5              pyhd8ed1ab_0    conda-forge
lame                      3.100             hcfcfb64_1003    conda-forge
lazy-loader               0.4                pyhd8ed1ab_1    conda-forge
lazy_loader               0.4                pyhd8ed1ab_1    conda-forge
lcms2                     2.14                 h90d422f_0    conda-forge
lerc                      4.0.0                h63175ca_0    conda-forge
libblas                   3.9.0              25_win64_mkl    conda-forge
libbrotlicommon           1.1.0                h2466b09_2    conda-forge
libbrotlidec              1.1.0                h2466b09_2    conda-forge
libbrotlienc              1.1.0                h2466b09_2    conda-forge
libcblas                  3.9.0              25_win64_mkl    conda-forge
libclang                  11.1.0          default_h5c34c98_1    conda-forge
libcurl                   7.88.1               h68f0423_1    conda-forge
libdeflate                1.14                 hcfcfb64_0    conda-forge
libexpat                  2.6.3                he0c23c2_0    conda-forge
libflac                   1.4.3                h63175ca_0    conda-forge
libhwloc                  2.11.1          default_h8125262_1000    conda-forge
libiconv                  1.17                 hcfcfb64_2    conda-forge
liblapack                 3.9.0              25_win64_mkl    conda-forge
liblapacke                3.9.0              25_win64_mkl    conda-forge
libogg                    1.3.5                h2466b09_0    conda-forge
libopencv                 4.5.1            py39h27d8466_0    conda-forge
libopus                   1.3.1                h8ffe710_1    conda-forge
libpng                    1.6.43               h19919ed_0    conda-forge
libprotobuf               3.17.2               h7755175_1    conda-forge
librosa                   0.10.2.post1       pyhd8ed1ab_0    conda-forge
libsndfile                1.2.2                h81429f1_1    conda-forge
libsqlite                 3.47.0               h2466b09_0    conda-forge
libssh2                   1.10.0               h680486a_3    conda-forge
libtiff                   4.4.0                hc4f729c_5    conda-forge
libvorbis                 1.3.7                h0e60522_0    conda-forge
libwebp-base              1.4.0                hcfcfb64_0    conda-forge
libxml2                   2.13.1               h24da03e_2    anaconda
libxslt                   1.1.41               h0739af5_0    anaconda
libzlib                   1.2.13               h2466b09_6    conda-forge
llvmlite                  0.43.0           py39hf2fb9eb_0    anaconda
locket                    1.0.0              pyhd8ed1ab_0    conda-forge
lz4-c                     1.9.4                hcfcfb64_0    conda-forge
lzo                       2.10              hcfcfb64_1001    conda-forge
markdown                  3.6                pyhd8ed1ab_0    conda-forge
markdown-it-py            3.0.0              pyhd8ed1ab_0    conda-forge
markupsafe                3.0.2            py39hf73967f_0    conda-forge
matplotlib                3.9.2            py39haa95532_0    anaconda
matplotlib-base           3.9.2            py39h5376392_1    conda-forge
matplotlib-inline         0.1.7              pyhd8ed1ab_0    conda-forge
mdurl                     0.1.2              pyhd8ed1ab_0    conda-forge
mkl                       2024.2.2            h66d3029_14    conda-forge
mpg123                    1.32.8               h01009b0_0    conda-forge
msgpack-python            1.1.0            py39h2b77a98_0    conda-forge
multidict                 6.1.0            py39hf73967f_1    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
mypy_extensions           1.0.0              pyha770c72_0    conda-forge
namex                     0.0.8              pyhd8ed1ab_0    conda-forge
networkx                  3.2.1              pyhd8ed1ab_0    conda-forge
numba                     0.60.0           py39h5dcb127_0    conda-forge
numcodecs                 0.12.1           py39ha51f57c_1    conda-forge
numexpr                   2.10.1          mkl_py39h633a001_3    conda-forge
numpy                     1.23.5           py39hbccbffa_0    conda-forge
oauthlib                  3.2.2              pyhd8ed1ab_0    conda-forge
opencv                    4.5.1            py39hcbf5309_0    conda-forge
openh264                  2.4.0                h63175ca_0    conda-forge
openjpeg                  2.5.0                hc9384bd_1    conda-forge
openssl                   1.1.1w               hcfcfb64_0    conda-forge
opt_einsum                3.3.0              pyhc1e730c_2    conda-forge
packaging                 24.1               pyhd8ed1ab_0    conda-forge
pandas                    2.2.3            py39h2366fc2_1    conda-forge
parso                     0.8.4              pyhd8ed1ab_0    conda-forge
partd                     1.4.2              pyhd8ed1ab_0    conda-forge
peakutils                 1.3.5              pyhd8ed1ab_0    conda-forge
pickleshare               0.7.5           py39hde42818_1002    conda-forge
pillow                    10.4.0           py39h827c3e9_0    anaconda
pip                       24.2               pyh8b19718_1    conda-forge
pkgutil-resolve-name      1.3.10                   pypi_0    pypi
platformdirs              4.3.6              pyhd8ed1ab_0    conda-forge
pockets                   0.9.1                      py_0    conda-forge
pooch                     1.8.2              pyhd8ed1ab_0    conda-forge
portaudio                 19.6.0               h63175ca_9    conda-forge
prompt-toolkit            3.0.48             pyha770c72_0    conda-forge
propcache                 0.2.0            py39ha55e580_2    conda-forge
protobuf                  3.17.2           py39h415ef7b_0    conda-forge
psutil                    6.1.0            py39ha55e580_0    conda-forge
pthreads-win32            2.9.1                h2466b09_4    conda-forge
pure_eval                 0.2.3              pyhd8ed1ab_0    conda-forge
py-cpuinfo                9.0.0              pyhd8ed1ab_0    conda-forge
py-opencv                 4.5.1            py39h832f523_0    conda-forge
pyasn1                    0.6.1              pyhd8ed1ab_1    conda-forge
pyasn1-modules            0.4.1              pyhd8ed1ab_0    conda-forge
pyconify                  0.1.6              pyhd8ed1ab_0    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pygments                  2.18.0             pyhd8ed1ab_0    conda-forge
pyjwt                     2.9.0              pyhd8ed1ab_1    conda-forge
pyopenssl                 23.2.0             pyhd8ed1ab_1    conda-forge
pyparsing                 3.2.0              pyhd8ed1ab_1    conda-forge
pyqt                      5.12.3           py39hcbf5309_8    conda-forge
pyqt-impl                 5.12.3           py39h415ef7b_8    conda-forge
pyqt5-sip                 4.19.18          py39h415ef7b_8    conda-forge
pyqtchart                 5.12             py39h415ef7b_8    conda-forge
pyqtgraph                 0.12.4             pyhd8ed1ab_0    conda-forge
pyqtwebengine             5.12.1           py39h415ef7b_8    conda-forge
pyside2                   5.13.2           py39hc084194_4    conda-forge
pysocks                   1.7.1            py39hcbf5309_5    conda-forge
pysoundfile               0.12.1           pypyhd8ed1ab_1    conda-forge
pytables                  3.9.2            py39hcff0796_0    anaconda
python                    3.9.18               h6244533_0    anaconda
python-dateutil           2.9.0post0       py39haa95532_2    anaconda
python-flatbuffers        1.12               pyhd8ed1ab_1    conda-forge
python-sounddevice        0.5.0              pyhd8ed1ab_0    conda-forge
python-tzdata             2024.2             pyhd8ed1ab_0    conda-forge
python_abi                3.9                      2_cp39    conda-forge
pytz                      2024.1             pyhd8ed1ab_0    conda-forge
pyu2f                     0.1.5              pyhd8ed1ab_0    conda-forge
pyvideoreader             0.5.6              pyhfe9d6e3_0    conda-forge
pywavelets                1.6.0            py39h4b0a98a_0    conda-forge
pyyaml                    6.0.2            py39ha55e580_1    conda-forge
qhull                     2020.2               hc790b64_5    conda-forge
qt                        5.12.9               h5909a2a_4    conda-forge
qtpy                      2.4.1              pyhd8ed1ab_0    conda-forge
requests                  2.32.3             pyhd8ed1ab_0    conda-forge
requests-oauthlib         2.0.0              pyhd8ed1ab_0    conda-forge
rich                      13.9.3             pyhd8ed1ab_0    conda-forge
rsa                       4.9                pyhd8ed1ab_0    conda-forge
samplestamps              0.6.0                    py39_0    ncb
scikit-image              0.19.3           py39h2ba5b7c_2    conda-forge
scikit-learn              1.5.2            py39hdd013cc_1    conda-forge
scipy                     1.13.1           py39h1a10956_0    conda-forge
setuptools                75.1.0             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.2.1                h23299a8_0    conda-forge
sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
soxr                      0.1.3                hcfcfb64_3    conda-forge
soxr-python               0.5.0.post1      py39ha51f57c_1    conda-forge
sphinxcontrib-napoleon    0.7                        py_0    conda-forge
sqlite                    3.47.0               h2466b09_0    conda-forge
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
superqt                   0.6.7              pyh9208f05_0    conda-forge
svt-av1                   1.7.0                h63175ca_0    conda-forge
tbb                       2021.13.0            hc790b64_0    conda-forge
tblib                     3.0.0              pyhd8ed1ab_0    conda-forge
tensorboard               2.6.0              pyhd8ed1ab_1    conda-forge
tensorboard-data-server   0.6.1            py39hcbf5309_4    conda-forge
tensorboard-plugin-wit    1.8.1              pyhd8ed1ab_0    conda-forge
tensorflow                2.6.0           gpu_py39he88c5ba_0    anaconda
tensorflow-base           2.6.0           gpu_py39hb3da07e_0    anaconda
tensorflow-estimator      2.6.0              pyh7b7c402_0    anaconda
tensorflow-gpu            2.6.0                h17022bd_0    anaconda
termcolor                 2.5.0              pyhd8ed1ab_0    conda-forge
threadpoolctl             3.5.0              pyhc1e730c_0    conda-forge
tifffile                  2020.6.3                   py_0    conda-forge
toolz                     1.0.0              pyhd8ed1ab_0    conda-forge
tornado                   6.4.1            py39ha55e580_1    conda-forge
tqdm                      4.66.5             pyhd8ed1ab_0    conda-forge
traitlets                 5.14.3             pyhd8ed1ab_0    conda-forge
typing-extensions         4.12.2               hd8ed1ab_0    conda-forge
typing_extensions         4.12.2             pyha770c72_0    conda-forge
typing_inspect            0.9.0              pyhd8ed1ab_0    conda-forge
tzdata                    2024b                hc8b5060_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_1    conda-forge
unicodedata2              15.1.0           py39ha55e580_1    conda-forge
urllib3                   2.2.3              pyhd8ed1ab_0    conda-forge
vc                        14.40                h2eaa2aa_1    anaconda
vc14_runtime              14.40.33810         hcc2c482_22    conda-forge
vs2015_runtime            14.40.33810         h3bf8584_22    conda-forge
wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
werkzeug                  3.0.6              pyhd8ed1ab_0    conda-forge
wheel                     0.35.1             pyh9f0ad1d_0    conda-forge
win_inet_pton             1.1.0            py39hcbf5309_5    conda-forge
wrapt                     1.16.0           py39ha55e580_1    conda-forge
x264                      1!164.3095           h8ffe710_2    conda-forge
x265                      3.5                  h2d74725_3    conda-forge
xarray                    2024.7.0           pyhd8ed1ab_0    conda-forge
xarray-behave             0.35.7                   py39_0    ncb
xz                        5.4.6                h8cc25b3_1    anaconda
yaml                      0.2.5                h8ffe710_2    conda-forge
yarl                      1.16.0           py39ha55e580_0    conda-forge
zarr                      2.18.2             pyhd8ed1ab_0    conda-forge
zict                      3.0.0              pyhd8ed1ab_0    conda-forge
zipp                      3.20.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               h2466b09_6    conda-forge
zlib-ng                   2.2.2                he0c23c2_0    conda-forge
zstandard                 0.23.0           py39h9bf74da_1    conda-forge
zstd                      1.5.6                h0ea2cb4_0    conda-forge


@postpop
Copy link
Contributor

postpop commented Oct 28, 2024

very strange. can you print the output of das version just to be safe?

I see that pyqtgraph is version 0.12.4 on your machine, should be 0.13.7.
Can you try to install the new version? This should do it: "mamba install pyqtgraph==0.13.7"

@avakiai
Copy link
Author

avakiai commented Oct 28, 2024

Output of das version:
(I'm not sure about the first line of the output here - I am indeed running Win11...)

INFO:das.cli:  Windows-10-10.0.22631-SP0
INFO:das.cli:  DAS v0.32.3
INFO:das.cli:     GUI is available.
INFO:das.cli:     xarray-behave v0.35.7
INFO:das.cli:     pyqtgraph v0.12.4
INFO:das.cli:     PySide2 v5.13.2
INFO:das.cli:     Qt v5.12.9
INFO:das.cli:
INFO:das.cli:  tensorflow v2.10.0
INFO:das.cli:  keras v2.10.0
INFO:das.cli:     GPU is  available.
INFO:das.cli:
INFO:das.cli:  python v3.9.18 (main, Sep 11 2023, 13:30:38) [MSC v.1916 64 bit (AMD64)]
INFO:das.cli:  pandas v2.2.3
INFO:das.cli:  numpy v1.23.5
INFO:das.cli:  h5py v3.11.0
INFO:das.cli:  scipy v1.13.1
INFO:das.cli:  scikit-learn v1.5.2
INFO:das.cli:  xarray v2024.7.0

@avakiai
Copy link
Author

avakiai commented Oct 28, 2024

Is there a way to download this from conda-forge or pip? Our institute (MPI affiliated) firewall now blocks access to repo.anaconda.com (and I am assuming therefore also mamba commands) in order not to commit accidental terms of service breaches after Anaconda T&C change.

When I try to run the command you suggested, I get a long error report that looks like so:

Looking for: ['pyqtgraph==0.13.7']

pkgs/main/win-64         [====================] (00m:27s) 0 Failed
pkgs/main/noarch         [>                   ] (00m:27s) Timeout was reached
pkgs/r/win-64            [>                   ] (00m:27s) Timeout was reached
pkgs/r/noarch            [>                   ] (00m:27s) Timeout was reached
pkgs/msys2/win-64        [>                   ] (00m:27s) Timeout was reached
pkgs/msys2/noarch        [>                   ] (00m:20s) Timeout was reached

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\ProgramData\Anaconda3\lib\site-packages\conda\exceptions.py", line 1082, in __call__
        return func(*args, **kwargs)
      File "C:\ProgramData\Anaconda3\lib\site-packages\mamba\mamba.py", line 882, in exception_converter
        raise e
      File "C:\ProgramData\Anaconda3\lib\site-packages\mamba\mamba.py", line 876, in exception_converter
        exit_code = _wrapped_main(*args, **kwargs)
      File "C:\ProgramData\Anaconda3\lib\site-packages\mamba\mamba.py", line 835, in _wrapped_main
        result = do_call(args, p)
      File "C:\ProgramData\Anaconda3\lib\site-packages\mamba\mamba.py", line 716, in do_call
        exit_code = install(args, parser, "install")
      File "C:\ProgramData\Anaconda3\lib\site-packages\mamba\mamba.py", line 514, in install
        index = load_channels(pool, channels, repos)
      File "C:\ProgramData\Anaconda3\lib\site-packages\mamba\utils.py", line 93, in load_channels
        index = get_index(
      File "C:\ProgramData\Anaconda3\lib\site-packages\mamba\utils.py", line 74, in get_index
        is_downloaded = dlist.download(True)
    RuntimeError: Download error (28) Timeout was reached [https://repo.anaconda.com/pkgs/main/noarch/repodata.json]

`$ C:\ProgramData\Anaconda3\Scripts\mamba install pyqtgraph==0.13.7`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=das_fresh
                CONDA_EXE=C:\ProgramData\Anaconda3\condabin\..\Scripts\conda.exe
               CONDA_EXES="C:\ProgramData\Anaconda3\condabin\..\Scripts\conda.exe"
             CONDA_PREFIX=C:\ProgramData\Anaconda3\envs\das_fresh
           CONDA_PREFIX_1=C:\ProgramData\Anaconda3
    CONDA_PROMPT_MODIFIER=(das_fresh)
         CONDA_PYTHON_EXE=C:\ProgramData\Anaconda3\python.exe
               CONDA_ROOT=C:\ProgramData\Anaconda3
              CONDA_SHLVL=2
           CURL_CA_BUNDLE=<not set>
                 HOMEPATH=\Users\Ava Kiai
                     PATH=# long output...
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : das_fresh
    active env location : C:\ProgramData\Anaconda3\envs\das_fresh
            shell level : 2
       user config file : C:\Users\Ava Kiai\.condarc
 populated config files : C:\Users\Ava Kiai\.condarc
          conda version : 4.12.0
    conda-build version : 3.21.8
         python version : 3.9.12.final.0
       virtual packages : __cuda=12.5=0
                          __win=0=0
                          __archspec=1=x86_64
       base environment : C:\ProgramData\Anaconda3  (read only)
      conda av data dir : C:\ProgramData\Anaconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\ProgramData\Anaconda3\pkgs
                          C:\Users\Ava Kiai\.conda\pkgs
                          C:\Users\Ava Kiai\AppData\Local\conda\conda\pkgs
       envs directories : C:\ProgramData\Anaconda3\envs
                          C:\Users\Ava Kiai\.conda\envs
                          C:\Users\Ava Kiai\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.12.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.22631
          administrator : False
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.

@avakiai
Copy link
Author

avakiai commented Oct 28, 2024

... Realizing that mamba or plain conda install would not work because of aforementioned firewall issue, I tried with conda-forge and (seemingly) failed. I tried again with pip and broke a bunch of things...:

(das_fresh) C:\Users\Ava Kiai>conda install -c conda-forge pyqtgraph==0.13.7
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

ResolvePackageNotFound:
  - python==3.9
  
(das_fresh) C:\Users\Ava Kiai>pip install "pyqtgraph==0.13.7" --force-reinstall
Defaulting to user installation because normal site-packages is not writeable
Collecting pyqtgraph==0.13.7
  Using cached pyqtgraph-0.13.7-py3-none-any.whl.metadata (1.3 kB)
Collecting numpy>=1.22.0 (from pyqtgraph==0.13.7)
  Downloading numpy-2.0.2-cp39-cp39-win_amd64.whl.metadata (59 kB)
Using cached pyqtgraph-0.13.7-py3-none-any.whl (1.9 MB)
Downloading numpy-2.0.2-cp39-cp39-win_amd64.whl (15.9 MB)
   ---------------------------------------- 15.9/15.9 MB 15.4 MB/s eta 0:00:00
Installing collected packages: numpy, pyqtgraph
  WARNING: The scripts f2py.exe and numpy-config.exe are installed in 'C:\Users\Ava Kiai\AppData\Roaming\Python\Python39\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
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.
deeplabcut 2.3.5 requires statsmodels>=0.11, which is not installed.
hdbscan 0.8.29 requires cython>=0.27, which is not installed.
napari 0.4.18 requires appdirs>=1.4.4, which is not installed.
napari 0.4.18 requires jsonschema>=3.2.0, which is not installed.
napari 0.4.18 requires numpydoc>=0.9.2, which is not installed.
napari 0.4.18 requires sphinx<5,>=4.3.0, which is not installed.
tables 3.8.0 requires cython>=0.29.21, which is not installed.
tensorpack 0.11 requires pyzmq>=16, which is not installed.
tensorpack 0.11 requires tabulate>=0.7.7, which is not installed.
das 0.32.3 requires matplotlib_scalebar, which is not installed.
xarray-behave 0.35.7 requires pysoundfile, which is not installed.
Successfully installed numpy-2.0.2 pyqtgraph-0.13.7

(das_fresh) C:\Users\Ava Kiai>das gui
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\das_fresh\Scripts\das-script.py", line 6, in <module>
    from das.cli import main
  File "C:\ProgramData\Anaconda3\envs\das_fresh\lib\site-packages\das\cli.py", line 4, in <module>
    from . import train, predict, evaluate
  File "C:\ProgramData\Anaconda3\envs\das_fresh\lib\site-packages\das\train.py", line 4, in <module>
    import flammkuchen as fl
  File "C:\ProgramData\Anaconda3\envs\das_fresh\lib\site-packages\flammkuchen\__init__.py", line 4, in <module>
    import tables
  File "C:\Users\Ava Kiai\AppData\Roaming\Python\Python39\site-packages\tables\__init__.py", line 62, in <module>
    from .utilsextension import get_hdf5_version as _get_hdf5_version
  File "tables\utilsextension.pyx", line 1, in init tables.utilsextension
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

@postpop
Copy link
Contributor

postpop commented Oct 28, 2024

Yeah, pip will mess everything up. A bit annoying that MPI now blocks access to all anaconda repos...
Can you try installing DAS with the version of pyqtgraph specified explictly?
mamba create python=3.9 das=0.32.3 "numpy<1.24" pyqtgraph=0.13.7 -c conda-forge -c ncb -c anaconda -c nvidia -n das -y

@avakiai
Copy link
Author

avakiai commented Oct 28, 2024

Is this pointing to the same firewall problem?

(das_fresh) C:\Users\Ava Kiai>mamba create python=3.9 das=0.32.3 "numpy<1.24" pyqtgraph=0.13.7 -c conda-forge -c ncb -c anaconda -c nvidia -n das_fresh2 -y

...

Looking for: ['python=3.9', 'das=0.32.3', "numpy[version='<1.24']", 'pyqtgraph=0.13.7']

ncb/win-64               [====================] (00m:00s) No change
ncb/noarch               [====================] (00m:00s) No change
nvidia/noarch            [====================] (00m:00s) No change
nvidia/win-64            [====================] (00m:00s) No change
anaconda/noarch          [====================] (00m:00s) Done
anaconda/win-64          [====================] (00m:01s) Done
conda-forge/noarch       [====================] (00m:06s) Done
conda-forge/win-64       [====================] (00m:10s) Done
Encountered problems while solving.
Problem: package pyside2-5.15.8-py39hdfd5cee_3 requires qt-main >=5.15.8,<5.16.0a0, but none of the providers can be ind

@postpop
Copy link
Contributor

postpop commented Oct 30, 2024

Let me try to build the package without the anaconda channel. May take a couple of days since version conflicts will need to be resolved. Will keep you posted!

@avakiai
Copy link
Author

avakiai commented Oct 30, 2024 via email

@postpop
Copy link
Contributor

postpop commented Oct 30, 2024

Our IT juts sent an email to day announcing plans to block anaconda.
It's fine for most packages, except tensorflow... Hopefully, I get this to built w/o anaconda.

@postpop
Copy link
Contributor

postpop commented Nov 5, 2024

Hi, I've opened a new issue #78 with instructions on how to test the new no-anaconda builds of DAS, as we think this might be the issue. Can you give this a try? Thanks!

@avakiai
Copy link
Author

avakiai commented Nov 5, 2024

Dear Jan,

I just tested the new install of das 0.32.4 and the problem is fixed!

image

Thank you so much!

@avakiai avakiai closed this as completed Nov 5, 2024
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