-
Notifications
You must be signed in to change notification settings - Fork 53
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
ldap in qt configuration #1061
Comments
I have seen this error before, but I do not recall how I got past it. I think that eventually after re-creating the environment a bunch of times from scratch it worked. As I must have mentioned a few times already, there are some relatively serious problems with the content of our conda environment YAML files. The biggest one being that we end up having the project itself ( See for example this big red warning:
I would be in favour of getting rid of those conda environment YAML files, as I already discussed in mxcube/mxcubeweb#1383 (comment). Or maybe we find a different solution to prevent the situation mentioned above and situations like #849 (comment). I attempted a few times but never managed to finish my investigation, I might give it another shot soon-ish... |
Ah, I just tried to re-create my conda environment for
|
@marcus-oscarsson, @fabcor-maxiv I am not sure that getting rid of the conda yaml files would solve the problem, at least for me. As I understand you would still need some kind of virtual environment to install in, and you would still want to know what was in it and be able to control that. As I think you said yourself, one would want a documented way of installing that is known to work. Surely that is the point of these systems - that not every developer needs to know about the peculiarities of poetry, venv, micromamba, conda, ..., or about the technical issues of installing ldap, but can leave these issues to the people who are changing the dependencies. On the original point: It may well be that the mxcubeqt conda-environment.yml file is wrong and needs changing. But does anyone know how it should be changed? |
I think its a
Could it be the version of |
That is exactly what Poetry (and its lockfile) does. In my opinion having both conda and Poetry is the problem and more work needs to be done to make them cooperate harmoniously without all these paper cuts. |
One could try to put a version constraint on |
I agree that for production we should ideally build a package with poetry that is installed in an environment/image/container, if that is what you meant. I don't know if its practical to separate the two environments for development purpose. I think we are happy to try it out if there is some good way to do it. The conda environment make sure that the right system libraries are in place and that is not managed by Poetry. |
Things like Poetry and pre-commit should preferably be kept out of the environment where mxcube is meant to be installed. Ideally there should be only runtime dependencies in mxcube's environment and nothing else. Typically, you would:
But for convenience (fair enough, I am not comfortable with that but I get it) we put all of this in one environment, and then sometimes things break. Now so far it has apparently not broken too much or too often, so we can keep living with that. I am investigating better solutions as a low priority task. |
Would it be possible to generate requirements.txt files in parallel with / from the pyproject.toml and poetry.lock files? This would allow people to work with non-poetry installations and make it easier (for some, at least) to deal with problems like the one I came across here. |
Issue closed. The problem has been solved by @fabcor-maxiv (see issue #1063 and mxcubeqt PR #462), and nothing further is needed. |
How are you supposed to install the qt branch using the configuration files?
The following fails:
with
NB, for mxcubeweb, the following (which should be equivalent) succeeds:
The text was updated successfully, but these errors were encountered: