speckly / sucorn

ML/DL dataset collection utilities
Apache License 2.0
2 stars 1 forks source link

A whole thread of errors!? #35

Closed DJLPCopilot closed 4 months ago

DJLPCopilot commented 4 months ago

RUN.PY WHY CANT YOU RUN CROSSPLATFORM RRRRRRRRGH!!!!!!

Anyways heres the bugs that need to be SQUASHED INTO OBLIVION:

Exception in thread Thread-1 (listen): Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner Traceback (most recent call last): File "/Users/jacobbender/Sucorn-Dj-DALLE-BOT/utilities/reverse_api/run.py", line 139, in keyboard.on_press_key('ins', organize_windows) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/keyboard/init.py", line 510, in on_press_key self.run() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) return hook_key(key, lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/keyboard/init.py", line 294, in listen ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/keyboard/init.py", line 493, in hook_key _os_keyboard.listen(self.direct_callback) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/keyboard/_darwinkeyboard.py", line 430, in listen scan_codes = key_to_scan_codes(key) ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/keyboard/init.py", line 324, in key_to_scan_codes raise ValueError('Key {} is not mapped to any known key.'.format(repr(key)), e) raise OSError("Error 13 - Must be run as administrator") ValueError: ("Key 'ins' is not mapped to any known key.", ValueError('Unrecognized character: insert')) Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-s ][-b ] [-a ] [-u URL] [filenames] [--args arguments] Help: Open opens files from a shell. By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL. Options: -a Opens with the specified application. --arch ARCH Open with the given cpu architecture type and subtype. -b Opens with the specified application bundle identifier. -e Opens with TextEdit. -t Opens with default text editor. -f Reads input from standard input and opens with TextEdit. -F --fresh Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents. -R, --reveal Selects in the Finder instead of opening. -W, --wait-apps Blocks until the used applications are closed (even if they were already running). --args All remaining arguments are passed in argv to the application's main() function instead of opened. -n, --new Open a new instance of the application even if one is already running. -j, --hide Launches the app hidden. -g, --background Does not bring the application to the foreground. -h, --header Searches header file locations for headers matching the given filenames, and opens them. -s For -h, the SDK to use; if supplied, only SDKs whose names contain the argument value are searched. Otherwise the highest versioned SDK in each platform is used. -u, --url URL Open this URL, even if it matches exactly a filepath -i, --stdin PATH Launches the application with stdin connected to PATH; defaults to /dev/null -o, --stdout PATH Launches the application with /dev/stdout connected to PATH; --stderr PATH Launches the application with /dev/stderr connected to PATH to --env VAR Add an enviroment variable to the launched process, where VAR is formatted AAA=foo or just AAA for a null string value. Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedWriter name=''> at interpreter shutdown, possibly due to daemon threads Python runtime state: finalizing (tstate=0x00000001064caaf8)

Current thread 0x00000001feab8c00 (most recent call first):

Extension modules: objc._objc, CoreFoundation._CoreFoundation, CoreFoundation._inlines, Foundation._Foundation, Foundation._inlines, AppKit._AppKit, AppKit._inlines, Quartz.CoreGraphics._callbacks, Quartz.CoreGraphics._doubleindirect, Quartz.CoreGraphics._sortandmap, Quartz.CoreGraphics._coregraphics, Quartz.CoreGraphics._inlines, Quartz.ImageKit._imagekit, Quartz.CoreVideo._CVPixelBuffer, Quartz.QuartzCore._quartzcore, Quartz.PDFKit._PDFKit, Quartz.QuickLookUI._QuickLookUI (total: 17) zsh: abort /usr/local/bin/python3 imagedir --delay 10 --max 20 (base) jacobbender@Jacobs-MacBook-Pro Sucorn-Dj-DALLE-BOT %
speckly commented 4 months ago

https://github.com/speckly/sucorn/commit/0bcb10d9e6a3a3e89db66dcf4a328ef931899dd7

please test so that documentation can be updated

DJLPCopilot commented 4 months ago

ok