0

Introduction

In my project, I want to run Python from GitHub workflow, but when I run it, it shows an error.

Showed error:

Run python ../main.py
python: can't open file '../main.py': [Errno 2] No such file or directory
Error: Process completed with exit code 2.

*before I test main.py instead of ../main.py

But he shows a another error :

Run python main.py
Traceback (most recent call last):
Valeur out : 311
  File "main.py", line 9, in <module>
    lineSplit = open("log", "r").readline().split(' ')
FileNotFoundError: [Errno 2] No such file or directory: 'log'
Error: Process completed with exit code 1.

The link to the project

https://github.com/MathieuSoysal/bot-area

Someone have the solution to this problem ?

3
  • 1
    The problem is not with GitHub Actions, the error says you need to add the log file to your project. Commented Jan 19, 2022 at 21:08
  • you haven't a log file in your project. Commented Jan 19, 2022 at 21:08
  • 1
    For what I checked, you need the log file as well as a username and a password separated from space informed on the first line of the file. Example for the log file: github.com/GuillaumeFalourd/bot-area/blob/main/log . Then, the workflow will return an error if the username and password are wrong: github.com/GuillaumeFalourd/bot-area/runs/… Commented Jan 19, 2022 at 21:49

1 Answer 1

1

the error said No such file or directory: 'log' which means you need to add log file to the project

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.