Github Action issue with requirements.txt file

0

In the process of implementing CI/CD feature of Github with Github Action for a flask web application on AWS Lightsail (Ubuntu) instance.

Facing issue with requirments.txt file.

Requirements.txt file on Codespace as well AWS LIghtsail has this chunk:

tinycss2==1.3.0
tomli==2.0.1
torch
tornado==6.4.1
traitlets==5.14.3

This is the error showing under Github Action:

Run python -m pip install --upgrade pip
Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages (24.1.2)
ERROR: Invalid requirement: '<<<<<<< HEAD anyio==4.4.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0': Expected package name at the start of dependency specifier
    <<<<<<< HEAD anyio==4.4.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0
    ^ (from line 1 of requirements.txt)
Error: Process completed with exit code 1.

https://www.canva.com/design/DAGMC0E1dNY/jtGxvs-b99WOdyV_G-yQQg/edit?utm_content=DAGMC0E1dNY&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton

This error was initially addressed by removing <<<<<<< HEAD anyio. Once this issue was addressed, torch error came into light. Now surprised that on fresh login, getting the earlier issue of ERROR: Invalid requirement: '<<<<<<< HEAD anyio==. Even though no trace of this on requirements.txt file both on Codespace as well AWS Lighsail!

profile picture
asked 9 months ago337 views
1 Answer
1

Hello.

Is "requirments.txt" committing the latest one and doing a git push?
I think you need to check whether the latest "requirments.txt" is pushed to the branch used by GitHub Actions.

profile picture
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 9 months ago
profile pictureAWS
EXPERT
reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions