Pip install win32gui ошибка

I'm trying to install win32gui with pip but I get an error: C:Usersמשתמש>pip install win32gui Collecting win32gui Using cached https://files.pythonhosted.org/packages/b8/75/

I’m trying to install win32gui with pip but I get an error:

C:Usersמשתמש>pip install win32gui

Collecting win32gui
Using cached https://files.pythonhosted.org/packages/b8/75/7bed82934e51903f9d48b26b3996161bb2dce1731607b4bb7fd26003ed3e/win32gui-221.5.tar.gz
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:temppip-install-ycidig8uwin32guisetup.py", line 27, in <module>
from win32.distutils.gui import win32gui_build_ext
File "c:temppip-install-ycidig8uwin32guiwin32distutilsgui.py", line 6, in <module>
from .command import win32_build_ext
ModuleNotFoundError: No module named 'win32.distutils.command'
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:temppip-install-ycidig8uwin32gui

I’m using python 3.7
I’ve upgraded the setuptools but it is still not working…

martineau's user avatar

martineau

117k25 gold badges161 silver badges290 bronze badges

asked Oct 14, 2018 at 20:40

ItayMiz's user avatar

1

Install pywin32. That gives you win32gui.

pip install pywin32

answered Jul 12, 2019 at 6:10

bronson's user avatar

bronsonbronson

5,2741 gold badge30 silver badges18 bronze badges

1

Win32gui isn’t compatible with 3.7.

3.7 was realeased in 2018 and the latest version of win32gui was released in August 2017.

I would suggest installing 3.6 or lower as a workaround.

EDIT:

The answer by @bronson beat me to it by 9 days, but installing pywin32 with pip install pywin32 will install win32gui alongside modules for interfacing with windows.

Community's user avatar

answered Oct 15, 2018 at 8:21

Legorooj's user avatar

LegoroojLegorooj

2,5752 gold badges15 silver badges33 bronze badges

0

See this link: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32. It may be of help to you.

Step 1: Download the pywin32....whl
Step 2: pip install pywin32....whl
Step 3: C:python32python.exe Scriptspywin32_postinstall.py -install
Step 4: python
>>> import win32gui

enter image description here

answered Oct 18, 2020 at 20:21

Erick Amoedo's user avatar

Erick AmoedoErick Amoedo

4551 gold badge3 silver badges9 bronze badges

All your needs you will satisfy in the module ctypes.
Use it and you won’t have any compatibility issues.

For example:

import ctypes
EnumWindows = ctypes.windll.user32.EnumWindows
GetWindowThreadProcessId = ctypes.windll.user32.GetWindowThreadProcessId
EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_bool, types.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int))
GetWindowText = ctypes.windll.user32.GetWindowTextW
GetWindowTextLength = ctypes.windll.user32.GetWindowTextLengthW
IsWindowVisible = ctypes.windll.user32.IsWindowVisible
IsWindowEnabled = ctypes.windll.user32.IsWindowEnabled

answered Sep 2, 2021 at 4:17

Dmitry Tuchin's user avatar

C:UsersViraj Sharma>pip install win32gui
Collecting win32gui
  Using cached win32gui-221.5.tar.gz (605 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:usersviraj sharmaappdatalocalprogramspythonpython38python.exe' 'c:usersviraj sharmaappdatalocalprogramspythonpython38libsite-packagespip_vendorpep517_in_process.py' get_requires_for_build_wheel 'C:UsersVIRAJS~1AppDataLocalTemptmpjn8lvta1'
       cwd: C:UsersViraj SharmaAppDataLocalTemppip-install-gcbm1r68win32gui
  Complete output (20 lines):
  Traceback (most recent call last):
    File "c:usersviraj sharmaappdatalocalprogramspythonpython38libsite-packagespip_vendorpep517_in_process.py", line 280, in <module>
      main()
    File "c:usersviraj sharmaappdatalocalprogramspythonpython38libsite-packagespip_vendorpep517_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "c:usersviraj sharmaappdatalocalprogramspythonpython38libsite-packagespip_vendorpep517_in_process.py", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "C:UsersViraj SharmaAppDataLocalTemppip-build-env-9wmd0fzaoverlayLibsite-packagessetuptoolsbuild_meta.py", line 149, in get_requires_for_build_wheel
      return self._get_build_requires(
    File "C:UsersViraj SharmaAppDataLocalTemppip-build-env-9wmd0fzaoverlayLibsite-packagessetuptoolsbuild_meta.py", line 130, in _get_build_requires
      self.run_setup()
    File "C:UsersViraj SharmaAppDataLocalTemppip-build-env-9wmd0fzaoverlayLibsite-packagessetuptoolsbuild_meta.py", line 253, in run_setup
      super(_BuildMetaLegacyBackend,
    File "C:UsersViraj SharmaAppDataLocalTemppip-build-env-9wmd0fzaoverlayLibsite-packagessetuptoolsbuild_meta.py", line 145, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 27, in <module>
      from win32.distutils.gui import win32gui_build_ext
    File "C:UsersViraj SharmaAppDataLocalTemppip-install-gcbm1r68win32guiwin32distutilsgui.py", line 6, in <module>
      from .command import win32_build_ext
  ModuleNotFoundError: No module named 'win32.distutils.command'
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:usersviraj sharmaappdatalocalprogramspythonpython38python.exe' 'c:usersviraj sharmaappdatalocalprogramspythonpython38libsite-packagespip_vendorpep517_in_process.py' get_requires_for_build_wheel 'C:UsersVIRAJS~1AppDataLocalTemptmpjn8lvta1' Check the logs for full command output.

[Installation] Win32gui does not import correctly #26

Comments

When I run ‘python main.py bot -s’ I get the following error:

Z:python35>python main.py bot -s 2018-01-14 16:09:30,376 — bot — CRITICAL — Clean version is wrong (0) cannot be zero something happened 2018-01-14 16:09:30,376 — bot — CRITICAL — Try running git reset —hard origin/master Z:python35libsite-packagesh5py__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 «Z:python35libsite-packagesclickcore.py», line 722, in __call__ return self.main(*args, **kwargs) File «Z:python35libsite-packagesclickcore.py», line 697, in main rv = self.invoke(ctx) File «Z:python35libsite-packagesclickcore.py», line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File «Z:python35libsite-packagesclickcore.py», line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File «Z:python35libsite-packagesclickcore.py», line 535, in invoke return callback(*args, **kwargs) File «main.py», line 94, in bot dlRuntime = setup_runtime(uconfig) File «main.py», line 41, in setup_runtime from bot.providers import get_provider File «Z:python35botproviders__init__.py», line 2, in from bot.providers.nox import Nox File «Z:python35botprovidersnox__init__.py», line 1, in from .nox import Nox File «Z:python35botprovidersnoxnox.py», line 6, in import win32gui ImportError: No module named ‘win32gui’

No module named win32gui, yet if I run ‘python -m pip install win32gui’ it says requirements are already satisfied. I’m running Windows 10, with Python 3.5.

Also if I try running ‘pythonw main.py gui -s’ a window appears and disappears quickly and that’s it.

Hopefully you can help. Thanks!

The text was updated successfully, but these errors were encountered:

You need to install pywin32,
you can find it here: https://github.com/mhammond/pywin32/releases
Make sure to get the correct version for your Python installation.

I downloaded pywin32-221.win-amd64-py3.5.exe, and was able to get past the win32gui problem. But now I’m receiving this error:
File «Z:python35botprovidersnoxpredefined.py», line 50, in NoxPredefined details=»App is not opened through ADB Call instead of ui touch event») File «Z:python35libsite-packagesdeprecation.py», line 131, in deprecated current_version = version.StrictVersion(current_version) File «Z:python35libdistutilsversion.py», line 40, in __init__ self.parse(vstring) File «Z:python35libdistutilsversion.py», line 137, in parse raise ValueError(«invalid version number ‘%s’» % vstring) ValueError: invalid version number ‘0’

I’m kinda new to this so I’m just gunna make a couple guesses,
assuming you’ve done pip install -r requirements.txt
& pip install -r install_requirements.txt
& python install.py

try pip install deprecation
if requirements are all satisfied, does your . Yugioh-botbin folder look like mine?

If it doesn’t, copy AdbWinApi.dll & nox_adb from your . Noxbin folder
& rename «nox_adb.exe» to «adb.exe»

I have definitely installed everything with no errors. I’ve ran pip install depracation and it said requirement satisfied. Looking at your picture I noticed I was missing adb and adbwinapi.dll, so I copied it over and renamed from my Nox folder. But it looks like I’m still receiving the same error when I try to run the bot, and when I try to run gui it just opens/closes right away.

I’m getting closer! haha.. Does the bot open Nox/Steam up itself? Or should you have the game open already?

I have the game open in Nox already when I run the bot, I haven’t used it with steam yet.
Oh, also, python main.py gui -s works for me, not sure if that «w» is a typo or not..
If the little window disappears you can find it in the system tray.
& if it still doesn’t work for you, last idea I have is restarting Nox.. lol

When you installed tessarect did you install it to the right path? Did you point it the the bot folder?

I assume he did since he didn’t mention the tess folder being missing when comparing our . bin folders
& the error doesn’t say anything about tess or ocr.png

My folder looks different than both of yours and my bot semi works just that it clicks random spots at times

We were comparing our «. Yugioh-botbin» folder, not the root directory.
& the random clicking is normal since it looks for circles,
sometimes there are circles in the pixels you can’t see.

I installed Tess directly to the tess folder in the bot. I was only missing the adb file and dll.

Running python install.py should have copied those files from the Nox bin for you, so if those were missing, perhaps it didn’t run properly?

Here’s what it looks like when I run install.py.

Make sure you run this from the root directory of Yugioh-Bot Installing Required components to get this bot up and running Component 0: Creating Temp Folder Running mkdir tmp A subdirectory or file tmp already exists. Component 1: Installing Tesseract Running bintesstesseract.exe -v Looks like tesseract is installed already Component 2: Copying nox files required Running cp «C:Program Files (x86)Noxbinnox_adb.exe» bin/adb.exe ‘cp’ is not recognized as an internal or external command, operable program or batch file. Running cp «C:Program Files (x86)NoxbinAdbWinApi.dll» bin/ ‘cp’ is not recognized as an internal or external command, operable program or batch file. Copied [nox_adb.exe, AdbWinApi.dll] into bin folder Component 3: Checking required packages All required packages found

As you can see it looks like ‘cp’ is not recognized as an internal or external command is the reason the files weren’t copied over.

Cp command is a defacto present in Windows and Linux that allows copying files seems weird that it failed.

If you are still having the version error try this:
#29 (comment)

I tried the git pull, git reset —hard origin/master. Now I’m getting a different error. Progress! Here’s what it’s displaying:

Z:python35Yugioh-bot>python main.py gui -s Z:python35Yugioh-botlibsite-packagesh5py__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 2018-01-15 14:06 — DEBUG — bot — Watching Z:python35Yugioh-botrunTimeOptions.json for runTime Options 2018-01-15 14:06 — INFO — apscheduler.scheduler — Scheduler started 2018-01-15 14:06 — DEBUG — bot — Value next_run_at modified to 2018-01-15 14:06:23.269216 2018-01-15 14:06 — INFO — apscheduler.scheduler — Added job «DuelLinkRunTime.dump» to job store «default» 2018-01-15 14:06 — DEBUG — bot — Timeout dump Scheduled 2018-01-15 14:06 — INFO — apscheduler.scheduler — Added job «DuelLinkRunTime.main. .in_main» to job store «default» 2018-01-15 14:06 — INFO — bot — Tracking Z:python35Yugioh-botrunTimeOptions.json 2018-01-15 14:06 — INFO — bot — Next run at 2018-01-15T14:06:23.269216 Traceback (most recent call last): File «main.py», line 142, in cli() File «Z:python35Yugioh-botlibsite-packagesclickcore.py», line 722, in __call__ return self.main(*args, **kwargs) File «Z:python35Yugioh-botlibsite-packagesclickcore.py», line 697, in main rv = self.invoke(ctx) File «Z:python35Yugioh-botlibsite-packagesclickcore.py», line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File «Z:python35Yugioh-botlibsite-packagesclickcore.py», line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File «Z:python35Yugioh-botlibsite-packagesclickcore.py», line 535, in invoke return callback(*args, **kwargs) File «main.py», line 132, in gui window = DuelLinksGui(dlRuntime, uconfig.get(‘locations’,’assets’)) File «Z:python35Yugioh-botbotdl_gui.py», line 123, in __init__ self.location_on_the_screen() File «Z:python35Yugioh-botbotdl_gui.py», line 138, in location_on_the_screen self.move(x, y) UnboundLocalError: local variable ‘x’ referenced before assignment

That above error was when running main.py gui -s. I have now tried main.py bot -s, and it appears to be running. Although it doesn’t seem to be running correctly.

I’ve tried changing providers in the config to Steam and running the bot, still no luck. Here’s what it looks like.

Ok for the gui I fixed the issue you were having, you must have the taskbar in the top or right positions as I did not have code to account for that variation. Fixed in 2799884. Also for the steam provider It appears that the height and width differs that I have tested again. Can you provided me the details of your screen resolution for the steam app.

@will7200 I will update and try again. My screen resolution on this monitor is 1360×768 (kinda funky I know)..

@will7200 After updating I was able to run the gui and have it pop up, but the bot still doesn’t seem to do anything but click around randomly. Is there a certain location my nox window needs to be, or is it reading directly from memory? Here’s what the log is showing:
Z:python35Yugioh-bot>python main.py gui -s Z:python35Yugioh-botlibsite-packagesh5py__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 2018-01-15 22:04 — DEBUG — bot — Value last_run_at modified to 2018-01-15 14:55:48.388847 2018-01-15 22:04 — INFO — apscheduler.scheduler — Adding job tentatively — it will be properly scheduled when the scheduler starts 2018-01-15 22:04 — DEBUG — bot — Timeout dump Scheduled 2018-01-15 22:04 — DEBUG — bot — Value next_run_at modified to 2018-01-15 18:56:19.864582 2018-01-15 22:04 — INFO — apscheduler.scheduler — Removed job b7763fd89dda48b9bd495933cfabe23b 2018-01-15 22:04 — INFO — apscheduler.scheduler — Adding job tentatively — it will be properly scheduled when the scheduler starts 2018-01-15 22:04 — DEBUG — bot — Timeout dump Scheduled 2018-01-15 22:04 — DEBUG — bot — Watching Z:python35Yugioh-botrunTimeOptions.json for runTime Options 2018-01-15 22:04 — INFO — apscheduler.scheduler — Added job «DuelLinkRunTime.dump» to job store «default» 2018-01-15 22:04 — INFO — apscheduler.scheduler — Scheduler started 2018-01-15 22:04 — DEBUG — bot — Value next_run_at modified to 2018-01-15 22:04:02.954196 2018-01-15 22:04 — INFO — apscheduler.scheduler — Removed job 6da4d283115c4356880dec68dbbb98d0 2018-01-15 22:04 — INFO — apscheduler.scheduler — Added job «DuelLinkRunTime.dump» to job store «default» 2018-01-15 22:04 — DEBUG — bot — Timeout dump Scheduled 2018-01-15 22:04 — INFO — apscheduler.scheduler — Added job «DuelLinkRunTime.main. .in_main» to job store «default» 2018-01-15 22:04 — INFO — bot — Tracking Z:python35Yugioh-botrunTimeOptions.json 2018-01-15 22:04 — INFO — bot — Next run at 2018-01-15T22:04:02.954196 PyQt5.QtCore.QRect(0, 40, 1360, 728) PyQt5.QtCore.QRect(0, 0, 1360, 768) 2018-01-15 22:04 — INFO — apscheduler.executors.default — Running job «DuelLinkRunTime.main. .in_main (trigger: date[2018-01-15 22:04:02 CST], next run at: 2018-01-15 22:04:02 CST)» (scheduled at 2018-01-15 22:04:02.954196-06:00) 2018-01-15 22:04 — INFO — apscheduler.scheduler — Removed job cron_main_at_2018-01-15T22:04:02.954196 2018-01-15 22:04 — DEBUG — bot — Value last_run_at modified to 2018-01-15 22:04:02.954884 2018-01-15 22:04 — INFO — apscheduler.scheduler — Removed job 7aeb824b3e3d4c458809f9698db8a827 2018-01-15 22:04 — INFO — apscheduler.scheduler — Added job «DuelLinkRunTime.dump» to job store «default» 2018-01-15 22:04 — DEBUG — bot — Timeout dump Scheduled 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — INFO — bot — starting auto play through 2018-01-15 22:04 — INFO — bot.provider.Nox — starting auto run through 2018-01-15 22:04 — DEBUG — bot.provider.Nox — Run through 1 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — INFO — apscheduler.executors.default — Running job «DuelLinkRunTime.dump (trigger: date[2018-01-15 22:04:07 CST], next run at: 2018-01-15 22:04:07 CST)» (scheduled at 2018-01-15 22:04:07.956388-06:00) 2018-01-15 22:04 — INFO — apscheduler.scheduler — Removed job a5ed93b4399940128344259e8edb078a 2018-01-15 22:04 — DEBUG — bot — Dump Getting Called <‘last_run_at’: datetime.datetime(2018, 1, 15, 22, 4, 2, 954884), ‘playmode’: ‘autoplay’, ‘next_run_at’: datetime.datetime(2018, 1, 15, 22, 4, 2, 954196), ‘run_now’: False, ‘stop’: False, ‘battle_calls’: <‘beforeEnd’: [], ‘beforeStart’: [], ‘afterStart’: [], ‘afterEnd’: []>> 2018-01-15 22:04 — INFO — apscheduler.executors.default — Job «DuelLinkRunTime.dump (trigger: date[2018-01-15 22:04:07 CST], next run at: 2018-01-15 22:04:07 CST)» executed successfully 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — Tapping at location (348,640) 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — INFO — bot.provider.Nox — NPC Battle Mode,Points: (348,640) at location: (1), message: failure/Back-Button 2018-01-15 22:04 — DEBUG — bot.provider.Nox — Tapping at location (28.846153846153847,767.5384615384615) 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR CLOSE BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOK FOR WORD ‘OK’, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — Tapping at location (170,582) 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR CLOSE BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOK FOR WORD ‘OK’, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — Tapping at location (330,338) 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — INFO — bot.provider.Nox — NPC Battle Mode,Points: (330,338) at location: (1), message: failure/Back-Button 2018-01-15 22:04 — DEBUG — bot.provider.Nox — Tapping at location (30.666666666666668,768.3333333333334) 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR CLOSE BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOK FOR WORD ‘OK’, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:04 — DEBUG — bot.provider.Nox — Tapping at location (66,604) 2018-01-15 22:05 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:05 — DEBUG — bot.provider.Nox — LOOKING FOR CLOSE BUTTON, HIGH CORRERLATION 2018-01-15 22:05 — DEBUG — bot.provider.Nox — LOOK FOR WORD ‘OK’, HIGH CORRERLATION 2018-01-15 22:05 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:05 — DEBUG — bot.provider.Nox — Tapping at location (264,588) 2018-01-15 22:05 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION 2018-01-15 22:05 — DEBUG — bot.provider.Nox — LOOKING FOR BACK BUTTON, HIGH CORRERLATION — Logging error — Traceback (most recent call last): File «Z:python35Yugioh-botliblogging__init__.py», line 983, in emit stream.write(self.terminator) OSError: raw write() returned invalid length 180 (should have been between 0 and 90) Call stack: File «Z:python35Yugioh-botlibthreading.py», line 891, in _bootstrap self._bootstrap_inner() File «Z:python35Yugioh-botlibthreading.py», line 923, in _bootstrap_inner self.run() File «Z:python35Yugioh-botlibthreading.py», line 871, in run self._target(*self._args, **self._kwargs) File «Z:python35Yugioh-botlibconcurrentfuturesthread.py», line 66, in _worker work_item.run() File «Z:python35Yugioh-botlibconcurrentfuturesthread.py», line 55, in run result = self.fn(*self.args, **self.kwargs) File «Z:python35Yugioh-botlibsite-packagesapschedulerexecutorsbase.py», line 125, in run_job retval = job.func(*job.args, **job.kwargs) File «Z:python35Yugioh-botbotduel_links_runtime.py», line 368, in in_main self.determine_playthrough(provider) File «Z:python35Yugioh-botbotduel_links_runtime.py», line 327, in determine_playthrough provider.auto() File «Z:python35Yugioh-botbotprovidersprovider.py», line 52, in auto self.scan() File «Z:python35Yugioh-botbotprovidersnoxnox.py», line 294, in scan loop_scan(self.compare_with_back_button, **<‘info’: dl_info>) File «Z:python35Yugioh-botbotproviderscommon.py», line 13, in loop_scan doit = fn(**kwargs) File «Z:python35Yugioh-botbotprovidersnoxnox.py», line 181, in compare_with_back_button self.root.debug(«LOOKING FOR BACK BUTTON, <> CORRERLATION».format(corrword)) Message: ‘LOOKING FOR BACK BUTTON, HIGH CORRERLATION’ Arguments: () 2018-01-15 22:06 — DEBUG — bot.provider.Nox — LOOKING FOR CLOSE BUTTON, HIGH CORRERLATION 2018-01-15 22:06 — DEBUG — bot.provider.Nox — LOOK FOR WORD ‘OK’, HIGH CORRERLATION

This is working correctly the algorithm to select opponents is not perfect and thus there will be false positives. As for your screen issue, I tested the steam against my and the resolution is maxed at 1600 something by 900 something and I can’t shrink it so maybe I can do something of comparison so that image dimensions are no longer a problem.

It is working correctly! I just needed some patience. Thank you so much for all your help! What is your proper technique. Do you just leave it running in Autoplay mode all day or is there a trick I should know?

Basically I made this so it would auto duel the npcs while I went about my day. Help in events that require keys or dice.

Источник

-4 / 26 / 9

Регистрация: 06.03.2015

Сообщений: 209

1

22.10.2016, 15:52. Показов 9375. Ответов 10


Всем привет. По советам гугла скачал pywin32. После застрял на шаге установки доп компонентов, где нужно через командную строку установить файл pywin32_postinstall.py. В командную строку я ввел

Код

D:Pythonpython.exe Scriptspywin32_postinstall.py -install

На что получил ошибку #2 (нету указанного файла). Проверил все ссылки, все правильно… Файл тоже существует по указанной ссылке.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



Programming

Эксперт

94731 / 64177 / 26122

Регистрация: 12.04.2006

Сообщений: 116,782

22.10.2016, 15:52

Ответы с готовыми решениями:

Не подключается win32gui
Никак не хочет подключаться win32gui. Версия питона 3.6

&gt;&gt;&gt; import win32gui
Traceback (most…

Установка ПО. Ошибка 1622
Устанавливала ПО ActivInspire для интерактивной доски. На одну машину встала хорошо, а на другой…

Установка xorg (ошибка)
Добрый день.
Система чистая, поставил с мемстика вместе с сорцами. Вытащил все что было из портов….

установка win 7 ошибка
программе установки не удалось создать или найти существующий системный раздел

10

-4 / 26 / 9

Регистрация: 06.03.2015

Сообщений: 209

22.10.2016, 16:57

 [ТС]

3

pywin32 я скачал и установил. Мне нужно установить доп софт, в который входит win32gui.
Где я взял гайд



0



Эксперт Python

5403 / 3827 / 1214

Регистрация: 28.10.2013

Сообщений: 9,554

Записей в блоге: 1

22.10.2016, 18:58

4

Лучший ответ Сообщение было отмечено Dave_ как решение

Решение

А на какую версию python-а вы ставите? Для версий старше 3.3 используется не pywin32, а pypywin32 и в нем win32gui уже включен.

Ошибка #2 (установка win32gui)



1



562 / 302 / 189

Регистрация: 20.05.2016

Сообщений: 592

22.10.2016, 18:58

5

Не нужен никакой доп. софт, win32gui — часть pywin32. pywin32_postinstall.py должен, если не ошибаюсь, запускаться автоматически. Он не устанавливает никаких дополнительных модулей и пр. в этом духе; он: копирует некоторые модули в системную папку, создаёт pth-файл, добавляет в контекстное меню питонячьих файлов пункт Edit with Pythonwin и т.д. …

Что касается ошибки: укажите полный путь к pywin32_postinstall.py



1



-4 / 26 / 9

Регистрация: 06.03.2015

Сообщений: 209

22.10.2016, 19:15

 [ТС]

6

Версия у меня 3.5.1 . У тебя нету случайно ссылочки на whl файл?



0



2739 / 2342 / 620

Регистрация: 19.03.2012

Сообщений: 8,832

22.10.2016, 19:19

7



1



-4 / 26 / 9

Регистрация: 06.03.2015

Сообщений: 209

22.10.2016, 20:06

 [ТС]

8

shsv,
alex925, от туда как раз и качал, и вот результат.
есть у кого ссылка на whl этого?

Цитата
Сообщение от Garry Galler
Посмотреть сообщение

pypywin32



0



562 / 302 / 189

Регистрация: 20.05.2016

Сообщений: 592

22.10.2016, 20:48

10

Dave_, а скрипт Вам удалось запустить? Если, допустим, pywin32 установился, то, может быть, нет pywin32.pth в site-packages?



0



-4 / 26 / 9

Регистрация: 06.03.2015

Сообщений: 209

22.10.2016, 21:07

 [ТС]

11

Всем спасибо. Тему можно закрывать.



0



У меня стоит Windows 11 с Python 3.10.0, pip 22.0.4. pywin32:

Name: pywin32
Version: 303
Summary: Python for Window Extensions
Home-page: https://github.com/mhammond/pywin32
Author: Mark Hammond (et al)
Author-email: mhammond@skippinet.com.au
License: PSF
Location: c:userserrmaappdataroamingpythonpython310site-packages
Requires:
Required-by:

При запуске pip install win32gui:

...
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "C:UserserrmaAppDataRoamingPythonPython310site-packagespip_vendorpep517in_process_in_process.py", line 363, in <module>
          main()
        File "C:UserserrmaAppDataRoamingPythonPython310site-packagespip_vendorpep517in_process_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:UserserrmaAppDataRoamingPythonPython310site-packagespip_vendorpep517in_process_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:UserserrmaAppDataLocalTemppip-build-env-7g6azkbvoverlayLibsite-packagessetuptoolsbuild_meta.py", line 177, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "C:UserserrmaAppDataLocalTemppip-build-env-7g6azkbvoverlayLibsite-packagessetuptoolsbuild_meta.py", line 159, in _get_build_requires
          self.run_setup()
        File "C:UserserrmaAppDataLocalTemppip-build-env-7g6azkbvoverlayLibsite-packagessetuptoolsbuild_meta.py", line 281, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:UserserrmaAppDataLocalTemppip-build-env-7g6azkbvoverlayLibsite-packagessetuptoolsbuild_meta.py", line 174, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 27, in <module>
          from win32.distutils.gui import win32gui_build_ext
        File "C:UserserrmaAppDataLocalTemppip-install-q1m1y_iywin32gui_1bbf420bae6242c6b9530a842796097bwin32distutilsgui.py", line 6, in <module>
          from .command import win32_build_ext
      ModuleNotFoundError: No module named 'win32.distutils.command'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Буду рад любой помощи.

Howto: Installing pywin32 on Python 3.5.1 64-bit

Installing Python for Windows Extensions on Python 3.5.1 64-bit

C:>pip install pypiwin32

If you are getting the following error message in importing win32gui install VC++ 2010 redistributable.


>>> import win32gui
Traceback (most recent call last):
  File «<stdin>», line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.

Reference(s):
http://sourceforge.net/projects/pywin32/
https://www.python.org/downloads/

Popular posts from this blog

Press Alt+F1, then type: #: reboot -p Reference(s): https://groups.google.com/forum/#!topic/android-x86/pEI7xAnOpNY

Say you have a document like below. And you want to split «hello world» into multiple lines. Doing this using Notepad++ is easy. Bring up Replace dialog ( Search | Replace… or CTRL+H ), in  Find what use hello worldrn . This matches the entire line including carriage return and linefeed character. In Replace with replace the string with the intended multi-line data, for example, hellornworldrn , will replace the line into two. One is hello , followed by world in the next line. And of course, for this to work you need to select Regular expression in the Search Mode .

Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed properly except that VirtualBox installation was complaining about missing dkms.conf file, see error message below. $: sudo /etc/init.d/vboxdrv setup * Stopping VirtualBox kernel modules [ OK ] * Uninstalling old VirtualBox DKMS kernel modules Error! Could not locate dkms.conf file. File: does not exist. [ OK ] * Trying to register the VirtualBox kernel modules using DKMS [ OK ] * Starting VirtualBox kernel modules [ OK ] Though it looks like installation was fine but I am concerned about its effects to VirtualBox functionality. To fix this, do: $: cd /var/lib/dkms/vboxhost $: sudo rm -r 4.1.4 $: sudo /etc/init.d/vboxdrv setup Of course you have to re

Понравилась статья? Поделить с друзьями:
  • Pip install win32gui error
  • Php fatal error uncaught error class pear not found in
  • Pip install ssl error
  • Php fatal error class pdo not found
  • Php fatal error class imagick not found