whuybrec / MiniGamesBot

A Python Discord bot that has different kinds of minigames
MIT License
47 stars 18 forks source link

Python Version that was used. #7

Open VarunGupta961 opened 1 year ago

VarunGupta961 commented 1 year ago

Hello,

I am currently trying to solve some problems. I realized that the libraries versions are miss matched so I did 'pip install -r requirements.txt' to make sure libraries are the correct versions.

However,

The problem now I am facing is that, every time I change python interpreter (3.11.X, 3.10.X, 3.9.X....) I am getting different errors, such as;

I am curious and wanted to ask, which version of Python did you use as your interpreter?

Thank you!

whuybrec commented 1 year ago

Hi Varun,

Last time I worked on this project was a couple years ago, but I think I used Python 3.8.X. I stopped working on it because the discord.py library changed a lot so it could be that you'll have to change some code to make it work with the current discord version.

I hope this helps!

Kind regards, Wouter


From: Varun @.> Sent: Tuesday, 2 May 2023, 06:25 To: whuybrec/MiniGamesBot @.> Cc: Subscribed @.***> Subject: [whuybrec/MiniGamesBot] Python Version that was used. (Issue #7)

Hello,

I am currently trying to solve some problems. I realized that the libraries versions are miss matched so I did 'pip install -r requirements.txt' to make sure libraries are the correct versions.

However,

The problem now I am facing is that, every time I change python interpreter (3.11.X, 3.10.X, 3.9.X....) I am getting different errors, such as;

I am curious and wanted to ask, which version of Python did you use as your interpreter?

Thank you!

— Reply to this email directly, view it on GitHubhttps://github.com/whuybrec/MiniGamesBot/issues/7, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOVHTMR6AU2HBK4XGEQEV7DXECEDXANCNFSM6AAAAAAXSQUCEM. You are receiving this because you are subscribed to this thread.Message ID: @.***>

VarunGupta961 commented 1 year ago

Hey Wouter,

First off, thank you for responding!

I have tried messing around. I am trying to replicate what versions you have and potentially create an environment.

I currently coming across this error:

File "C:\Users\***\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 130, in get_signature_parameters
    raise TypeError(f'Command signature requires at least {required_params - 1} parameter(s)')
TypeError: Command signature requires at least 1 parameter(s)

I am new to troubleshooting and I was wondering if you could guide me on how I can approach to find fix for this?

I know you mentioned about changing the code to be compatible with the latest version of python, as well the the libraries, but I am curious and want to fix this problem! :)

Thank you! Best, Varun

whuybrec commented 1 year ago

Hi Varun,

That error makes me think that the Discord API expects another argument on a certain command. Can you perhaps see where that error came from in the MinigamesBot codebase? My guess is from a file in discordbot/commands folder? Like I said before, it’s been a while since I worked on this, so I could be completely wrong here!

Kind regards Wouter