Microsoft-Rewards-Farmer icon indicating copy to clipboard operation
Microsoft-Rewards-Farmer copied to clipboard

Can not run program

Open 123321abccba1 opened this issue 1 year ago • 7 comments

Before submitting a bug report...

  • [X] This bug wasn't already reported. (I have checked every bug report on GitHub)

Title

  • [X] The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

I get error message when i run program

Copy and paste your error

Traceback (most recent call last): File "main.py", line 9, in from src import Browser, DailySet, Login, MorePromotions, PunchCards, Searches File "/home/rock/Microsoft-Rewards-Farmer-master/src/init.py", line 1, in from .browser import Browser File "/home/rock/Microsoft-Rewards-Farmer-master/src/browser.py", line 12, in from src.userAgentGenerator import GenerateUserAgent File "/home/rock/Microsoft-Rewards-Farmer-master/src/userAgentGenerator.py", line 8, in class GenerateUserAgent: File "/home/rock/Microsoft-Rewards-Farmer-master/src/userAgentGenerator.py", line 34, in GenerateUserAgent browserConfig: dict[str, Any], TypeError: 'type' object is not subscriptable rock@rock-3a:~/Microsoft-Rewards-Farmer-master$ ^C rock@rock-3a:~/Microsoft-Rewards-Farmer-master$ python main.py -v File "main.py", line 26 logging.exception(f"{e.class.name}: {e}") ^ SyntaxError: invalid syntax

Screenshots

image

Value of dashboard variable

123321abccba1 avatar Sep 05 '23 18:09 123321abccba1

Did you install the required files? What version of Python are you running? What OS are you running on?

klept0 avatar Sep 06 '23 03:09 klept0

required files I installed,python version 3.8 and i running in Ubuntu 20.04.6 LTS

123321abccba1 avatar Sep 06 '23 04:09 123321abccba1

required files I installed,python version 3.8 and i running in Ubuntu 20.04.6 LTS

Can you rerun this in a venv? They tend to produce more stable results.

EastArctica avatar Sep 06 '23 11:09 EastArctica

this is happening on my ubuntu 20 LTS server as well. I tried updating to python 3.11 as well. I receive the same error. I ran the same repo on windows and is working just fine.

I will try to update my server to ubunutu 22 to see if that changes anything

JG0078 avatar Sep 06 '23 12:09 JG0078

updating to Ubuntu 22 LTS does resolve this issue. There is some conflict on Ubuntu 20 and python. I'm not sure how to debug that though

JG0078 avatar Sep 06 '23 13:09 JG0078

Run it as a non-root user

alessiouw avatar Sep 08 '23 10:09 alessiouw

If your problem is resolved - please close this issue out.

klept0 avatar Sep 16 '23 23:09 klept0