The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to execute python script in pipeline, fails to install items from requirements.txt

Alan Lanteigne
Contributor
April 24, 2024

I have some very basic packages needed by my script.  When the pipeline runs, it fails because it can't find/install the packages.  Requirements.txt includes:

requests
datetime
re
json
shutil
signal
enum

What am I doing wrong?

 

Thanks!

 

2s
1
+ pip install -r requirements.txt
2
Collecting requests (from -r requirements.txt (line 1))
3
Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
4
Collecting datetime (from -r requirements.txt (line 2))
5
Downloading DateTime-5.5-py3-none-any.whl.metadata (33 kB)
6
ERROR: Could not find a version that satisfies the requirement re (from versions: none)
7
ERROR: No matching distribution found for re
8

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 25, 2024

G'day, @Alan Lanteigne 

The error could mean two things:

  1. Your docker image is running an older version of Pip
  2. The package you're trying to install is unavailable for your Python version.

If you use the default image, you can check the Python version here and see if the version is supported for https://pypi.org/project/DateTime/

Regards,
Syahrul

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events