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

Bitbucket-pipeline Python pandas module not found

tobi_r December 21, 2017

Hello everybody out there using Bitbucket,

 

In my pipeline for running a simple python script,

I get an error about the pandas module not being found:

image: python:3.5.1

pipelines:
  default:
    - step:
        script:
          - apt-get update
          - apt-get install -y python3-pandas
          - apt-get install -y python3-matplotlib
          - pip install pandas
          - pip install matplotlib
    - step:
        script:
          - cd ./src/
          - python script.py

Since I install the package which doesn't give me an error, I would actually expect it to work.

Could anyone of you point me towards additional diagnostics to run in order to pin down the problem?

1 answer

0 votes
edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 21, 2017

Hi,

Try installing using .. which is for python3

pip3 install pandas

 

tobi_r December 22, 2017

Hi Edwin,

Thanks a lot for your answer. I tried your suggestion, but the error message remains.

edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 22, 2017

How about running the script with python3

python3 script.py
tobi_r December 24, 2017

Hi Edwin,

Thanks for your additional suggestion.

The error message does unfortunately still remain.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events