Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,584
Community Members
 
Community Events
176
Community Groups

How to have python in Bamboo environment?

I am trying to run a python script in my Bamboo Pipeline. However I am getting the following errors:

 

sudo: no tty present and no askpass program specified

line 2: pip: command not found

line 3: pip: command not found

 

Here is my bamboo.yaml file:

Broken Links:
  tasks:
    - checkout:
        force-clean-build: 'false'
        description: Checkout Default Repository
    - script:
        interpreter: BINSH_OR_CMDEXE
        scripts:
        - |-
          sudo yum install python3-pip
          pip install beautifulsoup4
          pip install lxml
          python broken_links.py

I suspect that the Bamboo environment does not have python. How do I know if my environment has python?

1 answer

0 votes

Hello @Chong Jing Hong

That's not Bamboo fault. You need to adjust your Operating system to make it work.

Make sure to:

  1. In your sudo configuration file (normally /etc/sudoers) make sure to set requiretty to false either globally as a Default setting or per rule for the yum install permission
  2. Newer versions of pip are now pip3, along with python is now python3.

 

Regards,

Eduardo Alvarenga
Atlassian Support APAC

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events