Comments (3)
now it spits this out
`Using TensorFlow backend.
Using TensorFlow backend.
Unhandled exception in listener callback
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util\win32.py", line 375, in _handler
converted = self._convert(code, msg, lpdata)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util\win32.py", line 390, in _convert
raise NotImplementedError()
NotImplementedError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\PIL\Image.py", line 1987, in save
format = EXTENSION[ext]
KeyError: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init_.py", line 157, in inner
return f(self, *args, **kwargs)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util\win32.py", line 379, in _handler
self._handle(code, msg, lpdata)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput\mouse_win32.py", line 190, in handle
self.on_click(data.pt.x, data.pt.y, button, pressed)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init.py", line 78, in inner
if f(*args) is False:
File "C:\tensorflow1\Bot\Game-Bot-master\create_dataset.py", line 43, in on_click
save_event_mouse(data_path, x, y)
File "C:\tensorflow1\Bot\Game-Bot-master\create_dataset.py", line 34, in save_event_mouse
save_img(data_path, screenshot)
File "C:\tensorflow1\Bot\Game-Bot-master\get_dataset.py", line 15, in save_img
imsave(img, path)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\numpy\lib\utils.py", line 101, in newfunc
return func(*args, **kwds)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\scipy\misc\pilutil.py", line 219, in imsave
im.save(name)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\PIL\Image.py", line 1989, in save
raise ValueError('unknown file extension: {}'.format(ext))
ValueError: unknown file extension:
down
Process Process-1:
Key Pressed:f
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util\win32.py", line 375, in _handler
converted = self._convert(code, msg, lpdata)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util\win32.py", line 390, in _convert
raise NotImplementedError()
NotImplementedError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\PIL\Image.py", line 1987, in save
format = EXTENSION[ext]
KeyError: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\multiprocessing\process.py", line 99, in run
self._target(*self.args, **self.kwargs)
File "C:\tensorflow1\Bot\Game-Bot-master\create_dataset.py", line 52, in listen_mouse
listener.join()
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init.py", line 205, in join
six.reraise(exc_type, exc_value, exc_traceback)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\six.py", line 692, in reraise
raise value.with_traceback(tb)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init.py", line 157, in inner
return f(self, *args, **kwargs)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util\win32.py", line 379, in _handler
self._handle(code, msg, lpdata)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput\mouse_win32.py", line 190, in handle
self.on_click(data.pt.x, data.pt.y, button, pressed)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init.py", line 78, in inner
if f(*args) is False:
File "C:\tensorflow1\Bot\Game-Bot-master\create_dataset.py", line 43, in on_click
save_event_mouse(data_path, x, y)
File "C:\tensorflow1\Bot\Game-Bot-master\create_dataset.py", line 34, in save_event_mouse
save_img(data_path, screenshot)
File "C:\tensorflow1\Bot\Game-Bot-master\get_dataset.py", line 15, in save_img
imsave(img, path)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\numpy\lib\utils.py", line 101, in newfunc
return func(*args, **kwds)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\scipy\misc\pilutil.py", line 219, in imsave
im.save(name)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\PIL\Image.py", line 1989, in save
raise ValueError('unknown file extension: {}'.format(ext))
ValueError: unknown file extension:
create_dataset.py:21: DeprecationWarning: imresize
is deprecated!
imresize
is deprecated in SciPy 1.0.0, and will be removed in 1.3.0.
Use Pillow instead: numpy.array(Image.fromarray(arr).resize())
.
img = imresize(img, (150, 150, 3)).astype('float32')/255.
Unhandled exception in listener callback
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\PIL\Image.py", line 1987, in save
format = EXTENSION[ext]
KeyError: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init_.py", line 157, in inner
return f(self, *args, **kwargs)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput\keyboard_win32.py", line 240, in process
self.on_press(key)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init.py", line 78, in inner
if f(*args) is False:
File "create_dataset.py", line 61, in on_press
save_event_keyboard(data_path, 1, key)
File "create_dataset.py", line 28, in save_event_keyboard
save_img(data_path, screenshot)
File "C:\tensorflow1\Bot\Game-Bot-master\get_dataset.py", line 15, in save_img
imsave(img, path)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\numpy\lib\utils.py", line 101, in newfunc
return func(*args, **kwds)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\scipy\misc\pilutil.py", line 219, in imsave
im.save(name)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\PIL\Image.py", line 1989, in save
raise ValueError('unknown file extension: {}'.format(ext))
ValueError: unknown file extension:
Traceback (most recent call last):
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\PIL\Image.py", line 1987, in save
format = EXTENSION[ext]
KeyError: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "create_dataset.py", line 81, in
main()
File "create_dataset.py", line 77, in main
listen_keyboard()
File "create_dataset.py", line 68, in listen_keyboard
listener.join()
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init_.py", line 205, in join
six.reraise(exc_type, exc_value, exc_traceback)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\six.py", line 692, in reraise
raise value.with_traceback(tb)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init_.py", line 157, in inner
return f(self, *args, **kwargs)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput\keyboard_win32.py", line 240, in process
self.on_press(key)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\pynput_util_init.py", line 78, in inner
if f(*args) is False:
File "create_dataset.py", line 61, in on_press
save_event_keyboard(data_path, 1, key)
File "create_dataset.py", line 28, in save_event_keyboard
save_img(data_path, screenshot)
File "C:\tensorflow1\Bot\Game-Bot-master\get_dataset.py", line 15, in save_img
imsave(img, path)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\numpy\lib\utils.py", line 101, in newfunc
return func(*args, **kwds)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\scipy\misc\pilutil.py", line 219, in imsave
im.save(name)
File "C:\Users\proni\Anaconda3\envs\tensorflow2\lib\site-packages\PIL\Image.py", line 1989, in save
raise ValueError('unknown file extension: {}'.format(ext))
ValueError: unknown file extension:`
from game-bot.
Open game_control.py and replace code of get_id() with the code given below
try:
print('Key Pressed:',key.char,sep='')
return get_keys().index(key.char)
except AttributeError:
if (str(key)+'') not in get_keys():
print((str(key)+''),' is not in list')
return
print('Key Pressed:',(str(key)+''),sep='')
return get_keys().index((str(key)+''))
from game-bot.
can you maybe update the Source code?
from game-bot.
Related Issues (20)
- versions
- some keys wont work HOT 2
- mac support HOT 1
- Error in create_dataset.py HOT 1
- The key presses being passed to game_control.py aren't formatted right
- ImportError: cannot import name 'imresize' from 'scipy.misc' HOT 4
- SyntaxError: invalid syntax
- This project is still being worked on ? HOT 8
- Module not found error
- how do i fix this.
- Traceback (most recent call last): File "C:\Users\OneDrive\Desktop\Game-Bot-master\Game-Bot-master\train.py", line 4, in <module> from get_dataset import get_dataset File "C:\Users\OneDrive\Desktop\Game-Bot-master\Game-Bot-master\get_dataset.py", line 4, in <module> from keras.utils import to_categorical ImportError: cannot import name 'to_categorical' from 'keras.utils' (C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\keras\utils\__init__.py) ------------------ (program exited with code: 1) Press any key to continue . . . HOT 1
- how do i get everything to work HOT 2
- Lots of errors
- issue with imwrite HOT 1
- Gg
- FileNotFoundError: [Errno 2] No such file or directory: 'Data/Model/model.json' HOT 1
- Tensorflow and keras doesn't give me to create_dataset and also code doesn't actually worked then i made everything like readme file so i have no idea what to do
- I can't train or run Ai.py and train.py and i don't know why HOT 1
- ImportError: cannot import name 'imresize' from 'scipy.misc' HOT 2
- issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from game-bot.