Pipelines can't find package version on PyPi - how to report issue
Asked by stevemapes:

I noticed that one of my projects started failing on pipelines due to the version of the asgiref package I required not being found  

ERROR: Could not find a version that satisfies the requirement asgiref==3.5.0  

The only versions it seems to support are up to 3.4.1, the previous release from last July.  

The thing is 3.5.0 is the current version of that package and has been since January,  

Pypi - <https://pypi.org/project/asgiref/>  
Django Release - <https://github.com/django/asgiref/blob/main/CHANGELOG.txt>  

I've upgraded to it locally as well a manually on some deployment for improvement and for the RuntimeError fixes  

My builds don't use caches so it's not that. I've tried reporting the issue but I don't have a paid account. Is there a work around to force pipeline to update it's Pypi cache or do I just have to downgrading the package version within the build just so the CI passes which seems madness.  

\*\*update\*\*  

The issue also affects Coverage where it thinks 6.2 is the latest version and 6.3.2 is out. 6.3.0 was also release in Jan 2022 so it's like anything release this year can not be used which is making builds impossible  

ERROR: Could not find a version that satisfies the requirement coverage==6.3.2 (from versions: 3.0b3, 3.0, 3.0.1, 3.1b1, 3.1, 3.2b1, 3.2b2, 3.2b3, 3.2b4, 3.2, 3.3, 3.3.1, 3.4b1, 3.4b2, 3.4, 3.5b1, 3.5, 3.5.1b1, 3.5.1, 3.5.2b1, 3.5.2, 3.5.3, 3.6b1, 3.6b2, 3.6b3, 3.6, 3.7, 3.7.1, 4.0a1, 4.0a2, 4.0a3, 4.0a4, 4.0a5, 4.0a6, 4.0b1, 4.0b2, 4.0b3, 4.0, 4.0.1, 4.0.2, 4.0.3, 4.1b1, 4.1b2, 4.1b3, 4.1, 4.2b1, 4.2, 4.3, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.4b1, 4.4, 4.4.1, 4.4.2, 4.5, 4.5.1, 4.5.2, 4.5.3, 4.5.4, 5.0a1, 5.0a2, 5.0a3, 5.0a4, 5.0a5, 5.0a6, 5.0a7, 5.0a8, 5.0b1, 5.0b2, 5.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.1, 5.2, 5.2.1, 5.3, 5.3.1, 5.4, 5.5, 5.6b1, 6.0b1, 6.0, 6.0.1, 6.0.2, 6.1, 6.1.1, 6.1.2, 6.2)  
ERROR: No matching distribution found for coverage==6.3.2

<br />

<br />

It's a shame as I moved from GitHub to BitBucket back in 2014 but it's with the increase in downtime, build limits and now this I need to accelerate moving back to GitHub as it's causing CI/CD issues where I'll have to turn off pipelines completely soon on all my clients projects


Answers:
author: Norbert C
body: Hi [@stevemapes](/t5/user/viewprofilepage/user-id/1659867)

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community!

Based on my observation, this is not a Pipelines issue, but rather an issue with the build/docker image which is used by your build. To verify this, can I ask you to run the same build locally as in Pipelines and let us know if the issue still persists? Steps to reproduce

```
git clone https://<user_name>@bitbucket.org/<workspace>/<repository>
cd <repository>
git checkout <commit sha>
docker run -it --volume=<pathtotheclonedrepo>:/<clonedrepo> --workdir="/<clonedrepo>" --memory=8g --memory-swap=8g --memory-swappiness=0 --entrypoint=/bin/bash <imagewhichisusedbyyourbuild>
```

Once you're in the running docker container, can you run the same exact steps what's in your build and let us know if you experience the same behavior as in Pipelines? I'm asking you to do this as running the same build locally in Docker emulates the same environment as Pipelines.

We're looking forward to hear from you.  

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: stevemapes
body: Thanks for that [@Norbert C](/t5/user/viewprofilepage/user-id/1190200) you're right that appears to be the issue.  

I was using the basic Python images of python:3.8, python:3.9 and python:3.10 but the project now required GDAL support as is uses Geo-Django so I need additional dependencies. I swapped over to using thinkwhere/gdal-python:latest and that and some others seem to have issues so I will look to move back to the original ones and add in installation of dependencies during the steps from apt


author: Norbert C
body: You're welcome [@stevemapes](/t5/user/viewprofilepage/user-id/1659867) I'm glad to hear I was able to help :)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pip

python