Comments (8)
Ah, I see. The issue is that you get this error when you attempt to add gumbo client as a dependency (but it is not currently a dependency).
Now, I have a partial answer for why this is failing to install when run under poetry
vs pip install
:
When you install via pip, it's actually downloading a pre-compiled version of that package.
(When I run pip install ...
, it reports: Downloading psycopg2_binary-2.9.5-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB)
)
whereas when you attempt to install it via poetry, it's trying to compile the source code for psycopg2
on your machine. (This actually also works for me because I have postgresql installed on my machine. The pg_config
executable that you're missing is part of a postgresql installation.)
What I don't know is why poetry is not using the prebuilt package, and instead trying to built it from source.
If installing postgresql (I'd recommend using https://postgresapp.com/ for the mac) is a viable solution, it'll fix this issue.
from depmap_omics.
I suspect there is more in that error message above the line "This error originates..." as I suspect that the "this" refers to a very long error message that proceeded that line.
Also, any other details you can provide on how to reproduce? What did you run that resulted in this error?
Github actions doesn't seem to have a problem installing psycopg2 as you can see the build-docker
is successful each time. That implies its some environmental difference between the github actions and when running locally.
I'm also able to run poetry install
locally on my mac without any error.
from depmap_omics.
Thanks @pgm for the comment. The way to reproduce the error is:
git checkout dev-maf
mamba create -n cds-omics python==3.9
conda activate cds-omics
poetry lock --no-update
poetry install
poetry add git+https://github.com/broadinstitute/gumbo_client.git
The full errors are:
Updating dependencies
Resolving dependencies... (10.1s)
Writing lock file
Package operations: 1 install, 6 updates, 0 removals
• Updating platformdirs (2.6.2 -> 3.1.0)
• Updating cffi (1.14.6 -> 1.15.1)
• Updating charset-normalizer (2.1.1 -> 3.0.1)
• Updating setuptools (65.6.3 -> 67.4.0)
• Updating soupsieve (2.3.2.post1 -> 2.4)
• Installing psycopg2 (2.9.5): Failed
ChefBuildError
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
/var/folders/5b/71z1tltn429bywpnr2d7gxv40000gq/T/tmp5hyb50i4/.venv/lib/python3.9/site-packages/setuptools/config/setupcfg.py:520: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running egg_info
writing psycopg2.egg-info/PKG-INFO
writing dependency_links to psycopg2.egg-info/dependency_links.txt
writing top-level names to psycopg2.egg-info/top_level.txt
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
at ~/miniconda3/envs/cds-omics/lib/python3.9/site-packages/poetry/installation/chef.py:152 in _prepare
148│
149│ error = ChefBuildError("\n\n".join(message_parts))
150│
151│ if error is not None:
→ 152│ raise error from None
153│
154│ return path
155│
156│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with psycopg2 (2.9.5) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "psycopg2 (==2.9.5) ; python_version >= "3.6""'.
The reason build-docker
is not raising such an error because gumbo_client
is neither a dependency for depmap_omics nor depmap_omics_upload.
from depmap_omics.
...also it's worth noting that "conda activate cds-omics" has no effect in the above. poetry
creates its own virtual environment.
In other words, you can't use conda and poetry together. They're mutually exclusive.
from depmap_omics.
...Okay, I understand now the issue with the gumbo_client package. It has two different installation scripts which is a source of confusion for these installer tools.
I'll talk to Sarah to get that straightened out.
from depmap_omics.
Thanks! These explanations are very helpful. I'll use https://postgresapp.com/ for a simple fix now.
As for conda activate cds-omics
, I thought poetry install
will install anything into the current activated environment by default unless we specify poetry env use
. That's why I used both conda and poetry together, I'll look into it to see if we should use poetry
alone with other python version tool such as pyenv
.
from depmap_omics.
from depmap_omics.
Thanks for the detailed explanation! Sure, let's chat today.
from depmap_omics.
Related Issues (20)
- add timestamped CIVIC db
- update mutation mapping to entrez
- automate STR inference + gumbo import in fingerprinting
- add cosmic actionability annotation to open cravat
- Arm-level CNA and aneuploidy score
- Generate RNAseq effective length matrix
- New cell lines in 23q2 release not at Cellosaurus (no RRID) HOT 1
- mask segmental duplication and repeat masker regions
- add quality filter and segdup/rm masking to merged mutation pipeline
- Reference files for PureCN pipeline HOT 8
- Availability of PureCN copy number calls for DepMap 23Q2 HOT 1
- refactor vcf_to_depmap that is compatible with latest MAF format HOT 2
- Duplicate RNA-seq omics profiles for cell lines HOT 2
- Convert the WGS_CCLE jupyter notebook into command line in the future
- creating mutation matrices too slow
- use mutation rescue list to un-mask cn genes
- add hotspot as a column in mutation table
- move TERT mutation rescue from postprocessing to vcf_to_depmap
- debug: cn postprocessing function blists wrong seq entries
- Are we able to download latest data showed in website from this site? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from depmap_omics.