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

ImportError: cannot import name 'run' from 'pgscatalog.core.cli.combine_cli' #58

Open
Andfos opened this issue Nov 17, 2024 · 1 comment

Comments

@Andfos
Copy link

Andfos commented Nov 17, 2024

I have installed nextflow and docker, and I am using the following code to test if everything is set up properly:

nextflow run pgscatalog/pgsc_calc -profile test,docker

The code runs for a moment and it looks like some output is generated, but then it crashes and produces a log file. In the logfile I notice that the program crashes with the following error:

Command error:
Traceback (most recent call last):
File "/app/pgscatalog.utils/.venv/bin/pgscatalog-combine", line 5, in
from pgscatalog.core.cli.combine_cli import run
ImportError: cannot import name 'run' from 'pgscatalog.core.cli.combine_cli' (/app/pgscatalog.utils/.venv/lib/python3.11/site-packages/pgscatalog/core/cli/combine_cli.py)

Any help would be sincerely appreciated!
Andrew

@nebfield
Copy link
Member

I deleted all the containers on my laptop (docker system prune -a) and tried to run the latest release:

$ nextflow run pgscatalog/pgsc_calc -profile test,docker,arm -r v2.0.0 -latest
INFO: The test profile is used to install the workflow and verify the software is working correctly on your system.
INFO: Test input data and results are are only useful as examples of outputs, and are not biologically meaningful.
------------------------------------------------------
  pgscatalog/pgsc_calc v2.0.0-g205cbfd
------------------------------------------------------
...
-[pgscatalog/pgsc_calc] Pipeline completed successfully-

(I include the arm profile because my laptop is a M1 mac)

Checking the container manually works OK too:

$ docker run ghcr.io/pgscatalog/pygscatalog:pgscatalog-utils-1.4.4 pgscatalog-combine --help
usage: pgscatalog-combine [-h] -s SCOREFILES [SCOREFILES ...] [--liftover] -t
                          {GRCh37,GRCh38} [-c CHAIN_DIR] [-m MIN_LIFT]
                          [--drop_missing] -o OUTFILE [-l LOGFILE] [-v]

Combine multiple scoring files in PGS Catalog format (see
https://www.pgscatalog.org/downloads/ for details) to a 'long' table of columns
needed for variant matching and subsequent calculation.
...

Are you able to reproduce either of these steps?

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

2 participants