will7200 / Yugioh-bot

Bot for Yugioh Duel Links via Nox and Steam
MIT License
58 stars 9 forks source link

ValueError: invalid version number '0' #29

Closed alexandre0119 closed 6 years ago

alexandre0119 commented 6 years ago

Hi Dev,

Any idea why below issue happen? Just tried my first run, using Python3.6 and all requirements installed.

PS C:\Users\Alex\PycharmProjects\Yugioh-bot-master> python main.py gui -s 2018-01-14 15:13:30,478 - bot - CRITICAL - Clean version is wrong (0) cannot be zero something happened 2018-01-14 15:13:30,479 - bot - CRITICAL - Try running git reset --hard origin/master C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\site-packages\h5py__init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Traceback (most recent call last): File "main.py", line 142, in cli() File "C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\site-packages\click\core.py", line 722, in call__ return self.main(args, kwargs) File "C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\site-packages\click\core.py", line 697, in main rv = self.invoke(ctx) File "C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\site-packages\click\core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\site-packages\click\core.py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\site-packages\click\core.py", line 535, in invoke return callback(args, **kwargs) File "main.py", line 130, in gui dlRuntime = setup_runtime(uconfig) File "main.py", line 41, in setup_runtime from bot.providers import get_provider File "C:\Users\Alex\PycharmProjects\Yugioh-bot-master\bot\providers__init.py", line 2, in from bot.providers.nox import Nox File "C:\Users\Alex\PycharmProjects\Yugioh-bot-master\bot\providers\nox\init.py", line 1, in from .nox import Nox File "C:\Users\Alex\PycharmProjects\Yugioh-bot-master\bot\providers\nox\nox.py", line 15, in from bot.providers.nox.predefined import NoxPredefined File "C:\Users\Alex\PycharmProjects\Yugioh-bot-master\bot\providers\nox\predefined.py", line 24, in class NoxPredefined(Predefined): File "C:\Users\Alex\PycharmProjects\Yugioh-bot-master\bot\providers\nox\predefined.py", line 50, in NoxPredefined details="App is not opened through ADB Call instead of ui touch event") File "C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\site-packages\deprecation.py", line 131, in deprecated current_version = version.StrictVersion(current_version) File "C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\distutils\version.py", line 40, in init__ self.parse(vstring) File "C:\Users\Alex\AppData\Local\Programs\Python\Python36-32\lib\distutils\version.py", line 137, in parse raise ValueError("invalid version number '%s'" % vstring) ValueError: invalid version number '0'

Thanks, Alex

phongs commented 6 years ago

Same error I'm getting with Python 3.5

phongs commented 6 years ago

Have you had any luck fixing this error? I've been trying since yesterday and I'm still getting the same ValueError: invalid version number '0' when I run the bot.

will7200 commented 6 years ago

Give this a try

git pull
git reset --hard origin/master
alexandre0119 commented 6 years ago

Issue got fixed with using Git to install, instead of manually downloading package. Close it for now.