-
Notifications
You must be signed in to change notification settings - Fork 191
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
PyInquirer conda conflict for nf-core 1.10.2 and python 3.7 #726
Comments
Good to know, thanks! Not sure that there’s much that we can do about this, other than recommending Python 3.8 instead of 3.7 (I guess that also works, based on the error message?) |
Somehow |
Don't know, the conda conflict messages do not always help somehow. |
I just got the same problem for py3.8 and nf-core 1.10.2 in conda - also with no explanation in the errors. Installing from Pip (in the same conda environment) worked fine...?! |
I have found $ mamba install -c bioconda -c conda-forge python=3.8 nf-core=1.10.2 -k
__ __ __ __
/ \ / \ / \ / \
/ \/ \/ \/ \
███████████████/ /██/ /██/ /██/ /████████████████████████
/ / \ / \ / \ / \ \____
/ / \_/ \_/ \_/ \ o \__,
/ _/ \_____/ `
|/
███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗
████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
██╔████╔██║███████║██╔████╔██║██████╔╝███████║
██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝
mamba (0.6.1) supported by @QuantStack
GitHub: https://github.com/mamba-org/mamba
Twitter: https://twitter.com/QuantStack
█████████████████████████████████████████████████████████████
bioconda/noarch [====================] (00m:00s) Done
pkgs/main/linux-64 [====================] (00m:00s) Done
pkgs/r/noarch [====================] (00m:00s) Done
bioconda/linux-64 [====================] (00m:00s) Done
pkgs/main/noarch [====================] (00m:00s) Done
conda-forge/noarch [====================] (00m:00s) Done
pkgs/r/linux-64 [====================] (00m:00s) Done
conda-forge/linux-64 [====================] (00m:01s) Done
Looking for: ['python=3.8', 'nf-core=1.10.2']
Encountered problems while solving.
Problem: package nf-core-1.10.2-pyh864c0ab_0 requires pyinquirer 1.0.2.*, but none of the providers can be installed So it looks like its directly related to pyinquirer :-( |
Questionary now has a Difficult to tell whether it will be better than PyInquirer with its dependencies as it uses Poetry. But might be worth a play with that first to check that it actually solves the installation issues. Could also think about going old school and just doing it homebrew without any packages. Won't be as slick but might simplify things. |
Started to play a bit with Questionary - it looks like we can really just swap it. You can't install it alongside PyInquirer because that depends on an old version of the prompt-toolkit (version 1.-something, while Questionary uses 3.0.8). In my book that speaks for Questionary ... I will test around a bit more - still need to fully understand the nf-core/tools code :-) |
I've had great experiences with Questionary. The devs are also very responsive, somewhat contrary to the PyInquirer devs. |
I've recently found similar issues caused by outdated bioconda libraries conflicting with updated dependencies on conda-forge. You can resolved it like this.
|
Yeah, Questionary looks good but be aware that "it has the same two problems that PyInquirer has" - #684 (comment) Unfortunately past-me didn't care to elaborate on what those two problems were 🤦🏻 |
Ah, you can see the reason in the code comments when I switched back to the stable(!) release of PyInquirer: - #
- # NOTE: WE ARE USING A PRE-RELEASE VERSION OF PYINQUIRER
- #
- # This is so that we can capture keyboard interruptions in a nicer way
- # with the raise_keyboard_interrupt=True argument in the prompt.prompt() calls
- # It also allows list selections to have a default set.
- #
- # Waiting for a release of version of >1.0.3 of PyInquirer.
- # See https://github.com/CITGuru/PyInquirer/issues/90
- #
- # When available, update setup.py to use regular pip version
+ # NOTE: When PyInquirer 1.0.3 is released we can capture keyboard interruptions
+ # in a nicer way # with the raise_keyboard_interrupt=True argument in the PyInquirer.prompt() calls
+ # It also allows list selections to have a default set.
+ #
+ # Until then we have workarounds:
+ # * Default list item is moved to the top of the list
+ # * We manually raise a KeyboardInterrupt if we get None back from a question
+ # So the two problems I was hitting were:
And I added slightly unsatisfactory workarounds to both problems. |
|
So what to do? :-) On top of that, we could implement the What do you think? Edit: or directly change the Edit2: hmm okay I'm now realising that you can't just declare the |
closed by #799 |
Hi,
when running
conda create --name nf-core-test python=3.7 nf-core=1.10.2
I getWithout specifying the python version it works using
python 3.6.11
.The text was updated successfully, but these errors were encountered: