snakemake / snakemake-executor-plugin-slurm

A Snakemake executor plugin for submitting jobs to a SLURM cluster
MIT License
18 stars 19 forks source link

Getting an AttributeError: module 'pulp' has no attribute 'list_solvers'. Did you mean: 'listSolvers'? #150

Closed Pooshman closed 2 months ago

Pooshman commented 2 months ago

snakemake 8.20.3

After activating snakemake, when trying to run snakemake --version, I get the following error:

Traceback (most recent call last):
  File "/home/ubuntu/.local/bin/snakemake", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/.local/lib/python3.10/site-packages/snakemake/__init__.py", line 2631, in main
    parser = get_argument_parser()
  File "/home/ubuntu/.local/lib/python3.10/site-packages/snakemake/__init__.py", line 1545, in get_argument_parser
    lp_solvers = pulp.list_solvers(onlyAvailable=True)
AttributeError: module 'pulp' has no attribute 'list_solvers'. Did you mean: 'listSolvers'?

I used the following 6 commands to download Miniconda:

Screenshot 2024-09-18 at 10 58 55 AM

I then ran the following 3 commands

Screenshot 2024-09-18 at 11 00 23 AM

After that I ran snakemake --version and got the error. Any help would be appreciated, thanks!

cmeesters commented 2 months ago

I am not sure, where this originated. But it certainly has nothing to do with this plugin repository: pulp is no dependency of the plugin, and the traceback you get is from Snakemake's core.

However, when installing a conda derivative it is unusual, to create a directory beforehand. My suggestion would be to remove your installation and follow the instructions from the Snakemake documentation, closely. If the issue persists, please refer to the Snakemake main repo, not a plugin you are not using.