Git Product home page Git Product logo

robotframework-debugger's Issues

Importing test library 'Debugger' failed: ValueError: invalid version number '3.2rc1'

Nachdem Update von Robot Framework auf die Version 3.2rc1 erhalte ich im Keyword

Import Library     Debugger     break_on_fail=false

die Fehlermeldung

Importing test library 'Debugger' failed: ValueError: invalid version number '3.2rc1'
Traceback (most recent call last):
   File "D:\Python\Lib\site-packages\Debugger\__init__.py", line 23, in <module> from Debugger.DebuggerGui import DebuggerGui
   File "D:\Python\Lib\site-packages\Debugger\DebuggerGui.py", line 13, in <module>     
       HTML_ENABLED = StrictVersion(robot.__version__) >= StrictVersion('3.2a1')
   File "D:\Python\Lib\distutils\version.py", line 40, in __init__     self.parse(vstring)
   File "D:\Python\Lib\distutils\version.py", line 137, in parse     raise ValueError("invalid version number '%s'" % vstring)

Python 3.9.0 and RF

while trying to install robotframework-debugger I got the following error with tkinterhtml

~: python3 -m pip install robotframework-debugger

Collecting robotframework-debugger
  Downloading https://files.pythonhosted.org/packages/d6/ea/6569a5698414201cb4ade04989f6e1a579e6c744b9a5aa77b641c418a852/robotframework_debugger-0.1.4-py3-none-any.whl
Collecting robotframework>=3.1 (from robotframework-debugger)
  Using cached https://files.pythonhosted.org/packages/38/43/e03efaa547a3158f0745c5ea7f1eafebd69d46f2c9aece3a8ba21992adc9/robotframework-3.2.2-py2.py3-none-any.whl
Collecting tkinterhtml (from robotframework-debugger)
  Downloading https://files.pythonhosted.org/packages/37/be/86c2db091f663667686726aa7c45dc5fa198683b018986e6a5854006dbd7/tkinterhtml-0.7.zip (930kB)
    100% |████████████████████████████████| 931kB 1.9MB/s 
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 376, in prepare_files
    discovered_reqs.extend(self._prepare_file(
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 634, in _prepare_file
    abstract_dist.prep_for_dist()
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 129, in prep_for_dist
    self.req_to_install.run_egg_info()
  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 412, in run_egg_info
    self.setup_py, self.name,
  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 387, in setup_py
    import setuptools  # noqa
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/setuptools-39.0.1-py2.py3-none-any.whl/setuptools/__init__.py", line 14, in <module>
    from setuptools.dist import Distribution, Feature
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/setuptools-39.0.1-py2.py3-none-any.whl/setuptools/dist.py", line 24, in <module>
    from setuptools.depends import Require
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/setuptools-39.0.1-py2.py3-none-any.whl/setuptools/depends.py", line 7, in <module>
    from .py33compat import Bytecode
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/setuptools-39.0.1-py2.py3-none-any.whl/setuptools/py33compat.py", line 54, in <module>
    unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
AttributeError: 'HTMLParser' object has no attribute 'unescape'

tkinterhtml is untouched since Feb 27, 2016 https://pypi.org/project/tkinterhtml/#files
This issue might be tackled in pypa/setuptools#1788

my params:
setuptools-50.3.2
python 3.9.0
pip 9.0.1

Edit: Talked to Snooz (Q4.2020)
A fast workaround could be:
One could use python 3.8 or fork the repo and exclude tkinterhtml (it is not essential) and install it with pip from source

RF chrashes on Debug KW Windows python 3.8.6

Environement:
Windows 10
Python 3.8.6
robotframework==3.2.2
robotframework-debugger==0.1.4

*** Settings ***
Library  Debugger

*** Test Cases ***
test
    log to console  First text logged
    debug   log to console   Second text logged

When this file is executed output is:

(rf_browser) C:\Users\jan.dubcak.HQ\git\edf>robot --listener Debugger RobotFramework\keywords\tmp.robot
C:\Users\JANDUB~1.HQ\AppData\Local\Temp\tmpfdzh2jpq\BuiltIn.xml
C:\Users\JANDUB~1.HQ\AppData\Local\Temp\tmpfdzh2jpq\Debugger.xml
==============================================================================
Tmp
==============================================================================
test                                                                  First text logged
.
(rf_browser) C:\Users\jan.dubcak.HQ\git\edf>

The output file is empty (cat in gitbash).

$ cat output.xml

I have tried debugging with pdb and found out that it crashes in DubeggerGuiL
Debugger/DebuggerGui.py:297

> c:\users\jan.dubcak.hq\rf_browser\lib\site-packages\debugger\debuggergui.py(297)config_documentation_frame()
-> self.Doc_Frame.set_content("<html><body>--</body></html>")

When I comment lines: 294-297
it starts and works, but I guess this is not the correct way.

        # if HTML_ENABLED:
        #     self.Doc_Frame.set_content("<html><body>--</body></html>")
        # else:
        #     self.Doc_Frame.insert(END, "--")

Could you please take a look a this?

Best regards and many thanks for this tool,
Jan

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.