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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.