GithubHelp home page GithubHelp logo

Cannot Install about pyautoit HOT 18 CLOSED

jacexh avatar jacexh commented on July 17, 2024
Cannot Install

from pyautoit.

Comments (18)

jacexh avatar jacexh commented on July 17, 2024 2

@kotofos try this: pip install -U https://github.com/jacexh/pyautoit/archive/master.zip

from pyautoit.

jacexh avatar jacexh commented on July 17, 2024

hi, which version of python do you installed?

from pyautoit.

DarthOpto avatar DarthOpto commented on July 17, 2024

I have 2.7.9 installed

Curtis Salisbury, MBA, MHRM
[email protected]
[email protected]

(801)310-4173 (Mobile)
(801)899-2143 (Home)

On Tue, Feb 24, 2015 at 9:30 PM, jacexh [email protected] wrote:

hi, which version of python do you installed?


Reply to this email directly or view it on GitHub
#4 (comment).

from pyautoit.

DarthOpto avatar DarthOpto commented on July 17, 2024

64 bit version

Curtis Salisbury, MBA, MHRM
[email protected]
[email protected]

(801)310-4173 (Mobile)
(801)899-2143 (Home)

On Wed, Feb 25, 2015 at 10:57 AM, Curtis Salisbury <
[email protected]> wrote:

I have 2.7.9 installed

Curtis Salisbury, MBA, MHRM
[email protected]
[email protected]

(801)310-4173 (Mobile)
(801)899-2143 (Home)

On Tue, Feb 24, 2015 at 9:30 PM, jacexh [email protected] wrote:

hi, which version of python do you installed?


Reply to this email directly or view it on GitHub
#4 (comment).

from pyautoit.

DarthOpto avatar DarthOpto commented on July 17, 2024

When I attempt to install to a Linux or OSx environment, I am getting the following error:

Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_root/pyautoit/setup.py", line 9, in
import autoit
File "autoit/init.py", line 6, in
from .autoit import options, properties, commands
File "autoit/autoit.py", line 7, in
from ctypes.wintypes import *
File "/usr/lib/python2.7/ctypes/wintypes.py", line 23, in
class VARIANT_BOOL(_SimpleCData):
ValueError: type 'v' not supported
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_root/pyautoit/setup.py", line 9, in

import autoit

File "autoit/init.py", line 6, in

from .autoit import options, properties, commands

File "autoit/autoit.py", line 7, in

from ctypes.wintypes import *

File "/usr/lib/python2.7/ctypes/wintypes.py", line 23, in

class VARIANT_BOOL(_SimpleCData):

ValueError: type 'v' not supported

from pyautoit.

jacexh avatar jacexh commented on July 17, 2024

Please try 32 bit version of python.
autoItx.dll only support for windows, it cannot be installed into Linux/Unix.

from pyautoit.

jkyeung avatar jkyeung commented on July 17, 2024

You included both 32-bit and 64-bit versions of the AutoIt DLL, but your test of whether to use the 64-bit version (near the top of autoit.py) is wrong. The PROGRAMFILES environment variable is always C:\Program Files, no matter the bitness of Windows. I don't think it's important to check the bitness of Windows anyway, because you shouldn't ever have a 64-bit Python on a 32-bit Windows. Therefore, once you have determined that you have a 64-bit Python, you might as well just go ahead and use the 64-bit DLL.

The following lines in autoit.py:

if "(x86)" in os.environ['PROGRAMFILES'] and bit == "64bit":
    # if 64bit version of python within 64bit version of Windows,
    # load AutoItX3_x64.dll
    dll = "AutoItX3_x64.dll"

should be

if bit == "64bit":
    # if 64bit version of python, load AutoItX3_x64.dll
    dll = "AutoItX3_x64.dll"

That will at least get the package to import properly. When I tried the simple script in the PyAutoIt README on my 64-bit Python 2.7, the control_click() failed, but that's a separate issue.

from pyautoit.

jacexh avatar jacexh commented on July 17, 2024

I merged this patch, thank you for your feedback.

from pyautoit.

kotofos avatar kotofos commented on July 17, 2024

Can you please also update pypi package?

from pyautoit.

sahan80 avatar sahan80 commented on July 17, 2024

hi, I have used pip install -U https://github.com/jacexh/pyautoit/archive/master.zip it installed successfully. But when I am trying to import pyautoit in IDLE it throwing an exception like

Traceback (most recent call last):
File "<pyshell#0>", line 1, in
import pyautoit
ImportError: No module named 'pyautoit'

please help...

from pyautoit.

jacexh avatar jacexh commented on July 17, 2024

@sahan80 the package name is autoit

from pyautoit.

sahan80 avatar sahan80 commented on July 17, 2024

oh sorry for that, it is working fine now with autoit

from pyautoit.

dsenkyrova avatar dsenkyrova commented on July 17, 2024

Hi guys I am trying to install on linux but I get the following error

/usr/bin/pip run on Tue May 30 06:26:28 2017
Downloading/unpacking pyautoit
Getting page https://pypi.python.org/simple/pyautoit/
URLs to search for versions for pyautoit:

File "", line 17, in

File "/tmp/pip-build-fa7FzT/pyautoit/setup.py", line 9, in

import autoit

File "autoit/init.py", line 6, in

from .autoit import options, properties, commands

File "autoit/autoit.py", line 7, in

from ctypes.wintypes import *

File "/usr/lib64/python2.7/ctypes/wintypes.py", line 23, in

class VARIANT_BOOL(_SimpleCData):

ValueError: type 'v' not supported


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-fa7FzT/pyautoit
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 298, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/site-packages/pip/req.py", line 1234, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.7/site-packages/pip/req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/site-packages/pip/util.py", line 698, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-fa7FzT/pyautoit

from pyautoit.

dmwyatt avatar dmwyatt commented on July 17, 2024

@dsenkyrova AutoIT is Windows-only, so this library will not work on Linux.

from pyautoit.

balup34 avatar balup34 commented on July 17, 2024

from pyautoit.

Vinodkumar545 avatar Vinodkumar545 commented on July 17, 2024

Hi,

what is the alternative package/tool for linux? Clearly, pyautoit only works for windows. What about linux user??

Could you please provide some suggestions here.

Vinod

from pyautoit.

stuaxo avatar stuaxo commented on July 17, 2024

Hi,
Just another confirmation that installing from git with pip works, any chance of this making it into a release and onto pypi?

S

from pyautoit.

kyc1109 avatar kyc1109 commented on July 17, 2024

I also have the same problem in win10 64bit.
I remove AutoItX3.dll (win32) and then rename from AutoItX3_x64.dll (64 version) to AutoItX3.dll. then re-install again, is work. But not sure have any risk.

from pyautoit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.