PGScatalog / pygscatalog

Python applications and libraries for working with PGS data and the PGS Catalog
https://pygscatalog.readthedocs.io/en/latest/
Apache License 2.0
6 stars 1 forks source link

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

Open Andfos opened 5 days ago

Andfos commented 5 days ago

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 commented 4 days ago

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?