René's URL Explorer Experiment


Title: running pip install -r requirements.txt fails when trying to build an image · Issue #874 · docker-library/python · GitHub

Open Graph Title: running pip install -r requirements.txt fails when trying to build an image · Issue #874 · docker-library/python

X Title: running pip install -r requirements.txt fails when trying to build an image · Issue #874 · docker-library/python

Description: My Dockerfile: FROM python:3.7 WORKDIR /fastapi-app COPY requirements.txt /tmp/ RUN pip install --requirement /tmp/requirements.txt COPY . /tmp/ COPY ./app ./app CMD ["python","./app/main.py"]` requirements.txt: annotated-types==0.5.0 an...

Open Graph Description: My Dockerfile: FROM python:3.7 WORKDIR /fastapi-app COPY requirements.txt /tmp/ RUN pip install --requirement /tmp/requirements.txt COPY . /tmp/ COPY ./app ./app CMD ["python","./app/main.py"]` req...

X Description: My Dockerfile: FROM python:3.7 WORKDIR /fastapi-app COPY requirements.txt /tmp/ RUN pip install --requirement /tmp/requirements.txt COPY . /tmp/ COPY ./app ./app CMD ["python","./app...

Opengraph URL: https://github.com/docker-library/python/issues/874

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"running pip install -r requirements.txt fails when trying to build an image","articleBody":"My Dockerfile:\r\n```dockerfile\r\nFROM python:3.7\r\n\r\nWORKDIR /fastapi-app\r\n\r\nCOPY requirements.txt /tmp/\r\nRUN pip install --requirement /tmp/requirements.txt\r\nCOPY . /tmp/\r\n\r\nCOPY ./app ./app\r\n\r\nCMD [\"python\",\"./app/main.py\"]`\r\n```\r\nrequirements.txt:\r\n```\r\nannotated-types==0.5.0\r\nanyio==3.7.1\r\nclick==8.1.7\r\nexceptiongroup==1.1.3\r\nfastapi==0.103.2\r\nh11==0.14.0\r\nidna==3.4\r\nimportlib-metadata==6.7.0\r\npydantic==2.4.2\r\npydantic_core==2.10.1\r\nsniffio==1.3.0\r\nstarlette==0.27.0\r\ntyping_extensions==4.7.1\r\nuvicorn==0.22.0\r\nuvloop==0.17.0\r\nwebsockets==11.0.3\r\nzipp==3.15.0\r\n```\r\nerror:\r\n```console\r\ndocker build -t python-fastapi .\r\n[+] Building 5.1s (8/10)                                                                                                                                                                                                             \r\n =\u003e [internal] load build definition from Dockerfile                                                                                                                                                                            0.0s\r\n =\u003e =\u003e transferring dockerfile: 225B                                                                                                                                                                                            0.0s\r\n =\u003e [internal] load .dockerignore                                                                                                                                                                                               0.0s\r\n =\u003e =\u003e transferring context: 2B                                                                                                                                                                                                 0.0s\r\n =\u003e [internal] load metadata for docker.io/library/python:3.7                                                                                                                                                                   0.0s\r\n =\u003e [internal] load build context                                                                                                                                                                                               1.9s\r\n =\u003e =\u003e transferring context: 37.49MB                                                                                                                                                                                            1.9s\r\n =\u003e [1/6] FROM docker.io/library/python:3.7                                                                                                                                                                                     0.0s\r\n =\u003e CACHED [2/6] WORKDIR /fastapi-app                                                                                                                                                                                           0.0s\r\n =\u003e [3/6] COPY requirements.txt /tmp/                                                                                                                                                                                           0.3s\r\n =\u003e ERROR [4/6] RUN pip install --requirement /tmp/requirements.txt                                                                                                                                                             2.8s\r\n------                                                                                                                                                                                                                               \r\n \u003e [4/6] RUN pip install --requirement /tmp/requirements.txt:                                                                                                                                                                        \r\n#8 2.136 Collecting annotated-types==0.5.0                                                                                                                                                                                           \r\n#8 2.267   Downloading annotated_types-0.5.0-py3-none-any.whl (11 kB)                                                                                                                                                                \r\n#8 2.349 Collecting anyio==3.7.1                                                                                                                                                                                                     \r\n#8 2.367   Downloading anyio-3.7.1-py3-none-any.whl (80 kB)                                                                                                                                                                          \r\n#8 2.379 ERROR: Exception:\r\n#8 2.379 Traceback (most recent call last):\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/cli/base_command.py\", line 160, in exc_logging_wrapper\r\n#8 2.379     status = run_func(*args)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/cli/req_command.py\", line 247, in wrapper\r\n#8 2.379     return func(self, options, args)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/commands/install.py\", line 420, in run\r\n#8 2.379     reqs, check_supported_wheels=not options.target_dir\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/resolver.py\", line 93, in resolve\r\n#8 2.379     collected.requirements, max_rounds=try_to_avoid_resolution_too_deep\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py\", line 481, in resolve\r\n#8 2.379     state = resolution.resolve(requirements, max_rounds=max_rounds)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py\", line 348, in resolve\r\n#8 2.379     self._add_to_criteria(self.state.criteria, r, parent=None)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py\", line 172, in _add_to_criteria\r\n#8 2.379     if not criterion.candidates:\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_vendor/resolvelib/structs.py\", line 151, in __bool__\r\n#8 2.379     return bool(self._sequence)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py\", line 155, in __bool__\r\n#8 2.379     return any(self)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py\", line 143, in \u003cgenexpr\u003e\r\n#8 2.379     return (c for c in iterator if id(c) not in self._incompatible_ids)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py\", line 47, in _iter_built\r\n#8 2.379     candidate = func()\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/factory.py\", line 211, in _make_candidate_from_link\r\n#8 2.379     version=version,\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 303, in __init__\r\n#8 2.379     version=version,\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 162, in __init__\r\n#8 2.379     self.dist = self._prepare()\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 231, in _prepare\r\n#8 2.379     dist = self._prepare_distribution()\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 308, in _prepare_distribution\r\n#8 2.379     return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py\", line 491, in prepare_linked_requirement\r\n#8 2.379     return self._prepare_linked_requirement(req, parallel_builds)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py\", line 542, in _prepare_linked_requirement\r\n#8 2.379     hashes,\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py\", line 170, in unpack_url\r\n#8 2.379     hashes=hashes,\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py\", line 107, in get_http_url\r\n#8 2.379     from_path, content_type = download(link, temp_dir.path)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/network/download.py\", line 147, in __call__\r\n#8 2.379     for chunk in chunks:\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_internal/cli/progress_bars.py\", line 52, in _rich_progress_bar\r\n#8 2.379     with progress:\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_vendor/rich/progress.py\", line 1169, in __enter__\r\n#8 2.379     self.start()\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_vendor/rich/progress.py\", line 1160, in start\r\n#8 2.379     self.live.start(refresh=True)\r\n#8 2.379   File \"/usr/local/lib/python3.7/site-packages/pip/_vendor/rich/live.py\", line 132, in start\r\n#8 2.379     self._refresh_thread.start()\r\n#8 2.379   File \"/usr/local/lib/python3.7/threading.py\", line 852, in start\r\n#8 2.379     _start_new_thread(self._bootstrap, ())\r\n#8 2.379 RuntimeError: can't start new thread\r\n#8 2.628 \r\n#8 2.628 [notice] A new release of pip is available: 23.0.1 -\u003e 23.2.1\r\n#8 2.628 [notice] To update, run: pip install --upgrade pip\r\n------\r\nexecutor failed running [/bin/sh -c pip install --requirement /tmp/requirements.txt]: exit code: 2\r\n```\r\n\r\nI tried googling for my issue but nothing seems to be helpful in my case. any suggestions what it might be?","author":{"url":"https://github.com/exxterixs","@type":"Person","name":"exxterixs"},"datePublished":"2023-10-06T14:20:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/874/python/issues/874"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ffb8003f-f8fe-57c2-654c-6f8165cdcecb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8208:9B76F:29F157:3AAA9A:6A59C6F1
html-safe-nonce87f3a2183bdcceabd1b3fc563a0ea07a8de76ea67dab961280372144a0c44324
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjA4OjlCNzZGOjI5RjE1NzozQUFBOUE6NkE1OUM2RjEiLCJ2aXNpdG9yX2lkIjoiNzY3MjI4MTE4ODUxNTAzODk2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac51cb265f50cf3c84229e6186905bc71116ebf8e7ba0e8628e1261c232eb00e53
hovercard-subject-tagissue:1930279378
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-library/python/874/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1ff97ef7a2c7264934dcc1d952544cb7530e1748a8c1dad4263a1789f26c9c3b/docker-library/python/issues/874
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1ff97ef7a2c7264934dcc1d952544cb7530e1748a8c1dad4263a1789f26c9c3b/docker-library/python/issues/874
og:image:altMy Dockerfile: FROM python:3.7 WORKDIR /fastapi-app COPY requirements.txt /tmp/ RUN pip install --requirement /tmp/requirements.txt COPY . /tmp/ COPY ./app ./app CMD ["python","./app/main.py"]` req...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameexxterixs
hostnamegithub.com
expected-hostnamegithub.com
Noneba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353
turbo-cache-controlno-preview
go-importgithub.com/docker-library/python git https://github.com/docker-library/python.git
octolytics-dimension-user_id7739233
octolytics-dimension-user_logindocker-library
octolytics-dimension-repository_id21054928
octolytics-dimension-repository_nwodocker-library/python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21054928
octolytics-dimension-repository_network_root_nwodocker-library/python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseab680789ae4a316cdaf0d5a292a1760140931cc4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/docker-library/python/issues/874#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-library%2Fpython%2Fissues%2F874
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-library%2Fpython%2Fissues%2F874
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=docker-library%2Fpython
Reloadhttps://github.com/docker-library/python/issues/874
Reloadhttps://github.com/docker-library/python/issues/874
Reloadhttps://github.com/docker-library/python/issues/874
Please reload this pagehttps://github.com/docker-library/python/issues/874
docker-library https://github.com/docker-library
pythonhttps://github.com/docker-library/python
Notifications https://github.com/login?return_to=%2Fdocker-library%2Fpython
Fork 1.1k https://github.com/login?return_to=%2Fdocker-library%2Fpython
Star 2.8k https://github.com/login?return_to=%2Fdocker-library%2Fpython
Code https://github.com/docker-library/python
Issues 27 https://github.com/docker-library/python/issues
Pull requests 5 https://github.com/docker-library/python/pulls
Discussions https://github.com/docker-library/python/discussions
Actions https://github.com/docker-library/python/actions
Projects https://github.com/docker-library/python/projects
Security and quality 0 https://github.com/docker-library/python/security
Insights https://github.com/docker-library/python/pulse
Code https://github.com/docker-library/python
Issues https://github.com/docker-library/python/issues
Pull requests https://github.com/docker-library/python/pulls
Discussions https://github.com/docker-library/python/discussions
Actions https://github.com/docker-library/python/actions
Projects https://github.com/docker-library/python/projects
Security and quality https://github.com/docker-library/python/security
Insights https://github.com/docker-library/python/pulse
running pip install -r requirements.txt fails when trying to build an imagehttps://github.com/docker-library/python/issues/874#top
https://github.com/exxterixs
exxterixshttps://github.com/exxterixs
on Oct 6, 2023https://github.com/docker-library/python/issues/874#issue-1930279378
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.