Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Conversation

@sethmlarson
Copy link
Owner

So in Python 3 when running IGuestSession.execute() you receive '<memory [address]>' because the execute() function converts the memory view into a literal str rather than the proper bytes (same as str on Python 3). This fixes that behavior.

...  where stdout and stderr are of type `memoryview` and `str(memoryview)` turns to `'<memory 0x012345ABCDEF...>'`.
@sethmlarson sethmlarson changed the title Fix IGuestSession.execute() on Windows where stdout and stderr are of type MemoryView Fix IGuestSession.execute() on Python 3 where stdout and stderr are of type MemoryView May 4, 2017
@mjdorma mjdorma merged commit 2030906 into sethmlarson:master May 4, 2017
@mjdorma
Copy link
Collaborator

mjdorma commented May 4, 2017

Fantastic! I haven't made the complete move to py3 yet, when I added the original py3 support vboxapi was not yet available for py3. I'm super happy that you're giving it a workout!

@sethmlarson sethmlarson deleted the patch-4 branch May 4, 2017 14:12
@sethmlarson
Copy link
Owner Author

I'm definitely giving it a workout. It's the most important dependency in this project. All Python versions and all platforms. Will continue to report all of the bugs I find upstream. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants