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

LS API python dep error when running in GCP Jupyter env #3

Open
kyleoconnell opened this issue Feb 13, 2024 · 0 comments
Open

LS API python dep error when running in GCP Jupyter env #3

kyleoconnell opened this issue Feb 13, 2024 · 0 comments

Comments

@kyleoconnell
Copy link

Hello,

I am trying to run snakemake 8.4.8 with the Life Sciences API. I cloned this repo into my Python site-packages path where the google batch plugin installed and called snakemake with the following:
snakemake --exector google-lifesciences, and the below error. If I have this dir in my site-packages at all, I end up getting this error with any snakemake command. Any advice on how to get LS API running with newer versions of Snakemake? Batch is not yet approved in my GCP environment so I have to use LS API.

(snakemake) jupyter@benchmarking-1-31:$ cp -r snakemake-executor-plugin-google-lifesciences/snakemake_executor_plugin_google_lifesciences/ /mambaforge/envs/snakemake/lib/python3.12/site-packages/
(snakemake) jupyter@benchmarking-1-31:
$ snakemake --exector google-lifesciences
Traceback (most recent call last):
File "/home/jupyter/mambaforge/envs/snakemake/bin/snakemake", line 6, in
from snakemake.cli import main
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/cli.py", line 20, in
from snakemake.api import SnakemakeApi, _get_executor_plugin_registry, resolve_snakefile
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/api.py", line 48, in
from snakemake.workflow import Workflow
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/workflow.py", line 63, in
from snakemake.scheduler import JobScheduler
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/scheduler.py", line 28, in
registry = ExecutorPluginRegistry()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_common/plugin_registry/init.py", line 31, in init
self.collect_plugins()
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_common/plugin_registry/init.py", line 77, in collect_plugins
module = importlib.import_module(moduleinfo.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_executor_plugin_google_lifesciences/init.py", line 31, in
from snakemake_interface_executor_plugins import ExecutorSettingsBase, CommonSettings
ImportError: cannot import name 'ExecutorSettingsBase' from 'snakemake_interface_executor_plugins' (/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_executor_plugins/init.py)
(snakemake) jupyter@benchmarking-1-31:
$ snakemake --version
Traceback (most recent call last):
File "/home/jupyter/mambaforge/envs/snakemake/bin/snakemake", line 6, in
from snakemake.cli import main
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/cli.py", line 20, in
from snakemake.api import SnakemakeApi, _get_executor_plugin_registry, resolve_snakefile
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/api.py", line 48, in
from snakemake.workflow import Workflow
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/workflow.py", line 63, in
from snakemake.scheduler import JobScheduler
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/scheduler.py", line 28, in
registry = ExecutorPluginRegistry()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_common/plugin_registry/init.py", line 31, in init
self.collect_plugins()
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_common/plugin_registry/init.py", line 77, in collect_plugins
module = importlib.import_module(moduleinfo.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_executor_plugin_google_lifesciences/init.py", line 31, in
from snakemake_interface_executor_plugins import ExecutorSettingsBase, CommonSettings
ImportError: cannot import name 'ExecutorSettingsBase' from 'snakemake_interface_executor_plugins' (/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_executor_plugins/init.py)
(snakemake) jupyter@benchmarking-1-31:~$ snakemake
Traceback (most recent call last):
File "/home/jupyter/mambaforge/envs/snakemake/bin/snakemake", line 6, in
from snakemake.cli import main
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/cli.py", line 20, in
from snakemake.api import SnakemakeApi, _get_executor_plugin_registry, resolve_snakefile
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/api.py", line 48, in
from snakemake.workflow import Workflow
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/workflow.py", line 63, in
from snakemake.scheduler import JobScheduler
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake/scheduler.py", line 28, in
registry = ExecutorPluginRegistry()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_common/plugin_registry/init.py", line 31, in init
self.collect_plugins()
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_common/plugin_registry/init.py", line 77, in collect_plugins
module = importlib.import_module(moduleinfo.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_executor_plugin_google_lifesciences/init.py", line 31, in
from snakemake_interface_executor_plugins import ExecutorSettingsBase, CommonSettings
ImportError: cannot import name 'ExecutorSettingsBase' from 'snakemake_interface_executor_plugins' (/home/jupyter/mambaforge/envs/snakemake/lib/python3.12/site-packages/snakemake_interface_executor_plugins/init.py)

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

1 participant