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

Conda Package #90

Closed
jan-janssen opened this issue Jan 26, 2022 · 23 comments
Closed

Conda Package #90

jan-janssen opened this issue Jan 26, 2022 · 23 comments

Comments

@jan-janssen
Copy link

jan-janssen commented Jan 26, 2022

I tried to build a Conda Package for ryven to simplify the installation process. So it can now be installed using:

conda install -c conda-forge ryven

So far it works fine on Mac OS X with python 3.9 - it fails with python 3.10. But maybe somebody can test it with Linux and Windows.

@jan-janssen
Copy link
Author

I just realized it is most likely related to me using Python 3.10:
#87

@jan-janssen jan-janssen changed the title Installation on Mac OS X Conda Package Jan 26, 2022
@jan-janssen
Copy link
Author

The linux package is also working - I tested it on mybinder using https://github.com/jan-janssen/ryven-binder

@leon-thomm
Copy link
Owner

leon-thomm commented Jan 27, 2022

fails on Kubuntu 21.10

$ ryven
/home/leon/apps/anaconda3/envs/ryven-conda-package/bin/python3.9: symbol lookup error: /home/leon/apps/anaconda3/envs/ryven-conda-package/plugins/platforms/../../lib/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API

Kubuntu is Ubuntu with KDE desktop environment where almost all UI runs with Qt, and I didn't have any other issues so far, but I'm not familiar with the details of these Qt configurations

edit
anacondaconda: 4.10.3 with
python: 3.9.9

@jan-janssen
Copy link
Author

Can you post the output of conda list ?

@leon-thomm
Copy link
Owner

# packages in environment at /home/leon/apps/anaconda3/envs/ryven-conda-package:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
alsa-lib                  1.2.3                h516909a_0    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
ca-certificates           2021.10.8            ha878542_0    conda-forge
dbus                      1.13.6               h5008d03_3    conda-forge
expat                     2.4.3                h9c3ff4c_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                 hab24e00_0    conda-forge
fontconfig                2.13.94              ha180cfb_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freetype                  2.10.4               h0708190_1    conda-forge
gettext                   0.19.8.1          h73d1719_1008    conda-forge
gst-plugins-base          1.18.5               hf529b03_3    conda-forge
gstreamer                 1.18.5               h9f60fe5_3    conda-forge
icu                       69.1                 h9c3ff4c_0    conda-forge
jinja2                    3.0.3              pyhd8ed1ab_0    conda-forge
jpeg                      9e                   h7f98852_0    conda-forge
krb5                      1.19.2               hcc1bbae_3    conda-forge
ld_impl_linux-64          2.36.1               hea4e1c9_2    conda-forge
libclang                  13.0.0          default_hc23dcda_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libevent                  2.1.10               h9b69904_4    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 11.2.0              h1d223b6_12    conda-forge
libglib                   2.70.2               h174f98d_1    conda-forge
libgomp                   11.2.0              h1d223b6_12    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
libllvm13                 13.0.0               hf817b99_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libogg                    1.3.4                h7f98852_1    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libpng                    1.6.37               h21135ba_2    conda-forge
libpq                     14.1                 hd57d9b9_1    conda-forge
libstdcxx-ng              11.2.0              he4da1e4_12    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libxkbcommon              1.0.3                he3ba5ed_0    conda-forge
libxml2                   2.9.12               h885dcf4_1    conda-forge
libxslt                   1.1.33               h0ef7038_3    conda-forge
libzlib                   1.2.11            h36c2ea0_1013    conda-forge
lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
markupsafe                2.0.1            py39h3811e60_1    conda-forge
mysql-common              8.0.28               ha770c72_0    conda-forge
mysql-libs                8.0.28               hfa10184_0    conda-forge
ncurses                   6.3                  h9c3ff4c_0    conda-forge
nspr                      4.32                 h9c3ff4c_1    conda-forge
nss                       3.74                 hb5efdd6_0    conda-forge
openssl                   1.1.1l               h7f98852_0    conda-forge
packaging                 21.3               pyhd8ed1ab_0    conda-forge
pcre                      8.45                 h9c3ff4c_0    conda-forge
pip                       21.3.1             pyhd8ed1ab_0    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
pygments                  2.11.2             pyhd8ed1ab_0    conda-forge
pyparsing                 3.0.7              pyhd8ed1ab_0    conda-forge
pyside2                   5.13.2           py39h363ec45_7    conda-forge
python                    3.9.9           h62f1059_0_cpython    conda-forge
python_abi                3.9                      2_cp39    conda-forge
qt                        5.12.9               ha98a1a1_5    conda-forge
qtpy                      2.0.0              pyhd8ed1ab_0    conda-forge
readline                  8.1                  h46c0cb4_0    conda-forge
ryven                     3.1.1              pyhd8ed1ab_2    conda-forge
ryvencore                 0.3.1.1            pyhd8ed1ab_0    conda-forge
ryvencore-qt              0.3.1.2            pyhd8ed1ab_1    conda-forge
setuptools                60.5.0           py39hf3d152e_0    conda-forge
sqlite                    3.37.0               h9cd32fc_0    conda-forge
textdistance              4.2.2              pyhd8ed1ab_0    conda-forge
tk                        8.6.11               h27826a3_1    conda-forge
tzdata                    2021e                he74cb21_0    conda-forge
waiting                   1.4.1              pyhd8ed1ab_0    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
xorg-libxau               1.0.9                h7f98852_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
zlib                      1.2.11            h36c2ea0_1013    conda-forge
zstd                      1.5.2                ha95c52a_0    conda-forge

@jan-janssen
Copy link
Author

That looks fine, I primarily looked for the channels but if everything comes from conda-forge that should be fine and the other thing to look at is the pyside2 version which is fine as well.

Is it possible that an environment variable points to the global QT version? That could be confusing for Conda as it should use the Conda QT version instead.

@jan-janssen
Copy link
Author

Maybe unset QT_PLUGIN_PATH helps as there seem to be multiple people complaining about issues with the conda QT and the KDE one ContinuumIO/anaconda-issues#32

@leon-thomm
Copy link
Owner

no change, unfortunately, QT_PLUGIN_PATH is not set. also, when I install it with pip (in a conda env) everything works fine.

@jan-janssen
Copy link
Author

That is a bit strange because basically the Conda package is using the pip packages in the background. Did you only install ryven or also pyside2 via pip to fix the issue?

@leon-thomm
Copy link
Owner

ah fair, if I install pyside2 from conda and ryven from pip, I get the same error...

@jan-janssen
Copy link
Author

So then the pyside2 package is conda seems to be the issue. Which version of pyside2 did you install via pip?

@leon-thomm
Copy link
Owner

leon-thomm commented Jan 27, 2022

I'm using 5.15.2, anaconda has 5.13.2

@leon-thomm
Copy link
Owner

well, looks like we are hitting #87 once again, version 5.13.2 is just broken. when I run with pyside2 5.13.2 on Python 3.9 I again run into random crashes as we already saw in the issue above. we might be able to force a lower pyside version for conda, if there is one that is remotely stable

@jan-janssen
Copy link
Author

I looked at the later pyside versions when I submitted ryven but it seems they need more work conda-forge/pyside2-feedstock#101 and conda-forge/pyside2-feedstock#102 . My hope is once pyqt is updated in conda the updating pyside2 also works but my personal experience with the whole Qt stack is limited, that is why I prefer the webbased solutions like Jupyter.

@leon-thomm
Copy link
Owner

it does seem to work on pyside2 5.12.4 which is available on anaconda index.

$ conda install -c conda-forge pyside2==5.12.4
$ conda install -c conda-forge ryven

can you add the fixed version requirement to the conda package?

@jan-janssen
Copy link
Author

Sure conda-forge/ryven-feedstock#6 I can also give you access to the ryven conda repositories. In general it is automatically updated based on the pip package but if we have to fix the versions it is maybe helpful if you have access.

@leon-thomm
Copy link
Owner

sure that would be nice (I will probably not interfere, though, as I don't have experience with anaconda packaging, unless there's explicit demand for quick fixes)

@jan-janssen
Copy link
Author

You should receive an invitation to the conda-forge Github organization which gives you access to all three ryven packages. In addition I fixed the dependency in conda install -c conda-forge ryven=3.1.1=*_3 it should be available in 30min to an hour as the anaconda servers take some time to distribute the packages worldwide. If this fixes your issue then we can mark the other packages as broken.

@jan-janssen
Copy link
Author

@leon-thomm Can you check if it is working now?

@leon-thomm
Copy link
Owner

leon-thomm commented Jan 27, 2022

yes, working now!

@max-hassani
Copy link

The conda package works well under Windows subsystem for Linux, if you have VcXsrv installed on the windows side. Thanks @jan-janssen.

@jan-janssen
Copy link
Author

@muh-hassani Can you also try to install it under windows directly? I am just curious if it works.

@max-hassani
Copy link

max-hassani commented Jan 31, 2022

@muh-hassani Can you also try to install it under windows directly? I am just curious if it works.

On the Windows PowerShell, the installation failed in a new environment with the following error:

Encountered problems while solving:

- package ryven-3.1.1-pyhd8ed1ab_3 requires pyside2 5.12.4, but none of the providers can be installed 

Update: I tried and could install pyside2=5.13.2. Can you remove the pin here?

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

3 participants