Gabattal / Scripts-LeagueOfLegends

When I have a script idea, whether it is stupid or brilliant, I develop it and I push it there :D
50 stars 4 forks source link

Not entirely sure what I'm looking at but lcu version doesn't work for me, sorry if this is a dumb question, would you be able to help me fix this? #2

Closed shadows5522 closed 1 year ago

shadows5522 commented 1 year ago

File "C:\Users\x\Downloads\league auto\main.py", line 127, in connector.start() File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\lcu_driver\connector.py", line 53, in start wrapper() File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\lcu_driver\connector.py", line 46, in wrapper self.create_connection(connection) File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\lcu_driver\connector.py", line 25, in create_connection connection = Connection(self, process_or_string) File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\lcu_driver\connection.py", line 37, in init process_args = parse_cmdline_args(process_or_string.cmdline()) File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\lcu_driver\utils.py", line 10, in parse_cmdline_args key, value = cmdline_arg[2:].split('=') ValueError: too many values to unpack (expected 2)

Gabattal commented 1 year ago

Hey ! It looks like you can't import the packages with the Python version you have, you should try with a higher Version (I have Python3.10 in my case) You should also check that you have set the path of Python in your environment variable. Tell me if it's working better after that ;)

shadows5522 commented 1 year ago

Thank you so much for the rapid reply! I installed both python 3.11 and python 3.10, neither of those gave a different result. What version of lcu driver are you using? For my first run on a new python installation, it seems to maybe function as intended? The cursor goes on the next line and the command line stays still, but any run after the first yields the ValueError.

Gabattal commented 1 year ago

Don't worry haha

I just updated the lcu_driver and it seems to work well on my side I think the most likely thing which cause a problem is that your PATH variable of Python did not set properly : this is how you do Also, lauching the bat file after League Of Legends is opened works better If it's still not working I have updated the bat file, try it again and let me know ;)