AutoIT library installation fails to "TypeError: object of type 'NoneType' has no len()" error

224 views
Skip to first unread message

Marko Hämäläinen

unread,
May 9, 2018, 3:16:53 AM5/9/18
to robotframework-users
Hello!

I would like to install AutoIt library version 1.1 to my Windows 10 computer. I have following RF related configuration already installed on my computer

PS C:\> pip list
Package                        Version
------------------------------ -------
future                         0.16.0
pip                            10.0.1
pywin32                        223
robotframework                 3.0.3
robotframework-imaplibrary     0.3.0
robotframework-ride            1.5.2.1
robotframework-seleniumlibrary 3.1.1
selenium                       3.11.0
setuptools                     28.8.0
PS C:\>

PS C:\> python --version
Python 2.7.14


Executing installation script python setup.py install fails to error like this

Don't think we need to unregister the old one...
%SYSTEMROOT%\system32\regsvr32.exe /S C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
python C:\Python27\Lib\site-packages\win32com\client\makepy.py C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
Generating to C:\Users\ADM-SMPJ\AppData\Local\Temp\gen_py\2.7\F8937E53-D444-4E71-9275-35B64210CC3Bx0x1x0.py
Building definitions from type library...
Generating...
Importing module
Traceback (most recent call last):
 File "setup.py", line 88, in <module>
   destPath = os.path.normpath(os.path.join(os.getenv("HOMEDRIVE"), r"\RobotFramework\Extensions\AutoItLibrary"))
 File "C:\Python27\lib\ntpath.py", line 65, in join
   result_drive, result_path = splitdrive(path)
 File "C:\Python27\lib\ntpath.py", line 115, in splitdrive
   if len(p) > 1:
TypeError: object of type 'NoneType' has no len()

Now I have no idea where is the problem. Do you know where is the problem and how to fix this?

Amad Ali

unread,
May 9, 2018, 7:37:28 PM5/9/18
to robotframework-users
Bump for visibility. I ran into the same error.

Parthiban

unread,
May 15, 2018, 6:38:04 AM5/15/18
to robotframework-users
Hi,

Open the command prompt in administrator mode (right click on cmd.exe and select run as administrator) and do same installation steps.
Reply all
Reply to author
Forward
0 new messages