Comments (7)
Changed first line in ~/.gauge/plugins/python/0.1.1/start.py from
#! /usr/bin/env python -u
to
#! /usr/bin/env python
and running gauge in a virtualenv (pyvenv) fixed the issue in Elementary OS (Ubuntu LTS 14.04).
from gauge-python.
-u
flag is just for unbuffered binary stdout and stderr, this should not fail/stop the runner.
This is a bug in runner. It happens when python executable is not present in /usr/bin
Could you please share the location of the python executable?
you can try creating a symlink of python
in /usr/bin
and refer it to python executable, this should fix the issue for now.
from gauge-python.
Interesting! I'm using pyenv (https://github.com/yyuu/pyenv) which changes the python path to
/home/bernd/.pyenv/shims/python
However I understand that since I'm using the latest version of getgauge I need python 3. That would mean to either call /usr/bin/python3 or work with a virtualenv. Changing /usr/bin/python to python3 is not an option. I ended up using a virtualenv and the path to the python executable in this context is
/home/bernd/Downloads/gauge/s5/gauge_venv/bin/python
You should be able to reproduce the by using a virtualenv.
from gauge-python.
It appears that you can not pass arguments to python when using /usr/bin/env:
from gauge-python.
Thanks for the info @berndca. I have released a new version with the fix. Run the following commands to update the plugin and package.
gauge --update python
pip install getgauge --upgrade
Follow the docs, If print statements are getting printed at the end of execution.
from gauge-python.
Thanks! Did you consider to replace start.py with a start.sh in which PYTHONUNBUFFERED is set and the new/renamed start.py is called?
from gauge-python.
There were two solutions to this issue:
- Add start.sh which will call start.py with
PYTHONUNBUFFERED
set as env var(as you suggested) or pass-u
flag topython
executable. - Add a
python.properties
file withPYTHONUNBUFFERED = 1
and let Gauge handle this while execution.
I implemented it using the second approach, but I think it would work with both the approcahes.
from gauge-python.
Related Issues (20)
- grpcio update and language runner error HOT 6
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Extremely weird behavior when running anything other than the example project
- Python step implementations not found in VSCode devcontainer HOT 4
- [SOS]When i update getgauge==0.3.14,it does not work well(Chinease support is unfriendly) HOT 4
- Exception while loading step implementations from file not logged HOT 2
- File "check_and_install_getgauge.py", line 5, ImportError: No module named pkg_resources with Python 3.7 HOT 8
- when gauge python upgrade to 0.3.15, error got an unexpected token STAR here HOT 3
- Python runner doesn't exit when gauge gets SIGINT
- load_files method taking 40+ seconds HOT 1
- Latest version of 'protobuf' causes errors on start
- Screenshot feature is not working as expected HOT 2
- Getting error when I provide the table at the scenario & step level HOT 9
- All tests are shown in test explorer but it's not grouped based on the base package name
- plugin 0.3.17 can not support Chinese HOT 1
- The statistics should be consistent in console and reports with table-driven-scenario feature enabled HOT 1
- VSCode debug mode problem with Python 3.10 HOT 2
- Not possible to debug external Python code HOT 1
- Python 3.10 feature "Structural Pattern Matching" not supported
- Gauge cant install the plugin ' ' [PyCharm Community][Gauge 1.6.3] HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gauge-python.