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

[ ERROR ] Unexpected error: IOError: [Errno 0] Error #2709

Closed
flywojt opened this issue Nov 8, 2017 · 50 comments
Closed

[ ERROR ] Unexpected error: IOError: [Errno 0] Error #2709

flywojt opened this issue Nov 8, 2017 · 50 comments
Assignees
Milestone

Comments

@flywojt
Copy link

flywojt commented Nov 8, 2017

My tests starts to fall down. Everything worked fine until I update my Windows 10 two days ago. I downgrade windows but this doesn't help. I also tried to upgrade robot framework and selenium2library and this doesn't helped. This bug occurs for every browser I used (chrome, ff and edge).

[ ERROR ] Unexpected error: IOError: [Errno 0] Error
Traceback (most recent call last):
File "c:\python27\lib\site-packages\robot\utils\application.py", line 83, in _execute
rc = self.main(arguments, **options)
File "c:\python27\lib\site-packages\robot\run.py", line 445, in main
result = suite.run(settings)
File "c:\python27\lib\site-packages\robot\running\model.py", line 248, in run
self.visit(runner)
File "c:\python27\lib\site-packages\robot\model\testsuite.py", line 161, in visit
visitor.visit_suite(self)
File "c:\python27\lib\site-packages\robot\model\visitor.py", line 86, in visit_suite
suite.suites.visit(self)
File "c:\python27\lib\site-packages\robot\model\itemlist.py", line 76, in visit
item.visit(visitor)
File "c:\python27\lib\site-packages\robot\model\testsuite.py", line 161, in visit
visitor.visit_suite(self)
File "c:\python27\lib\site-packages\robot\model\visitor.py", line 87, in visit_suite
suite.tests.visit(self)
File "c:\python27\lib\site-packages\robot\model\itemlist.py", line 76, in visit
item.visit(visitor)
File "c:\python27\lib\site-packages\robot\model\testcase.py", line 74, in visit
visitor.visit_test(self)
File "c:\python27\lib\site-packages\robot\running\runner.py", line 159, in visit_test
self._output.end_test(ModelCombiner(test, result))
File "c:\python27\lib\site-packages\robot\output\output.py", line 59, in end_test
LOGGER.end_test(test)
File "c:\python27\lib\site-packages\robot\output\logger.py", line 183, in end_test
logger.end_test(test)
File "c:\python27\lib\site-packages\robot\output\console\verbose.py", line 51, in end_test
self._writer.status(test.status, clear=True)
File "c:\python27\lib\site-packages\robot\output\console\verbose.py", line 114, in status
self._clear_status()
File "c:\python27\lib\site-packages\robot\output\console\verbose.py", line 124, in _clear_status
self._write_info()
File "c:\python27\lib\site-packages\robot\output\console\verbose.py", line 90, in _write_info
self._stdout.write(self._last_info)
File "c:\python27\lib\site-packages\robot\output\console\highlighting.py", line 51, in write
self.stream.write(console_encode(text, stream=self.stream))

@pekkaklarck
Copy link
Member

I have no idea idea what's causing this but quick googling showed that others have had similar errors. For example, this looks very similar: tartley/colorama#101

@gonzo60
Copy link

gonzo60 commented Nov 12, 2017

From time to time I have this same problem.

@pekkaklarck
Copy link
Member

@ianlg
Copy link

ianlg commented Nov 17, 2017

@flywojt have you found a solution to this issue? I'm having the same problem.

@ianlg
Copy link

ianlg commented Nov 18, 2017

I have just checked my error message is exactly the same as above. I too remember having updated windows 10 then I started to have problems. Does anyone think it has something to do with the win10 update? I tried everything & reinstalled all the components of Robot framework & still no luck.

Noticed the extra text that appear while running the test in pycharm

capture

@flywojt
Copy link
Author

flywojt commented Nov 18, 2017

@ianlg no, I am not. This must be conected with windows or configuration because on iOS on MAC my tests works fine.

@ianlg
Copy link

ianlg commented Nov 18, 2017

@flywojt how did you manage to fix the issue you mentioned above?

@pekkaklarck
Copy link
Member

pekkaklarck commented Nov 20, 2017

More and more people are reporting this issue when using ChromeDriver also on the Slack channel. Based on the accepted answer to the StackOverflow question I already mentioned, this weird IOError: [Errno 0] error occurs on Windows if you read and write to file without using seek between. Based on the traceback included in the description of this issue, the problem occurs on Robot side when it's writing content to the console. Robot itself never reads from console, but could it be that latest versions of ChromeDriver or Chrome have started doing it?

Although it's unlikely that this problem is caused by Robot, we could possibly workaround it by using seek before we write content to the console. Could someone encountering this issue test would adding line

self.stream.seek(0, 2)

right before the line causing the error help?

@pekkaklarck
Copy link
Member

Also, has someone encountered this problem without using ChromeDriver? If not, then the real problem clearly is in ChromeDriver or in Chrome itself.

Those encountering the problem with ChromeDriver, do you remember which version started causing it, or could you downgrade to older versions to see when the problem starts appearing? That information could help reporting the problem to ChromeDrivers tracker.

@ianlg
Copy link

ianlg commented Nov 20, 2017

Hi, I also experienced the problem using firefox & edge

@pekkaklarck
Copy link
Member

Thanks for the commend @ianlg! It seems this isn't only an issue with Chrome(Driver) then. Has anyone encountered this when not using Selenium at all? Does it only occur on Windows? Finally, please test does the workaround in my comment above help!

@flywojt
Copy link
Author

flywojt commented Nov 20, 2017

This bug occurs for every browser I used (chrome, ff and edge). On Mac and iOS my tests works fine so it looks like that this bug is connected with windows.

@pekkaklarck
Copy link
Member

pekkaklarck commented Nov 20, 2017

Thanks for update @flywojt! Have you encountered the problem when not using Selenium? Can you test updating your Robot installation with the workaround I posted?

@flywojt
Copy link
Author

flywojt commented Nov 20, 2017

I haven't tried run tests without selenium. I will try this workaround and give you feedback.

@Zac4
Copy link

Zac4 commented Nov 24, 2017

@pekkaklarck The suggested solution doesn't work. File "C:\Python27\lib\site-packages\robot\output\console\highlighting.py", line 52, in write
self.stream.seek(0, 2) you get the below error: IOError: [Errno 22] Invalid argument. However, if changed the argument to self.stream.seek(0, 0), the tests run fine but the original issue still hasn't gone away.

Has anyone found a working solution to this annoying issue?

@pekkaklarck
Copy link
Member

Can you show the full traceback? Have you redirected stdout to a file? Are you running tests locally or on CI?

@Zac4
Copy link

Zac4 commented Nov 24, 2017

@pekkaklarck The tests are running locally. Please see full traceback below:
[ Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\Python27\lib\runpy.py", line 72, in _run_code exec code in run_globals File "C:\Python27\lib\site-packages\robot\run.py", line 550, in <module> run_cli(sys.argv[1:]) File "C:\Python27\lib\site-packages\robot\run.py", line 489, in run_cli return RobotFramework().execute_cli(arguments, exit=exit) File "C:\Python27\lib\site-packages\robot\utils\application.py", line 46, in execute_cli rc = self._execute(arguments, options) File "C:\Python27\lib\site-packages\robot\utils\application.py", line 92, in _execute details, rc=FRAMEWORK_ERROR) File "C:\Python27\lib\site-packages\robot\utils\application.py", line 106, in _report_error self._logger.error(message) File "C:\Python27\lib\site-packages\robot\output\loggerhelper.py", line 60, in error self.write(msg, 'ERROR') File "C:\Python27\lib\site-packages\robot\output\loggerhelper.py", line 63, in write self.message(Message(message, level, html)) File "C:\Python27\lib\site-packages\robot\output\logger.py", line 141, in message logger.message(msg) File "C:\Python27\lib\site-packages\robot\output\console\verbose.py", line 66, in message self._writer.error(msg.message, msg.level, clear=self._running_test) File "C:\Python27\lib\site-packages\robot\output\console\verbose.py", line 143, in error self._stderr.error(message, level) File "C:\Python27\lib\site-packages\robot\output\console\highlighting.py", line 73, in error self.write('[ ', flush=False) File "C:\Python27\lib\site-packages\robot\output\console\highlighting.py", line 52, in write self.stream.seek(0, 2) IOError: [Errno 22] Invalid argument

@Zac4
Copy link

Zac4 commented Nov 24, 2017

or am i doing something wrong here?
image
Thank you in advance.

@pekkaklarck
Copy link
Member

In the above snippet you use seek(0, 0) but traceback shows correct seek(0, 2). Hope you can try debugging more.

@ianlg
Copy link

ianlg commented Nov 27, 2017

Hi @pekkaklarck & @Zac4 hope this gets fixed soon. Appreciate your help.

@pekkaklarck
Copy link
Member

pekkaklarck commented Nov 27, 2017

I cannot reproduce this problem and thus cannot do much to fix it. Getting it fixed very highly depends on users encountering debugging it themselves. I have asked has anyone encountered this without using Selenium but nobody has replied anything. I posted a possible workaround by adding seek(0, 2), but only @Zac4 has reportedly tested it. Although the workaround didn't work with @Zac4, it would be good to hear experiences from others.

If you don't know how to apply the workaround, here are instructions with some more additional debug logging enabled:

  1. Find file robot/output/console/highlighting.py under your Robot Framework installation. You should find it under C:\Python27\Lib\site-packages or similar.

  2. Change the write method to contain this implementation:

    def write(self, text, flush=True):
      with open('debug.output', 'a') as f:
          f.write(str(self.stream) + '\n')
      self.stream.seek(0, 2)
      self.stream.write(console_encode(text, stream=self.stream))
      if flush:
          self.flush()
  3. Report does the workaround work.

  4. Tell what's written to the generated debug.output file.

@pekkaklarck
Copy link
Member

Some more questions to the users encountering this issue based on the new information in the vscode issue linked above:

  1. Which terminal do you use? The old command prompt, PowerShell, vscode, Git Bash, Cygwin, or something else?

  2. Does the problem go away if you disable console colors by using --consolecolors off when starting test execution?

@ianlg
Copy link

ianlg commented Nov 27, 2017

Hi,

I've done what you said:

def _get_highlighter(self, stream, colors):
    options = {'AUTO': Highlighter if isatty(stream) else NoHighlighting,
               'ON': Highlighter,
               'OFF': NoHighlighting,
               'ANSI': AnsiHighlighter}
    try:
        highlighter = options[colors.upper()]
    except KeyError:
        raise DataError("Invalid console color value '%s'. Available "
                        "'AUTO', 'ON', 'OFF' and 'ANSI'." % colors)
    return highlighter(stream)

def write(self, text, flush=True):
    with open('debug.output', 'a') as f:
        f.write(str(self.stream) + '\n')
    self.stream.seek(0, 2)
    self.stream.write(console_encode(text, stream=self.stream))
    if flush:
        self.flush()

def flush(self):
    self.stream.flush()

def highlight(self, text, status=None, flush=True):
    if self._must_flush_before_and_after_highlighting():
        self.flush()
        flush = True
    with self._highlighting(status or text):
        self.write(text, flush)

but it gave the the error straight away when I ran the test. Using pycharm to run RF tests.

@pekkaklarck
Copy link
Member

Which error? What was written to the 'debug.output' file?

@ianlg
Copy link

ianlg commented Nov 27, 2017

HI,

Here is the error in pycharm

Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "c:\python27\lib\site-packages\robot\run.py", line 550, in
run_cli(sys.argv[1:])
File "c:\python27\lib\site-packages\robot\run.py", line 489, in run_cli
return RobotFramework().execute_cli(arguments, exit=exit)
File "c:\python27\lib\site-packages\robot\utils\application.py", line 46, in execute_cli
rc = self._execute(arguments, options)
File "c:\python27\lib\site-packages\robot\utils\application.py", line 92, in _execute
details, rc=FRAMEWORK_ERROR)
File "c:\python27\lib\site-packages\robot\utils\application.py", line 106, in _report_error
self._logger.error(message)
File "c:\python27\lib\site-packages\robot\output\loggerhelper.py", line 60, in error
self.write(msg, 'ERROR')
File "c:\python27\lib\site-packages\robot\output\loggerhelper.py", line 63, in write
self.message(Message(message, level, html))
File "c:\python27\lib\site-packages\robot\output\logger.py", line 141, in message
logger.message(msg)
File "c:\python27\lib\site-packages\robot\output\console\verbose.py", line 66, in message
self._writer.error(msg.message, msg.level, clear=self._running_test)
File "c:\python27\lib\site-packages\robot\output\console\verbose.py", line 143, in error
self._stderr.error(message, level)
File "c:\python27\lib\site-packages\robot\output\console\highlighting.py", line 75, in error
self.write('[ ', flush=False)
File "c:\python27\lib\site-packages\robot\output\console\highlighting.py", line 53, in write
self.stream.seek(0, 2)
IOError: [Errno 22] Invalid argument

Which directory can I find debug.output file?

@Zac4
Copy link

Zac4 commented Nov 27, 2017

@ianlg the debug.output file should be automatically created within your IDE. The file gets created immediately you execute the command.
image

@ianlg
Copy link

ianlg commented Nov 27, 2017

Hi,

Thanks for the info.

Here is the text on the debug.output file

<open file '<stdout>', mode 'w' at 0x0478D078>
<open file '<stderr>', mode 'w' at 0x0478D0D0>
<open file '<stdout>', mode 'w' at 0x046CD078>
<open file '<stderr>', mode 'w' at 0x046CD0D0>
<open file '<stdout>', mode 'w' at 0x04C3D078>
<open file '<stderr>', mode 'w' at 0x04C3D0D0>
...

@Zac4
Copy link

Zac4 commented Nov 27, 2017

@ianlg try this, and let us know if it fixes it for you. Try number one first, then if doesn't work, try number two:

  1. self.stream.seek(0, 0) if fails try no 2
  2. self.stream.seek(0)

@ianlg
Copy link

ianlg commented Nov 27, 2017

HI @Zac4 I tried both and they work fine, I didn't see any errors apart from the weird line of text that I mentioned above.

@pekkaklarck
Copy link
Member

pekkaklarck commented Nov 28, 2017

Some notes related to questions and comments above:

  1. The debug.output file is created to the directory where tests are executed from. Thanks @ianlg for posting its content. You can remove the related part from the code now.

  2. @Zac4 @ianlg: Did self.stream.seek(0) fix the problem for you? Very interesting. That one moves the current position into the beginning of the file when seek(0, 2) moves it at the end. Moving to the beginning likely means that produced console output is messed up. I also noticed that when using stdout or stderr, seek only works if output is redirected to a file. This means that seek alone isn't a suitable general workaround.

  3. Same/similar Errno 0 problem reported as Python throws IOError in some scripts in Windows Integrated Terminal microsoft/vscode#36630 seems to only occur for users who have Windows 10 Fall Creators Update installed. Is that the same with Robot Framework users encountering the issue? It could be that the problem is caused by changes to Windows itself.

  4. I have earlier asked users encountering this issue to the following questions. If you want to help this issue getting fixed, please answer!

    • Has anyone encountered this when not using Selenium at all?

    • Which terminal do you use? The old command prompt, PowerShell, vscode, Git Bash, Cygwin, or something else?

    • Does the problem go away if you disable console colors by using --consolecolors off when starting test execution?

@ianlg
Copy link

ianlg commented Nov 28, 2017

Hi,

self.stream.seek(0) & self.stream.seek(0, 0) both worked for me though on the test dialogue the extra lines of text are still there.

capture

I use pycharm IDE
I always use selenium2library for my tests
I usually use the old command prompt
I just use default colours.

I reckon it has something to do with win10 update.

Hope this helps.

@Zac4
Copy link

Zac4 commented Nov 28, 2017

@pekkaklarck self.stream.seek(0) seems to have fixed the issue. Although it's not a pretty workaround

Also, @ianlg i am not sure if @pekkaklarck will find a solution to that extra DevTools that keeps using random port on each test case at the time of execution. but i know for definite that is annoyingly caused by recent Windows 10 updates.

@pekkaklarck
Copy link
Member

That DevTools thing is unlikely to have anything to do with this issue. It's probably a message logged by the Selenium browser driver you use.

Could someone reliably reproducing this test does the problem occur also without using Selenium? Also, could someone test does --consolecolors off fix the problem? Especially the latter would be really important information as it would both provide a simple workaround (no changes to code) and provide info related to where the actual problem is. Apparently handling console colors have changed in latest Windows versions.

@miniksa
Copy link

miniksa commented Nov 28, 2017

As someone who works on the console in Windows, we're not actually aware of anything changing in regards to how colors are handled by external applications interfacing with the console subsystem. If you can help us identify which API call isn't working as it used to, we can investigate and work on a fix. Compatibility is very important to us. We're just having a hard time navigating the many levels of abstraction that are present in these scenarios to find the actual Win32 API call at the bottom that is acting differently.

@ianlg
Copy link

ianlg commented Dec 6, 2017

I ran another test run this time self.stream.seek(0) failed. Now trying self.stream.seek(0, 0)

@ianlg
Copy link

ianlg commented Dec 6, 2017

self.stream.seek(0, 0) resulted in a failure as well =(

@LexiPham
Copy link

I can't run my tests anymore because this error happened frequently. Any fixing for this, anything news

@LexiPham
Copy link

Which terminal do you use? The old command prompt, PowerShell, vscode, Git Bash, Cygwin, or something else? --> I'm using Pycharm

Does the problem go away if you disable console colors by using --consolecolors off when starting test execution? --> no

@LexiPham
Copy link

Hi,

I did this:

Find file robot/output/console/highlighting.py under your Robot Framework installation. You should find it under C:\Python27\Lib\site-packages or similar.

Change the write method to contain this implementation:

def write(self, text, flush=True):
with open('debug.output', 'a') as f:
f.write(str(self.stream) + '\n')
self.stream.seek(0, 2)
self.stream.write(console_encode(text, stream=self.stream))
if flush:
self.flush()
Report does the workaround work.

Tell what's written to the generated debug.output file.

[1209/215700.260:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[1209/215700.359:ERROR:exception_snapshot_win.cc(87)] thread ID 7836 not found in process
[1209/215700.359:WARNING:crash_report_exception_handler.cc(62)] ProcessSnapshotWin::Initialize failed

In the Pycharm console:

Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "c:\python27\lib\site-packages\robot\run.py", line 550, in
run_cli(sys.argv[1:])
File "c:\python27\lib\site-packages\robot\run.py", line 489, in run_cli
return RobotFramework().execute_cli(arguments, exit=exit)
File "c:\python27\lib\site-packages\robot\utils\application.py", line 46, in execute_cli
rc = self._execute(arguments, options)
File "c:\python27\lib\site-packages\robot\utils\application.py", line 92, in _execute
details, rc=FRAMEWORK_ERROR)
File "c:\python27\lib\site-packages\robot\utils\application.py", line 106, in _report_error
self._logger.error(message)
File "c:\python27\lib\site-packages\robot\output\loggerhelper.py", line 60, in error
self.write(msg, 'ERROR')
File "c:\python27\lib\site-packages\robot\output\loggerhelper.py", line 63, in write
self.message(Message(message, level, html))
File "c:\python27\lib\site-packages\robot\output\logger.py", line 141, in message
logger.message(msg)
File "c:\python27\lib\site-packages\robot\output\console\verbose.py", line 66, in message
self._writer.error(msg.message, msg.level, clear=self._running_test)
File "c:\python27\lib\site-packages\robot\output\console\verbose.py", line 143, in error
self._stderr.error(message, level)
File "c:\python27\lib\site-packages\robot\output\console\highlighting.py", line 75, in error
self.write('[ ', flush=False)
AttributeError: 'HighlightingStream' object has no attribute 'write'

@pekkaklarck
Copy link
Member

This problem is most likely caused by the same change to Windows console that was behind microsoft/vscode#36630. The root cause to that issue is fixed, and apparently it should be in Windows Insider builds early next year. I don't know when normal users will get it, and obviously there's even a change that our bug is different.

It seems that at least @LexiPham and @ianlg have encountered this issue when using PyCharm. Could you try running tests using the normal Windows console instead?

@pekkaklarck
Copy link
Member

pekkaklarck commented Dec 20, 2017

I finally saw this problem myself when organizing a training in a classroom with Windows 10 machines. In my tests the problem only occurred when using PyCharm terminal (probably would have also occurred using VSCode) and not when using the standard Windows command prompt. Also on PyCharm it didn't occur always but annoyingly frequently (about every fourth time). Is this what others have noticed too?

I was also able to create a workaround for the problem and committed it in 828c676. It would be great if users encountering this error could test the workaround. The easiest way to get it is installing the latest code directly using pip:

pip install --upgrade https://github.com/robotframework/robotframework/zipball/master

@LexiPham
Copy link

Hi @pekkaklarck ,

It works for me, don't see the error anymore.

It has some weird lines that I haven't seen while running my tests before, but it didn't affect the test results so far.

[10788:15320:1220/183512.412:ERROR:process_metrics.cc(105)] NOT IMPLEMENTED
[10788:15320:1220/183512.412:ERROR:process_metrics.cc(105)] NOT IMPLEMENTED
[10788:15320:1220/183512.412:ERROR:process_metrics.cc(105)] NOT IMPLEMENTED

Thank you,

@pekkaklarck
Copy link
Member

Great that the workaround works!

The weird lines you get on the console are most likely caused by the Selenium driver or browser you use. I've seen at least ChromeDriver/Chrome combo emitting such noise on Windows sometimes.

@pekkaklarck pekkaklarck self-assigned this Dec 20, 2017
@pekkaklarck pekkaklarck added this to the 3.0.3 milestone Dec 20, 2017
@pekkaklarck
Copy link
Member

I guess we can consider this issue resolved. Because the problem doesn't occur when using the normal command prompt, I don't consider this important enough to warrant an immediate bug fix release. If you need to get the fix ASAP, see my comment a bit above how to install the latest code using pip.

@shi-kk
Copy link

shi-kk commented Feb 12, 2018

Hi! I have run into this problem this week.

I'm using windows 10
Running test in Pycharm, using behave and there is NO selenium involved (service tests)
My tests run OK in Windows console and throw the "IOError Errno 0" in Pycharm console

@pekkaklarck
Copy link
Member

@shi-kk the bug itself is in the latest Windows versions. It's apparently already fixed but it takes some time before the fix is rolled out. For more details see microsoft/vscode#36630.

For Robot Framework I've implemented a workaround that avoids the problem in commit 828c676. Something similar could be done with Behave as well.

@jbub
Copy link

jbub commented Feb 26, 2018

So we have tried running with the commit 828c676 and seems like its not helping on Windows 7 Enterprise, here is the traceback:

[ ERROR ] Unexpected error: IOError: [Errno 22] Invalid argument
Traceback (most recent call last):
  File "c:\mylocation\src\robotframework\src\robot\utils\application.py", line 83, in _execute
    rc = self.main(arguments, **options)
  File "c:\mylocation\src\robotframework\src\robot\run.py", line 445, in main
    result = suite.run(settings)
  File "c:\mylocation\src\robotframework\src\robot\running\model.py", line 248, in run
    self.visit(runner)
  File "c:\mylocation\src\robotframework\src\robot\model\testsuite.py", line 161, in visit
    visitor.visit_suite(self)
  File "c:\mylocation\src\robotframework\src\robot\model\visitor.py", line 86, in visit_suite
    suite.suites.visit(self)
  File "c:\mylocation\src\robotframework\src\robot\model\itemlist.py", line 76, in visit
    item.visit(visitor)
  File "c:\mylocation\src\robotframework\src\robot\model\testsuite.py", line 161, in visit
    visitor.visit_suite(self)
  File "c:\mylocation\src\robotframework\src\robot\model\visitor.py", line 86, in visit_suite
    suite.suites.visit(self)
  File "c:\mylocation\src\robotframework\src\robot\model\itemlist.py", line 76, in visit
    item.visit(visitor)
  File "c:\mylocation\src\robotframework\src\robot\model\testsuite.py", line 161, in visit
    visitor.visit_suite(self)
  File "c:\mylocation\src\robotframework\src\robot\model\visitor.py", line 86, in visit_suite
    suite.suites.visit(self)
  File "c:\mylocation\src\robotframework\src\robot\model\itemlist.py", line 76, in visit
    item.visit(visitor)
  File "c:\mylocation\src\robotframework\src\robot\model\testsuite.py", line 161, in visit
    visitor.visit_suite(self)
  File "c:\mylocation\src\robotframework\src\robot\model\visitor.py", line 87, in visit_suite
    suite.tests.visit(self)
  File "c:\mylocation\src\robotframework\src\robot\model\itemlist.py", line 76, in visit
    item.visit(visitor)
  File "c:\mylocation\src\robotframework\src\robot\model\testcase.py", line 74, in visit
    visitor.visit_test(self)
  File "c:\mylocation\src\robotframework\src\robot\running\runner.py", line 159, in visit_test
    self._output.end_test(ModelCombiner(test, result))
  File "c:\mylocation\src\robotframework\src\robot\output\output.py", line 59, in end_test
    LOGGER.end_test(test)
  File "c:\mylocation\src\robotframework\src\robot\output\logger.py", line 183, in end_test
    logger.end_test(test)
  File "c:\mylocation\src\robotframework\src\robot\output\console\verbose.py", line 51, in end_test
    self._writer.status(test.status, clear=True)
  File "c:\mylocation\src\robotframework\src\robot\output\console\verbose.py", line 117, in status
    self._stdout.write(' |\n')
  File "c:\mylocation\src\robotframework\src\robot\output\console\highlighting.py", line 53, in write
    self.flush()
  File "c:\mylocation\src\robotframework\src\robot\output\console\highlighting.py", line 66, in flush
    self.stream.flush()

@pekkaklarck
Copy link
Member

@jbub You are encountering some other problem. This issue only occurs with latest Windows 10 versions.

@magork
Copy link

magork commented Apr 26, 2018

Hy @pekkaklarck,
I had the same problem on a virtual machine which runs win 10 but with
pip install --upgrade https://github.com/robotframework/robotframework/zipball/master
resolved for me also. So I can say also that the workaround works!

@pekkaklarck
Copy link
Member

Great that the fix works! It was included in RF 3.0.3, so nowadays the normal pip install --upgrade robotframework is enough.

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

No branches or pull requests

11 participants