Unable to install zoomba package in windows getting No module named 'version'

I am trying to install zoomba package [ 2.7.1] in one of the windows server but its failing can anyone suggest how can I install the package . Using python version 3.6.8

C:\Users\user\Downloads\robotframework-zoomba-2.7.1>python setup.py install
Traceback (most recent call last):
File “setup.py”, line 3, in
import version
ModuleNotFoundError: No module named ‘version’

Whenever I am working on this locally I use:

pip install .

from the root directory.

Cant use pip due to security reasons . Trying to install in one of the client servers having lots of restrictions . package installation was the only option left for me .
Similar error message I get while installing zoomba refer image .

In that case in this file locally I would:

  1. Comment out or remove line 3 (the version import)
  2. Change the ‘version=’ line to:
    version='2.7.1'

Then try your install the way you were before.

@Wolfe1 wheel is working., source distribution does not… There’s line “import version” in setup.py which caused @kiran initial issue.

Ah I see, let me give this a look

After uninstall and then attempting to install the same way as @kiran, I am not running into an issue. Not really sure what the issue is here.

C:\Git\robotframework-zoomba>python setup.py install
running install
running bdist_egg
running egg_info
writing src\robotframework_zoomba.egg-info\PKG-INFO
writing dependency_links to src\robotframework_zoomba.egg-info\dependency_links.txt
writing requirements to src\robotframework_zoomba.egg-info\requires.txt
writing top-level names to src\robotframework_zoomba.egg-info\top_level.txt
reading manifest file ‘src\robotframework_zoomba.egg-info\SOURCES.txt’
writing manifest file ‘src\robotframework_zoomba.egg-info\SOURCES.txt’
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\Zoomba
copying src\Zoomba\APILibrary.py → build\lib\Zoomba
copying src\Zoomba\DesktopLibrary.py → build\lib\Zoomba
copying src\Zoomba\GUILibrary.py → build\lib\Zoomba
copying src\Zoomba\MobileLibrary.py → build\lib\Zoomba
copying src\Zoomba\SOAPLibrary.py → build\lib\Zoomba
copying src\Zoomba_init_.py → build\lib\Zoomba
creating build\lib\Zoomba\Helpers
copying src\Zoomba/Helpers\AppiumCommon.py → build\lib\Zoomba/Helpers
copying src\Zoomba/Helpers\EdgePlugin.py → build\lib\Zoomba/Helpers
copying src\Zoomba/Helpers\ReactSelect.py → build\lib\Zoomba/Helpers
copying src\Zoomba/Helpers_init_.py → build\lib\Zoomba/Helpers
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\Zoomba
copying build\lib\Zoomba\APILibrary.py → build\bdist.win32\egg\Zoomba
copying build\lib\Zoomba\DesktopLibrary.py → build\bdist.win32\egg\Zoomba
copying build\lib\Zoomba\GUILibrary.py → build\bdist.win32\egg\Zoomba
creating build\bdist.win32\egg\Zoomba\Helpers
copying build\lib\Zoomba\Helpers\AppiumCommon.py → build\bdist.win32\egg\Zoomba\Helpers
copying build\lib\Zoomba\Helpers\EdgePlugin.py → build\bdist.win32\egg\Zoomba\Helpers
copying build\lib\Zoomba\Helpers\ReactSelect.py → build\bdist.win32\egg\Zoomba\Helpers
copying build\lib\Zoomba\Helpers_init_.py → build\bdist.win32\egg\Zoomba\Helpers
copying build\lib\Zoomba\MobileLibrary.py → build\bdist.win32\egg\Zoomba
copying build\lib\Zoomba\SOAPLibrary.py → build\bdist.win32\egg\Zoomba
copying build\lib\Zoomba_init_.py → build\bdist.win32\egg\Zoomba
byte-compiling build\bdist.win32\egg\Zoomba\APILibrary.py to APILibrary.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba\DesktopLibrary.py to DesktopLibrary.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba\GUILibrary.py to GUILibrary.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba\Helpers\AppiumCommon.py to AppiumCommon.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba\Helpers\EdgePlugin.py to EdgePlugin.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba\Helpers\ReactSelect.py to ReactSelect.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba\Helpers_init_.py to init.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba\MobileLibrary.py to MobileLibrary.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba\SOAPLibrary.py to SOAPLibrary.cpython-38.pyc
byte-compiling build\bdist.win32\egg\Zoomba_init_.py to init.cpython-38.pyc
creating build\bdist.win32\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\PKG-INFO → build\bdist.win32\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\SOURCES.txt → build\bdist.win32\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\dependency_links.txt → build\bdist.win32\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\requires.txt → build\bdist.win32\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\top_level.txt → build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents…
creating dist
creating ‘dist\robotframework_zoomba-2.7.1-py3.8.egg’ and adding ‘build\bdist.win32\egg’ to it
removing ‘build\bdist.win32\egg’ (and everything under it)
Processing robotframework_zoomba-2.7.1-py3.8.egg
Copying robotframework_zoomba-2.7.1-py3.8.egg to c:\python\python38-32\lib\site-packages
Adding robotframework-zoomba 2.7.1 to easy-install.pth file

Installed c:\python\python38-32\lib\site-packages\robotframework_zoomba-2.7.1-py3.8.egg
Processing dependencies for robotframework-zoomba==2.7.1
Searching for msedge-selenium-tools==3.141.3
Best match: msedge-selenium-tools 3.141.3
Adding msedge-selenium-tools 3.141.3 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for psutil==5.7.3
Best match: psutil 5.7.3
Adding psutil 5.7.3 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for robotframework-appiumlibrary==1.5.0.7
Best match: robotframework-appiumlibrary 1.5.0.7
Adding robotframework-appiumlibrary 1.5.0.7 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for python-dateutil==2.8.1
Best match: python-dateutil 2.8.1
Adding python-dateutil 2.8.1 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for selenium==3.141.0
Best match: selenium 3.141.0
Adding selenium 3.141.0 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for requests==2.25.0
Best match: requests 2.25.0
Adding requests 2.25.0 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for robotframework-sudslibrary-aljcalandra==1.1
Best match: robotframework-sudslibrary-aljcalandra 1.1
Adding robotframework-sudslibrary-aljcalandra 1.1 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for robotframework-seleniumlibrary==4.5.0
Best match: robotframework-seleniumlibrary 4.5.0
Adding robotframework-seleniumlibrary 4.5.0 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for robotframework-requests==0.7.2
Best match: robotframework-requests 0.7.2
Adding robotframework-requests 0.7.2 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for robotframework==3.2.2
Best match: robotframework 3.2.2
Adding robotframework 3.2.2 to easy-install.pth file
Installing rebot-script.py script to C:\Python\Python38-32\Scripts
Installing rebot.exe script to C:\Python\Python38-32\Scripts
Installing rebot.exe.manifest script to C:\Python\Python38-32\Scripts
Installing robot-script.py script to C:\Python\Python38-32\Scripts
Installing robot.exe script to C:\Python\Python38-32\Scripts
Installing robot.exe.manifest script to C:\Python\Python38-32\Scripts

Using c:\python\python38-32\lib\site-packages
Searching for Appium-Python-Client==1.0.2
Best match: Appium-Python-Client 1.0.2
Adding Appium-Python-Client 1.0.2 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for decorator==4.4.2
Best match: decorator 4.4.2
Adding decorator 4.4.2 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for docutils==0.16
Best match: docutils 0.16
Adding docutils 0.16 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for six==1.15.0
Best match: six 1.15.0
Adding six 1.15.0 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for kitchen==1.2.6
Best match: kitchen 1.2.6
Adding kitchen 1.2.6 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for urllib3==1.25.11
Best match: urllib3 1.25.11
Adding urllib3 1.25.11 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for idna==2.10
Best match: idna 2.10
Adding idna 2.10 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for certifi==2020.11.8
Best match: certifi 2020.11.8
Adding certifi 2020.11.8 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for chardet==3.0.4
Best match: chardet 3.0.4
Adding chardet 3.0.4 to easy-install.pth file
Installing chardetect-script.py script to C:\Python\Python38-32\Scripts
Installing chardetect.exe script to C:\Python\Python38-32\Scripts
Installing chardetect.exe.manifest script to C:\Python\Python38-32\Scripts

