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!
Thanks! Seems this issue resolved after commit and push. However, the instance on AWS Lightsail not working. Surprised as Github version and AWS Lightsail version should be same if indeed connected properly. While the Github version working, AWS Lightsail Ubuntu version showing 500 Internal Server Error: https://www.canva.com/design/DAGMDBNi_-c/MHws19ghb8wHqWMQkcl7VA/edit?utm_content=DAGMDBNi_-c&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton