You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can install psycopg in my notebook instance when it's already started without any problems.
Now I wanted to create a lifecycle configuration so that all required dependencies are already installed when notebook instance is started.
Here's my script:
But psycopg dependencies not installing with error
Collecting psycopg-c==3.1.17 (from psycopg[c])
Downloading psycopg-c-3.1.17.tar.gz (561 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 561.4/561.4 kB 55.5 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
running dist_info
creating /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info
writing /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/SOURCES.txt'
couldn't run 'pg_config' --includedir: [Errno 2] No such file or directory: 'pg_config'
error: [Errno 2] No such file or directory: 'pg_config'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
running dist_info
creating /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info
writing /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/SOURCES.txt'
couldn't run 'pg_config' --includedir: [Errno 2] No such file or directory: 'pg_config'
error: [Errno 2] No such file or directory: 'pg_config'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
The text was updated successfully, but these errors were encountered:
I can install
psycopg
in my notebook instance when it's already started without any problems.Now I wanted to create a lifecycle configuration so that all required dependencies are already installed when notebook instance is started.
Here's my script:
But
psycopg
dependencies not installing with errorFull LifeCycleConfig logs look like:
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
running dist_info
creating /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info
writing /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-5gamrb8j/psycopg_c.egg-info/SOURCES.txt'
couldn't run 'pg_config' --includedir: [Errno 2] No such file or directory: 'pg_config'
error: [Errno 2] No such file or directory: 'pg_config'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
The text was updated successfully, but these errors were encountered: