Giter Club home page Giter Club logo

docker-python-nodejs's Introduction

🐳 Python with Node.js

Pulls CircleCI

Last updated by bot: 2024-06-12

The latest tag is currently:

  • Node.js: 22.x
  • npm: 10.x
  • yarn: stable
  • Python: latest
  • pip: latest
  • pipenv: latest
  • poetry: latest
  • uv: latest

🏷 Tags

To use a specific combination of Python and Node.js see the following table of available image tags.

Tag Python version Node.js version Distro
python3.12-nodejs22 3.12.4 22.3.0 bookworm
python3.12-nodejs22-bullseye 3.12.4 22.3.0 bullseye
python3.12-nodejs22-slim 3.12.4 22.3.0 slim
python3.12-nodejs22-alpine 3.12.4 22.3.0 alpine
python3.12-nodejs20 3.12.4 20.14.0 bookworm
python3.12-nodejs20-bullseye 3.12.4 20.14.0 bullseye
python3.12-nodejs20-slim 3.12.4 20.14.0 slim
python3.12-nodejs20-alpine 3.12.4 20.14.0 alpine
python3.12-nodejs18 3.12.4 18.20.3 bookworm
python3.12-nodejs18-bullseye 3.12.4 18.20.3 bullseye
python3.12-nodejs18-slim 3.12.4 18.20.3 slim
python3.12-nodejs18-alpine 3.12.4 18.20.3 alpine
python3.11-nodejs22 3.11.9 22.3.0 bookworm
python3.11-nodejs22-bullseye 3.11.9 22.3.0 bullseye
python3.11-nodejs22-slim 3.11.9 22.3.0 slim
python3.11-nodejs22-alpine 3.11.9 22.3.0 alpine
python3.11-nodejs20 3.11.9 20.14.0 bookworm
python3.11-nodejs20-bullseye 3.11.9 20.14.0 bullseye
python3.11-nodejs20-slim 3.11.9 20.14.0 slim
python3.11-nodejs20-alpine 3.11.9 20.14.0 alpine
python3.11-nodejs18 3.11.9 18.20.3 bookworm
python3.11-nodejs18-bullseye 3.11.9 18.20.3 bullseye
python3.11-nodejs18-slim 3.11.9 18.20.3 slim
python3.11-nodejs18-alpine 3.11.9 18.20.3 alpine
python3.10-nodejs22 3.10.14 22.3.0 bookworm
python3.10-nodejs22-bullseye 3.10.14 22.3.0 bullseye
python3.10-nodejs22-slim 3.10.14 22.3.0 slim
python3.10-nodejs22-alpine 3.10.14 22.3.0 alpine
python3.10-nodejs20 3.10.14 20.14.0 bookworm
python3.10-nodejs20-bullseye 3.10.14 20.14.0 bullseye
python3.10-nodejs20-slim 3.10.14 20.14.0 slim
python3.10-nodejs20-alpine 3.10.14 20.14.0 alpine
python3.10-nodejs18 3.10.14 18.20.3 bookworm
python3.10-nodejs18-bullseye 3.10.14 18.20.3 bullseye
python3.10-nodejs18-slim 3.10.14 18.20.3 slim
python3.10-nodejs18-alpine 3.10.14 18.20.3 alpine
python3.9-nodejs22 3.9.19 22.3.0 bookworm
python3.9-nodejs22-bullseye 3.9.19 22.3.0 bullseye
python3.9-nodejs22-slim 3.9.19 22.3.0 slim
python3.9-nodejs22-alpine 3.9.19 22.3.0 alpine
python3.9-nodejs20 3.9.19 20.14.0 bookworm
python3.9-nodejs20-bullseye 3.9.19 20.14.0 bullseye
python3.9-nodejs20-slim 3.9.19 20.14.0 slim
python3.9-nodejs20-alpine 3.9.19 20.14.0 alpine
python3.9-nodejs18 3.9.19 18.20.3 bookworm
python3.9-nodejs18-bullseye 3.9.19 18.20.3 bullseye
python3.9-nodejs18-slim 3.9.19 18.20.3 slim
python3.9-nodejs18-alpine 3.9.19 18.20.3 alpine
python3.8-nodejs22 3.8.19 22.3.0 bookworm
python3.8-nodejs22-bullseye 3.8.19 22.3.0 bullseye
python3.8-nodejs22-slim 3.8.19 22.3.0 slim
python3.8-nodejs22-alpine 3.8.19 22.3.0 alpine
python3.8-nodejs20 3.8.19 20.14.0 bookworm
python3.8-nodejs20-bullseye 3.8.19 20.14.0 bullseye
python3.8-nodejs20-slim 3.8.19 20.14.0 slim
python3.8-nodejs20-alpine 3.8.19 20.14.0 alpine
python3.8-nodejs18 3.8.19 18.20.3 bookworm
python3.8-nodejs18-bullseye 3.8.19 18.20.3 bullseye
python3.8-nodejs18-slim 3.8.19 18.20.3 slim
python3.8-nodejs18-alpine 3.8.19 18.20.3 alpine

Lovely! These tags are kept updated automatically when new minor or patch version are released by build_versions/main.py, which is run twice a day on CircleCI.

Image tags are built for linux/amd64 and linux/arm64 platforms, except for alpine which is only linux/amd64. See issue #70 for details.

Supported versions

Python version Start End
3.12 2023-10-02 2028-10
3.11 2022-10-24 2027-10
3.10 2021-10-04 2026-10
3.9 2020-10-05 2025-10
3.8 2019-10-14 2024-10
Node.js version Start End
v22 2024-04-24 2027-04-30
v20 2023-04-18 2026-04-30
v18 2022-04-19 2025-04-30

Versions are kept up to date using official sources. For Python we scrape the Supported Versions table at devguide.python.org/versions and for Node.js we fetch the release schedule JSON from github.com/nodejs/Release.

Typical tasks

# Pull from Docker Hub
docker pull nikolaik/python-nodejs:latest
# Build from GitHub
docker build -t nikolaik/python-nodejs github.com/nikolaik/docker-python-nodejs
# Run image
docker run -it nikolaik/python-nodejs bash

Use as base image

FROM nikolaik/python-nodejs:latest

USER pn
WORKDIR /home/pn/app

All images have a default user pn with uid 1000 and gid 1000.

Disclaimer

This is experimental and might break from time to time. Use at your own risk!

docker-python-nodejs's People

Contributors

aminsaedi avatar dependabot[bot] avatar felixonmars avatar macintacos avatar nikolaik avatar renovate[bot] avatar snpranav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-python-nodejs's Issues

Are the images still considered 'experimental'?

Thanks for publishing these images @nikolaik. Seems like they get quite a lot of pulls (10M+) and are sometimes used as a base for images built by established orgs - for example, in https://github.com/sourcegraph/scip-python.

But there's this:

This is experimental and might break from time to time. Use at your own risk!

I see this was added 6 years ago when the readme was first added. Is this still considered true or was that just at the start?

Edit: I just noticed #43 - this would possibly ensure some kind of stability as well.

Python2 Support

Some programs are required to run in a python2 environment

Update old yarn gpg key

Currently, when I build my image based on this image, it will generate this error

Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:4 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Get:5 https://deb.nodesource.com/node_8.x buster InRelease [4619 B]
Get:6 http://security.debian.org/debian-security buster/updates/main amd64 Packages [175 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7908 kB]
Err:4 https://dl.yarnpkg.com/debian stable InRelease
  The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
Get:8 http://deb.debian.org/debian buster-updates/main amd64 Packages [5792 B]
Get:9 https://deb.nodesource.com/node_8.x buster/main amd64 Packages [1008 B]
Reading package lists...
οΏ½[91mW: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.

It seems the prebuilt image of this dcoker-python-nodejs contains the old gpg key. Could you please update those images with new GPG key?

Thanks

FYI: yarnpkg/yarn#7866

Please publish stable version tags to docker hub

I'd like to be able to use this Docker image, but I need to have some control over when the build system uses new versions of node and python. Thus I cannot use the latest tag because you could bump the versions of node or python at any time.

Can you please publish the image to docker hub with a more stable tag that indicates the versions of node and python included?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
build_versions/dockerfiles.py
templates/alpine.Dockerfile
templates/debian.Dockerfile
github-actions
.github/workflows/build.yaml
  • actions/checkout v4
  • actions/setup-python v5
  • actions/checkout v4
  • actions/setup-python v5
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action v3
  • docker/login-action v3
  • docker/build-push-action v6
  • docker/build-push-action v6
  • actions/checkout v4
  • actions/setup-python v5
.github/workflows/tests.yaml
  • actions/checkout v4
  • actions/setup-python v5
  • codecov/codecov-action v4
pep621
pyproject.toml
  • dev/ruff ==0.4.9
  • dev/types-requests ==2.32.0.20240602
  • dev/types-beautifulsoup4 ==4.12.0.20240511
pyenv
.python-version
  • python 3.12.3

  • Check this box to trigger a request for Renovate to run again on this repository

Error starting container: container id XYZ cannot be mapped to a host id

We're getting the following error when attempting to start a container using the image nikolaik/python-nodejs:python3.8-nodejs14-slim:

failed to register layer: Error processing tar file(exit status 1): Container ID 1407182137 cannot be mapped to a host ID

This doc suggests the issue needs to be fixed by the image maintainer by updating a UID/GID in one of the image's files. Is this something can be looked into?

If this isn't something that should be addressed by the image maintainer feel free to close this, I'm not that well acquainted with Docker so a lot of the terms flying around here are a bit over my head.

Messing with Pterodactyl

Hi, I've installed nikolaik/python-nodejs docket image into my pterodactyl server. And its seems like running in directory / instead of /home/container/.

image

I'm still new in this, is there any way to solve this problem? And how do i run file through startup command in Pterodactyl panel?

Weird error re fonts

dear, my pdf assertion tests started failing today. stack is chrome, chromedriver, puppeteer. I checked the stack and the only thing changed since yesterday is your update to tag python3.10-nodejs16-slim in docker. I checked your commits and see no reason why this is failing. the assertion error in the tests is related to fonts. any idea?

OpenJDK installation is failing

OpenJDK installation is failing.

Hi, @nikolaik please could you advise how to solve the issue while installing RUN apt-get install -y openjdk-8-jdk. This step was working fine with the Node10 base image.

Tag release with proper version number to dockerhub

Hi,

Could you tag your builds with proper version number but not only latest for all images?
We are trying to use your image and we get different node and npm versions every here and there.

Thanks!

Brs
Wen

Poetry downgrade breaking Python on p3.9/n12

Hi @nikolaik!

First, thanks a lot for creating this super useful docker!
We use it in our CI and for some reason, it started failing since the last image update with the following error:

python: error while loading shared libraries: libpython3.9.so.1.0: cannot open shared object file: No such file or directory

We did not see any apparent changes in your latest image so we are a bit confused as too what might be happening...

Steps to reproduce:

Run docker run --rm -it --entrypoint bash nikolaik/python-nodejs:python3.9-nodejs12
Run python -> the error appears.

cc @laurentS

Error response from daemon

Am I missed something? πŸ€”

$ docker pull nikolaik/python3.8-nodejs16       

Using default tag: latest
Error response from daemon: pull access denied for nikolaik/python3.8-nodejs16, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

python-dev is not installed

I check for python-dev its not there

$ apt list --installed | grep python

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libpython-stdlib/now 2.7.16-1 amd64 [installed,local]
libpython2-stdlib/now 2.7.16-1 amd64 [installed,local]
libpython2.7-minimal/now 2.7.16-2+deb10u1 amd64 [installed,local]
libpython2.7-stdlib/now 2.7.16-2+deb10u1 amd64 [installed,local]
libpython3-stdlib/now 3.7.3-1 amd64 [installed,local]
libpython3.7-minimal/now 3.7.3-2+deb10u3 amd64 [installed,local]
libpython3.7-stdlib/now 3.7.3-2+deb10u3 amd64 [installed,local]
python-minimal/now 2.7.16-1 amd64 [installed,local]
python2-minimal/now 2.7.16-1 amd64 [installed,local]
python2.7-minimal/now 2.7.16-2+deb10u1 amd64 [installed,local]
python2.7/now 2.7.16-2+deb10u1 amd64 [installed,local]
python2/now 2.7.16-1 amd64 [installed,local]
python3-distutils/now 3.7.3-1 all [installed,local]
python3-lib2to3/now 3.7.3-1 all [installed,local]
python3-minimal/now 3.7.3-1 amd64 [installed,local]
python3.7-minimal/now 3.7.3-2+deb10u3 amd64 [installed,local]
python3.7/now 3.7.3-2+deb10u3 amd64 [installed,local]
python3/now 3.7.3-1 amd64 [installed,local]
python/now 2.7.16-1 amd64 [installed,local]

for the docker image
nikolaik/python-nodejs:python3.7-nodejs15

Its needed for psycopg2

i get this error

./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory

Bump GPG key

Hi!

I'm using the fabulous nikolaik/python-nodejs:python3.8-nodejs16 docker image and am getting expired GPG key errors on a apt-get update command. Looks like this has happened before (more recently #18). Could we trigger a rebuilt by any chance? Thanks!

poetry version outdated

I used image python3.9-nodejs16
Recently, I updated my poetry version to 1.3.1
then, that image's poetry is oudated so I can't use it.

please update!

FROM syntax doesn't work

When trying to use the FROM syntax with specific versions, this error is all I get

Step 1/21 : FROM nikolaik/python3.7-nodejs14
ERROR: Service 'XXX' failed to build : pull access denied for nikolaik/python3.7-nodejs14, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Publish image to Amazon ECR Public Gallery?

More of a request than an issue. It would be nice to publish the image to public ECR as well for those of us who have AWS-based workloads and want to avoid Docker Hub pull rate limiting

Deprecated keyring warning in `apt-get`

Running apt-get update in the new debian 12 image gives these two warnings:

W: https://dl.yarnpkg.com/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

W: https://deb.nodesource.com/node_20.x/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Error setting WORKDIR on latest image

Using the latest docker image, I've started getting errors on the second line of my Dockerfile:

https://github.com/lightdash/lightdash/blob/a14e470db04bffe791fa07d9484695bd8b3ae38b/dockerfile#L1-L3

when setting WORKDIR I get the following error during build (I'm using DOCKER_BUILDKIT=1)

Sep 1 04:01:14 PM  --------------------
Sep 1 04:01:14 PM     1 |     FROM nikolaik/python-nodejs:python3.8-nodejs14 AS base
Sep 1 04:01:14 PM     2 |
Sep 1 04:01:14 PM     3 | >>> WORKDIR /usr/app
Sep 1 04:01:14 PM     4 |
Sep 1 04:01:14 PM     5 |
Sep 1 04:01:14 PM  --------------------
Sep 1 04:01:14 PM  error: failed to solve: failed to compute cache key: mount callback failed on /run/user/1000/containerd-mount003940801: lchown /run/user/1000/containerd-mount003940801/root/.poetry/lib/poetry/_vendor/py2.7/backports/entry_points_selectable.py: invalid argument

We haven't changed anything in the code, so I'm not sure what could have happened.

I've seen #30 - which perhaps fixes this since the error message mentions the poetry library

`poetry` missing in `python3.8-*` images

On latest publish, it seems poetry has gone missing:

$ docker run -it nikolaik/python-nodejs:python3.8-nodejs16 bash
root@3e2fdb2a84e5:/# poetry -V
bash: poetry: command not found
$ docker run -it nikolaik/python-nodejs:python3.8-nodejs20 bash
root@a308d4ae2da1:/# poetry -V
bash: poetry: command not found

It's there in some of the images at least:

$ docker run -it nikolaik/python-nodejs:python3.11-nodejs18 bash
root@9700a20dcf13:/# poetry -V
Poetry (version 1.4.2)

Smoke tests

Run commands in the freshly built docker images to verify basic functionality

python --version
pip --version
poetry --version
pipenv --version
node --version
npm --version
yarn --version

Linux commands not available

Not able to run commands like 'sudo' , 'zip'.
Can you provide a valid reason for that?
need to run aws cli and send zip file for aws deployment and lambda functions

Bump GPG key again for python3.6-nodejs12 image

Hi,

I'm seeing on nikolaik/python-nodejs:python3.6-nodejs12 that when running apt-get update there's an expired key.

GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG xxxxxxxxxxxx Yarn Packaging <[email protected]>

I ran the workflow a couple of times and it still breaks.

Thanks!

GPG errors for yarn repository on apt-get update

Hi,

thanks for your work on this really useful project!

I'm currently using the nikolaik/python-nodejs:python3.7-nodejs14 docker image in a CI step and with the latest version there are problems when installing additional packages via apt-get because the signature of the yarn repository release file is invalid or the signing key is expired (yarnpkg/yarn#7866).

$ docker run -it --rm nikolaik/python-nodejs:python3.7-nodejs14 bash -xc "apt-get update && apt-get install --no-install-recommends -y libspatialindex-dev"
+ apt-get update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [121 kB]                                                                            
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]                                                                            
Get:4 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]                                            
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [266 kB]                            
Get:6 https://deb.nodesource.com/node_14.x buster InRelease [4584 B]
Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Err:4 https://dl.yarnpkg.com/debian stable InRelease
  The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
Get:8 https://deb.nodesource.com/node_14.x buster/main amd64 Packages [766 B]
Get:9 http://deb.debian.org/debian buster-updates/main amd64 Packages [7848 B]
Reading package lists... Done                          
W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

This probably affects all other debian based image variants. As a workaround I'm currently importing the gpg key manually before running apt-get update as yarnpkg/yarn#7866 (comment) suggests.

python3.7-nodejs14-slim tag is 3.7.10 not 3.7.11

Hi, thanks for these very usefull images!

I am currently facing an issue with the python3.7-nodejs14-slim tag. it is written on the README that the python version is 3.7.11 but it is in fact python 3.7.10, which breaks my poetry installation because of incompatible version with some packages 😬

$ docker run --rm -it nikolaik/python-nodejs:python3.7-nodejs14-slim python --version
Python 3.7.10

Is it a build step issue within the dockerfile or the readme is just not up to date?

EDIT: from python-nodejs:python3.7-nodejs16-slim, python version is indeed 3.7.11

Alpine support

It would be great if there could be alpine versions of this image. It is a very popular substitution for Debian because it is very lightweight.

The python image that this project depends on provides an alpine version.

Missing License Information

Hi @nikolaik

I see that there is no open source LICENSE information in the repository, is that on purpose or would you like to introduce a license doc ?

Thanks

Yarn missing in Alpine builds

Hello,

It seems yarn is missing in the latest Alpine builds:

nikolaik/python-nodejs:python3.11-nodejs20-alpine results in:

/bin/sh: yarn: not found

Kind regards,
Samuel

bad owner on `/root/.poetry/lib/poetry/_vendor/py2.7/backports/entry_points_selectable.py`

In docker.io/nikolaik/python-nodejs:python3.8-nodejs12@sha256:c13a83c8e4216dc6e6c3f07a0f6bd6f940ddca6cf4f8ea50bf179e4efe57c7a9, the owner of /root/.poetry/lib/poetry/_vendor/py2.7/backports/entry_points_selectable.py has a nonexistent uid/gid.

root@123456789abc:~/.poetry/lib/poetry/_vendor/py2.7/backports# ls -l
total 16
-rw-r--r-- 1 root       root        212 Aug 19 16:53 __init__.py
drwxr-xr-x 2 root       root       4096 Sep  1 00:21 configparser
-rw-r--r-- 1 1407182137 1059092950 7444 Aug 19 16:55 entry_points_selectable.py

(In practice, this means that this image can't be used with a rootless docker because the uid/gid are above 65535.)

Not sure why only this file; everything else under /root/.poetry seems to be fine.

seems to be broken on the python side

I've been using python3.7-nodejs10 for a while now

Since the new update,
I've not been able to use pipenv to install dependencies
ends with error like so

An error occurred while installing zope.interface==4.5.0 --hash=sha256:21506674d30c009271fe68a242d330c83b1b9d76d62d03d87e1e9528c61beea6 --hash=sha256:3d184aff0756c44fff7de69eb4cd5b5311b6f452d4de28cb08343b3f21993763 --hash=sha256:40c89d3a4e7e6c20db80be638a0a2be103b659ae3b2fc92e25ef1c7ac11be798 --hash=sha256:425e1458d7b893f3ae2fb1bd8344e7bb0beaa114cdc91299c797442638021a17 --hash=sha256:467d364b24cb398f76ad5e90398d71b9325eb4232be9e8a50d6a3b3c7a1c8789 --hash=sha256:4d17483ec4177ee085e690d8d4104de913392250bc50f41fb240c9f378bfb88b --hash=sha256:57c38470d9f57e37afb460c399eb254e7193ac7fb8042bd09bdc001981a9c74c --hash=sha256:727aa737a48dd33d6859296f15edb54e85ccdfa5667513f7a50daf362b3df75b --hash=sha256:7307f7e341f47f057756e1e0e9f5bad85d4cf55a6a8aaafe681e2e5e5dd79446 --hash=sha256:9ada83f4384bbb12dedc152bcdd46a3ac9f5f7720d43ac3ce3e8e8b91d733c10 --hash=sha256:a1daf9c5120f3cc6f2b5fef8e1d2a3fb7bbbb20ed4bfdc25bc8364bc62dcf54b --hash=sha256:aa1f22d5380d440c78bd9b13dbe697292422277a30eeabcd0ba66b6e37a25ef1 --hash=sha256:b445e2d58d8faa94a9ae863ed10c661e05d7ba6ce00548867a0153e6d927e4a2 --hash=sha256:c2a0ba07228921393b0e28d7306bf8652d5d392cff7eea3f4c0ba599b28f85de --hash=sha256:e6b77ae84f2b8502d99a7855fa33334a1eb6159de45626905cb3e454c023f339 --hash=sha256:e881ef610ff48aece2f4ee2af03d2db1a146dc7c705561bd6089b2356f61641f --hash=sha256:ec3cdfb92f714fc02aaf390ee34e7fa636a0478a0976733ac2b39bc23b11a095 --hash=sha256:ef4b9bf3ff28a874a2becda91c281ef4dbc89f9ceacfb1d11040893080a48e18 --hash=sha256:f41037260deaacb875db250021fe883bf536bf6414a4fd25b25059b02e31b120! Will try again.
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)

Can't install numpy. Running cythonize failed

Hello,

I suddenly started to have this error when I try to install numpy. It's very weird that it is no longer able to find Cython! Any idea how to fix it?

I am using the image from bitbucket as

image: nikolaik/python-nodejs

An error occurred while installing numpy==1.20.3 --hash=sha256:6690080810f77485667bfbff4f69d717c3be25e5b11bb2073e76bb3f578d99b4 --hash=sha256:e515c9a93aebe27166ec9593411c58494fa98e5fcc219e47260d9ab8a1cc7f9f --hash=sha256:f1452578d0516283c87608a5a5548b0cdde15b99650efdfd85182102ef7a7c17 --hash=sha256:43909c8bb289c382170e0282158a38cf306a8ad2ff6dfadc447e90f9961bef43 --hash=sha256:16f221035e8bd19b9dc9a57159e38d2dd060b48e93e1d843c49cb370b0f415fd --hash=sha256:c1c09247ccea742525bdb5f4b5ceeacb34f95731647fe55774aa36557dbb5fa4 --hash=sha256:830b044f4e64a76ba71448fce6e604c0fc47a0e54d8f6467be23749ac2cbd2fb --hash=sha256:ea9cff01e75a956dbee133fa8e5b68f2f92175233de2f88de3a682dd94deda65 --hash=sha256:e55185e51b18d788e49fe8305fd73ef4470596b33fc2c1ceb304566b99c71a69 --hash=sha256:6ca2b85a5997dabc38301a22ee43c82adcb53ff660b89ee88dded6b33687e1d8 --hash=sha256:db250fd3e90117e0312b611574cd1b3f78bec046783195075cbd7ba9c3d73f16 --hash=sha256:8b7bb4b9280da3b2856cb1fc425932f46fba609819ee1c62256f61799e6a51d2 --hash=sha256:c5bf0e132acf7557fc9bb8ded8b53bbbbea8892f3c9a1738205878ca9434206a --hash=sha256:55b745fca0a5ab738647d0e4db099bd0a23279c32b31a783ad2ccea729e632df --hash=sha256:637d827248f447e63585ca3f4a7d2dfaa882e094df6cfa177cc9cf9cd6cdf6d2 --hash=sha256:a9c65473ebc342715cb2d7926ff1e202c26376c0dcaaee85a1fd4b8d8c1d3b2f --hash=sha256:5d050e1e4bc9ddb8656d7b4f414557720ddcca23a5b88dd7cff65e847864c400 --hash=sha256:f39a995e47cb8649673cfa0579fbdd1cdd33ea497d1728a6cb194d6252268e48 --hash=sha256:1676b0a292dd3c99e49305a16d7a9f42a4ab60ec522eac0d3dd20cdf362ac010 --hash=sha256:67d44acb72c31a97a3d5d33d103ab06d8ac20770e1c5ad81bdb3f0c086a56cf6 --hash=sha256:66fbc6fed94a13b9801fb70b96ff30605ab0a123e775a5e7a26938b717c5d71a --hash=sha256:70eb5808127284c4e5c9e836208e09d685a7978b6a216db85960b1a112eeace8 --hash=sha256:4e465afc3b96dbc80cf4a5273e5e2b1e3451286361b4af70ce1adb2984d392f9 --hash=sha256:6e51534e78d14b4a009a062641f465cfaba4fdcb046c3ac0b1f61dd97c861b1b! Will try again.
Looking in indexes: https://pypi.python.org/simple
Ignoring pywin32: markers 'platform_system == "Windows"' don't match your environment
Installing initially failed dependencies...
[InstallError]: File "/usr/local/lib/python3.10/site-packages/pipenv/cli/command.py", line 233, in install
[InstallError]: retcode = do_install(
[InstallError]: File "/usr/local/lib/python3.10/site-packages/pipenv/core.py", line 2052, in do_install
[InstallError]: do_init(
[InstallError]: File "/usr/local/lib/python3.10/site-packages/pipenv/core.py", line 1304, in do_init
[InstallError]: do_install_dependencies(
[InstallError]: File "/usr/local/lib/python3.10/site-packages/pipenv/core.py", line 899, in do_install_dependencies
[InstallError]: batch_install(
[InstallError]: File "/usr/local/lib/python3.10/site-packages/pipenv/core.py", line 796, in batch_install
[InstallError]: _cleanup_procs(procs, failed_deps_queue, retry=retry)
[InstallError]: File "/usr/local/lib/python3.10/site-packages/pipenv/core.py", line 703, in _cleanup_procs
[InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: Looking in indexes: https://pypi.python.org/simple
[pipenv.exceptions.InstallError]: Collecting numpy==1.20.3
[pipenv.exceptions.InstallError]: Using cached numpy-1.20.3.zip (7.8 MB)
[pipenv.exceptions.InstallError]: Building wheels for collected packages: numpy
[pipenv.exceptions.InstallError]: Building wheel for numpy (setup.py): started
[pipenv.exceptions.InstallError]: Building wheel for numpy (setup.py): finished with status 'error'
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]: command: /root/.local/share/virtualenvs/build-3vGKWv3F/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py'"'"'; file='"'"'/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-bv_4pi7m
[pipenv.exceptions.InstallError]: cwd: /tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/
[pipenv.exceptions.InstallError]: Complete output (34 lines):
[pipenv.exceptions.InstallError]: /tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py:66: RuntimeWarning: NumPy 1.20.3 may not yet support Python 3.10.
[pipenv.exceptions.InstallError]: warnings.warn(
[pipenv.exceptions.InstallError]: Running from numpy source directory.
[pipenv.exceptions.InstallError]: Cythonizing sources
[pipenv.exceptions.InstallError]: Processing numpy/random/_bounded_integers.pxd.in
[pipenv.exceptions.InstallError]: Processing numpy/random/bit_generator.pyx
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 59, in process_pyx
[pipenv.exceptions.InstallError]: from Cython.Compiler.Version import version as cython_version
[pipenv.exceptions.InstallError]: ModuleNotFoundError: No module named 'Cython'
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: During handling of the above exception, another exception occurred:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 235, in
[pipenv.exceptions.InstallError]: main()
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 231, in main
[pipenv.exceptions.InstallError]: find_process_files(root_dir)
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 222, in find_process_files
[pipenv.exceptions.InstallError]: process(root_dir, fromfile, tofile, function, hash_db)
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 188, in process
[pipenv.exceptions.InstallError]: processor_function(fromfile, tofile)
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 64, in process_pyx
[pipenv.exceptions.InstallError]: raise OSError('Cython needs to be installed in Python as a module')
[pipenv.exceptions.InstallError]: OSError: Cython needs to be installed in Python as a module
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "", line 1, in
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py", line 513, in
[pipenv.exceptions.InstallError]: setup_package()
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py", line 493, in setup_package
[pipenv.exceptions.InstallError]: generate_cython()
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py", line 290, in generate_cython
[pipenv.exceptions.InstallError]: raise RuntimeError("Running cythonize failed!")
[pipenv.exceptions.InstallError]: RuntimeError: Running cythonize failed!
[pipenv.exceptions.InstallError]: ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Failed building wheel for numpy
[pipenv.exceptions.InstallError]: Running setup.py clean for numpy
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]: command: /root/.local/share/virtualenvs/build-3vGKWv3F/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py'"'"'; file='"'"'/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' clean --all
[pipenv.exceptions.InstallError]: cwd: /tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad
[pipenv.exceptions.InstallError]: Complete output (12 lines):
[pipenv.exceptions.InstallError]: /tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py:66: RuntimeWarning: NumPy 1.20.3 may not yet support Python 3.10.
[pipenv.exceptions.InstallError]: warnings.warn(
[pipenv.exceptions.InstallError]: Running from numpy source directory.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: setup.py clean is not supported, use one of the following instead:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: - git clean -xdf (cleans all files)
[pipenv.exceptions.InstallError]: - git clean -Xdf (cleans all versioned files, doesn't touch
[pipenv.exceptions.InstallError]: files that aren't checked into the git repo)
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: Add --force to your command to use it anyway if you must (unsupported).
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Failed cleaning build dir for numpy
[pipenv.exceptions.InstallError]: Failed to build numpy
[pipenv.exceptions.InstallError]: Installing collected packages: numpy
[pipenv.exceptions.InstallError]: Running setup.py install for numpy: started
[pipenv.exceptions.InstallError]: Running setup.py install for numpy: finished with status 'error'
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]: command: /root/.local/share/virtualenvs/build-3vGKWv3F/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py'"'"'; file='"'"'/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-a7kgpscs/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/virtualenvs/build-3vGKWv3F/include/site/python3.10/numpy
[pipenv.exceptions.InstallError]: cwd: /tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/
[pipenv.exceptions.InstallError]: Complete output (43 lines):
[pipenv.exceptions.InstallError]: /tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py:66: RuntimeWarning: NumPy 1.20.3 may not yet support Python 3.10.
[pipenv.exceptions.InstallError]: warnings.warn(
[pipenv.exceptions.InstallError]: Running from numpy source directory.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: Note: if you need reliable uninstall behavior, then install
[pipenv.exceptions.InstallError]: with pip instead of using setup.py install:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: - pip install . (from a git repo or downloaded source
[pipenv.exceptions.InstallError]: release)
[pipenv.exceptions.InstallError]: - pip install numpy (last NumPy release on PyPi)
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: Cythonizing sources
[pipenv.exceptions.InstallError]: numpy/random/_bounded_integers.pxd.in has not changed
[pipenv.exceptions.InstallError]: Processing numpy/random/bit_generator.pyx
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 59, in process_pyx
[pipenv.exceptions.InstallError]: from Cython.Compiler.Version import version as cython_version
[pipenv.exceptions.InstallError]: ModuleNotFoundError: No module named 'Cython'
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: During handling of the above exception, another exception occurred:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 235, in
[pipenv.exceptions.InstallError]: main()
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 231, in main
[pipenv.exceptions.InstallError]: find_process_files(root_dir)
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 222, in find_process_files
[pipenv.exceptions.InstallError]: process(root_dir, fromfile, tofile, function, hash_db)
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 188, in process
[pipenv.exceptions.InstallError]: processor_function(fromfile, tofile)
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/tools/cythonize.py", line 64, in process_pyx
[pipenv.exceptions.InstallError]: raise OSError('Cython needs to be installed in Python as a module')
[pipenv.exceptions.InstallError]: OSError: Cython needs to be installed in Python as a module
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "", line 1, in
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py", line 513, in
[pipenv.exceptions.InstallError]: setup_package()
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py", line 493, in setup_package
[pipenv.exceptions.InstallError]: generate_cython()
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py", line 290, in generate_cython
[pipenv.exceptions.InstallError]: raise RuntimeError("Running cythonize failed!")
[pipenv.exceptions.InstallError]: RuntimeError: Running cythonize failed!
[pipenv.exceptions.InstallError]: ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1: /root/.local/share/virtualenvs/build-3vGKWv3F/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py'"'"'; file='"'"'/tmp/pip-install-33lxl0_u/numpy_a536105d9e744fad8619f05a8720faad/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-a7kgpscs/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/virtualenvs/build-3vGKWv3F/include/site/python3.10/numpy Check the logs for full command output.
ERROR: Couldn't install package: numpy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.