Giter VIP home page Giter VIP logo

Comments (6)

ZurdenRo avatar ZurdenRo commented on June 21, 2024 1

I don’t know, it’s possible the plugin install doesn’t work properly on Python 3.11 on Windows for some reason, but it’s very hard to understand what you executed and what happened, and which logs had what.

what you executed?
I try to execute a simple test case like 'Hello world!' on SO: Window 10

Whig log had what ?
There is the log after executed the command: gauge run .\specs\

C:\Users\u902159\AppData\Local\Programs\Python\Python311\python.exe -m pip install getgauge==0.4.2 --user dont recognize like command intern or external

Traceback (most recent call last):

File "C:\Users\u902159\AppData\Roaming\gauge\plugins\python\0.4.2\check_and_install_getgauge.py", line 32, in assert_versions
getgauge_version = pkg_resources.get_distribution('getgauge').version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources_init_.py", line 478, in get_distribution
dist = get_provider(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources_init_.py", line 354, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources_init_.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources_init_.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'getgauge' distribution was not found and is required by the application

I don’t understand what you mean by “I install manually the plugin python”

I was wrong, i never installed de plugin python. I installed gauge using ZIP file. Then i tried to execute a test case and the log is above. Then, I verified gauge automatically install the python plugin before to execute test case. gauge plugin but the problem was still existing.

why your plugin install log has the text “dont recognize like command intern or external” in it after the Python command.
I dont know, after to run the command to execute the test case, i saw the log, and then i found it the problem.
I thing when i installed gauge via ZIP file, this installation dont have the packages getgauge, that is whay the problem exist.

So I installed manual via pip the next command: pip install getgauge get-gauge. Then the problem was fixed. (sorry foy me english)

from gauge-python.

ZurdenRo avatar ZurdenRo commented on June 21, 2024

I solved, created file manifest, I added it:

{
  "Language": "python",
  "Plugins": [
    "html-report",
    "xml-report"
  ]
}

But now I finding other problem:

Logs

C:\Users\u902159\AppData\Local\Programs\Python\Python311\python.exe -m pip install getgauge==0.4.2 --user dont recognize like command intern or external

Traceback (most recent call last):

File "C:\Users\u902159\AppData\Roaming\gauge\plugins\python\0.4.2\check_and_install_getgauge.py", line 32, in assert_versions
getgauge_version = pkg_resources.get_distribution('getgauge').version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources\__init__.py", line 478, in get_distribution
dist = get_provider(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources\__init__.py", line 354, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources\__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources\__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'getgauge' distribution was not found and is required by the application
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\u902159\AppData\Roaming\gauge\plugins\python\0.4.2\check_and_install_getgauge.py", line 40, in <module>
assert_versions()
File "C:\Users\u902159\AppData\Roaming\gauge\plugins\python\0.4.2\check_and_install_getgauge.py", line 36, in assert_versions
install_getgauge("getgauge=="+expected_gauge_version)
File "C:\Users\u902159\AppData\Roaming\gauge\plugins\python\0.4.2\check_and_install_getgauge.py", line 20, in install_getgauge
check_output([" ".join(install_cmd)], shell=True)
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\u902159\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\u902159\\AppData\\Local\\Programs\\Python\\Python311\\python.exe -m pip install getgauge==0.4.2 --user']' returned non-zero exit status 1.
Traceback (most recent call last):
File "C:\Users\u902159\AppData\Roaming\gauge\plugins\python\0.4.2\start.py", line 9, in <module>
import grpc
ModuleNotFoundError: No module named 'grpc'
Error occurred while waiting for runner process to finish.
Error : exit status 1
Error ----------------------------------

I think, i have two problem:

First : getgauge dont recognize the command.

pkg_resources.DistributionNotFound: The 'getgauge' distribution was not found and is required by the application
raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['C:\\Users\\u902159\\AppData\\Local\\Programs\\Python\\Python311\\python.exe -m pip install getgauge==0.4.2 --user']' returned non-zero exit status 1.

Second: The module doesnt exist:

import grpc
ModuleNotFoundError: No module named 'grpc'

from gauge-python.

chadlwilson avatar chadlwilson commented on June 21, 2024

Do you get the same error if you try and install 0.4.1, e.g

C:\\Users\\u902159\\AppData\\Local\\Programs\\Python\\Python311\\python.exe -m pip install getgauge==0.4.1 --user

from gauge-python.

ZurdenRo avatar ZurdenRo commented on June 21, 2024

Yep, the same error.

from gauge-python.

ZurdenRo avatar ZurdenRo commented on June 21, 2024

I find the solution: pip-getgauge

I install using pip:

pip install getgauge

I dont know why i need to in install the way manual, and then python recognize getgauge. I install manually the plugin python, but it didnt work, so. I installed getgauge, and then work.

from gauge-python.

chadlwilson avatar chadlwilson commented on June 21, 2024

I don’t know, it’s possible the plugin install doesn’t work properly on Python 3.11 on Windows for some reason, but it’s very hard to understand what you executed and what happened, and which logs had what.

I don’t understand what you mean by “I install manually the plugin python” either, or why your plugin install log has the text “dont recognize like command intern or external” in it after the Python command.

from gauge-python.

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.