Using c:\python\python38-32\lib\site-packages
Searching for suds-jurko==0.6
Best match: suds-jurko 0.6
Adding suds-jurko 0.6 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Searching for robotframework-pythonlibcore==2.1.0
Best match: robotframework-pythonlibcore 2.1.0
Adding robotframework-pythonlibcore 2.1.0 to easy-install.pth file

Using c:\python\python38-32\lib\site-packages
Finished processing dependencies for robotframework-zoomba==2.7.1

Try (on windows),

python -mvenv venv
call venv\Scripts\activate.bat
pip install robotframework-zoomba --no-binary :all:

and you see the same error … Issue is: when you install locally from git clone, you have the version.py right there besides setup.py also, so it works just fine.

But version.py is not shipped in the source distribution (aka the tarball or zip file you uploaded to pypi along with the whl’s) … And the reason why this happens is that wheels do not execute the setup.py anymore, so its dependencies are not required to be shipped …

Typically to fix this, you would need to add “MANIFEST.in” file to your repo

By following the above steps I don’t get error at version line now instead facing errors at lines 12,15,22 .

Error after declaring Version=2.7.1
C:\Users\user\Downloads\robotframework-zoomba-2.7.1>python setup.py install
Traceback (most recent call last):
File “setup.py”, line 12, in
with open(“docs/README.md”, “r”) as fh:
FileNotFoundError: [Errno 2] No such file or directory: ‘docs/README.md’

Error After commenting out line 12
C:\Users\user\Downloads\robotframework-zoomba-2.7.1>python setup.py install
Traceback (most recent call last):
File “setup.py”, line 15, in
with open(‘requirements.txt’) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘requirements.txt’

Error After commenting out line 15
C:\Users\user\Downloads\robotframework-zoomba-2.7.1>python setup.py install
Traceback (most recent call last):
File “setup.py”, line 22, in
long_description=long_description,
NameError: name ‘long_description’ is not defined

I have merged and released @rasjani’s pull request, could you give it a try now?

Hi Brandon,

Tried installing 2.7.2 package of zoomba . Below is the response . But could you please tell me why do I get error at the end of few lines ?
I have selenium-tools==3.141.0 installed in my system .
should I need to upgrade it ?
But I can see its got installed when I use the command “pip list” to check the installed packages .

C:\Users\user\Downloads\robotframework-zoomba-2.7.2>python setup.py install
running install
running bdist_egg
running egg_info
writing src\robotframework_zoomba.egg-info\PKG-INFO
writing dependency_links to src\robotframework_zoomba.egg-info\dependency_links.txt
writing requirements to src\robotframework_zoomba.egg-info\requires.txt
writing top-level names to src\robotframework_zoomba.egg-info\top_level.txt
reading manifest file ‘src\robotframework_zoomba.egg-info\SOURCES.txt’
reading manifest template ‘MANIFEST.in’
writing manifest file ‘src\robotframework_zoomba.egg-info\SOURCES.txt’
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\Zoomba
copying src\Zoomba\APILibrary.py -> build\lib\Zoomba
copying src\Zoomba\DesktopLibrary.py -> build\lib\Zoomba
copying src\Zoomba\GUILibrary.py -> build\lib\Zoomba
copying src\Zoomba\MobileLibrary.py -> build\lib\Zoomba
copying src\Zoomba\SOAPLibrary.py -> build\lib\Zoomba
copying src\Zoomba_init_.py -> build\lib\Zoomba
creating build\lib\Zoomba\Helpers
copying src\Zoomba/Helpers\AppiumCommon.py -> build\lib\Zoomba/Helpers
copying src\Zoomba/Helpers\EdgePlugin.py -> build\lib\Zoomba/Helpers
copying src\Zoomba/Helpers\ReactSelect.py -> build\lib\Zoomba/Helpers
copying src\Zoomba/Helpers_init_.py -> build\lib\Zoomba/Helpers
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\Zoomba
copying build\lib\Zoomba\APILibrary.py -> build\bdist.win-amd64\egg\Zoomba
copying build\lib\Zoomba\DesktopLibrary.py -> build\bdist.win-amd64\egg\Zoomba
copying build\lib\Zoomba\GUILibrary.py -> build\bdist.win-amd64\egg\Zoomba
creating build\bdist.win-amd64\egg\Zoomba\Helpers
copying build\lib\Zoomba\Helpers\AppiumCommon.py -> build\bdist.win-amd64\egg\Zoomba\Helpers
copying build\lib\Zoomba\Helpers\EdgePlugin.py -> build\bdist.win-amd64\egg\Zoomba\Helpers
copying build\lib\Zoomba\Helpers\ReactSelect.py -> build\bdist.win-amd64\egg\Zoomba\Helpers
copying build\lib\Zoomba\Helpers_init_.py -> build\bdist.win-amd64\egg\Zoomba\Helpers
copying build\lib\Zoomba\MobileLibrary.py -> build\bdist.win-amd64\egg\Zoomba
copying build\lib\Zoomba\SOAPLibrary.py -> build\bdist.win-amd64\egg\Zoomba
copying build\lib\Zoomba_init_.py -> build\bdist.win-amd64\egg\Zoomba
byte-compiling build\bdist.win-amd64\egg\Zoomba\APILibrary.py to APILibrary.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba\DesktopLibrary.py to DesktopLibrary.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba\GUILibrary.py to GUILibrary.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba\Helpers\AppiumCommon.py to AppiumCommon.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba\Helpers\EdgePlugin.py to EdgePlugin.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba\Helpers\ReactSelect.py to ReactSelect.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba\Helpers_init_.py to init.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba\MobileLibrary.py to MobileLibrary.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba\SOAPLibrary.py to SOAPLibrary.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\Zoomba_init_.py to init.cpython-36.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying src\robotframework_zoomba.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents…
creating dist
creating ‘dist\robotframework_zoomba-2.7.2-py3.6.egg’ and adding ‘build\bdist.win-amd64\egg’ to it
removing ‘build\bdist.win-amd64\egg’ (and everything under it)
Processing robotframework_zoomba-2.7.2-py3.6.egg
Copying robotframework_zoomba-2.7.2-py3.6.egg to c:\program files\python36\lib\site-packages
Adding robotframework-zoomba 2.7.2 to easy-install.pth file

Installed c:\program files\python36\lib\site-packages\robotframework_zoomba-2.7.2-py3.6.egg
Processing dependencies for robotframework-zoomba==2.7.2
Searching for msedge-selenium-tools==3.141.3
Reading https://pypi.org/simple/msedge-selenium-tools/
Download error on https://pypi.org/simple/msedge-selenium-tools/: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond – Some packages may not be found!
Couldn’t find index page for ‘msedge-selenium-tools’ (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond – Some packages may not be found!
No local packages or working download links found for msedge-selenium-tools==3.141.3
error: Could not find suitable distribution for Requirement.parse(‘msedge-selenium-tools==3.141.3’)

Im not sure if its required to have msedge-selenium-tools 3.141.3 over 3.141.0, we implemented it recently for use with chrome edge so we simply wanted to be up to date. Looking at that you may want to simply install the latest msedge-selenium-tools directly and try the installation again.

As of right now I am not able to reproduce on a clean install on my end.

@wolfe1 the issue @kiran is having looks like either temporary network connectivity issue or that the env Kiran is running is completely blocked to access to pypi servers (or pip needs to be configured to use proxy)

1 Like

Hi Jani Mikkonen , Brandon

Thanks for all your support I was able to install the package .

1 Like