Hello! I'm running into an issue when "semver" package are installed in one of the step in the bitbucket-pipelines.yml, but upon running the python code I see the following error:
Traceback (most recent call last):
File "/opt/atlassian/pipelines/agent/build/<MyRepo>/main.py", line 2, in <module>
import semver
ModuleNotFoundError: No module named 'semver'
@Nozim Khodjaev hi. Try to install requirements in the same step where you run you script:
- step:
name: Test
script:
- pip install -r requirements.txt
- python main.py
Also check that the last supported python version is 3.7
Regards, Igor.
Thanks a lot @Igor Stoyanov ! That worked. Not sure if a different python version was the culprit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.