Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue - Missing api.py #9

Closed
akanksha4lal opened this issue Feb 16, 2017 · 2 comments
Closed

Installation issue - Missing api.py #9

akanksha4lal opened this issue Feb 16, 2017 · 2 comments

Comments

@akanksha4lal
Copy link

akanksha4lal commented Feb 16, 2017

Description

Every time we set up a new machine to run the gauge python, I run into issue where
from getgauge import api
step fails.
We have to remove , reinstall and somehow it comes. Or manually get the getgauge files and put it there from other machine.

We follow the instructions given here : http://gauge-python.readthedocs.io/en/latest/installation.html

and always used pip to install the getgauge

Steps to reproduce

  1. Install getgauge
  2. Install gauge python plugin
  3. Run spec file

Information that will help us debug

  • Gauge version 0.7.0
  • Gauge Python plugin version 0.1.7
  • Python version 2.7.10
  • getgauge package version, run pip3 show getgauge to get it : 0.1.7
  • OS information Mac OS Sierra
@kashishm
Copy link
Collaborator

kashishm commented Feb 17, 2017

@akanksha4lal This might happen when getgauge package is missing or pip has installed it for python3 and the project uses python2.7.

One way to verify this would be to check if the package is present in python2.7 site-packages. Run the following command

$ python2.7
>>> from distutils.sysconfig import get_python_lib
>>> print get_python_lib()

And check if the getgauge package exists in the path printed by the above command. If the package is not present then you will have to configure pip for python2.7.

@akanksha4lal
Copy link
Author

@kashishm
I don't have python3. There is only 2.7 version installed. Its not that getgauge is entirely absent, specifically api.py and validator.py are the two files which are missing. Rest of the package comes in.
This has happened on multiple MacOS machines. Adding these files manually resolves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants