Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Different errors when trying to run stbt_docker on Windows with python 3.6 #19

Open
jcwork opened this issue Jan 17, 2020 · 1 comment

Comments

@jcwork
Copy link

jcwork commented Jan 17, 2020

Hi,

I read in the installation notes about:

stbt-docker is built with portability in mind so it should run on Mac OS and Windows. The only dependencies are Python and Docker. stbt-docker is self-contained and relocatable so it can be deployed as a single file with no dependency on anything else in stbt.

So I was trying to run stbt_docker on Windows, and as well as the issues described here - #18 , I kept getting a few more:

File "./stbt-docker", line 252, in build_docker_image
md5.update(stbt_version)
TypeError: Unicode-objects must be encoded before hashing
...
File "./stbt-docker", line 253, in build_docker_image
md5.update(setup)
TypeError: Unicode-objects must be encoded before hashing
...
File "./stbt-docker", line 214, in dict_to_tarball
ti.uid = os.getuid()
AttributeError: module 'os' has no attribute 'getuid'

I read that 'os.getuid()' is just available in Unix, so not sure if that can be fix for Windows in a different way?

@drothlis
Copy link
Contributor

TypeError: Unicode-objects must be encoded before hashing

stbt-docker hasn't been ported to Python 3 yet. You'll need to use Python 2.7.

AttributeError: module 'os' has no attribute 'getuid'

I read that 'os.getuid()' is just available in Unix, so not sure if that can be fix for Windows in a different way?

There's a fix for this on #12. It's 2 years old so it might need rebasing.

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

No branches or pull requests

2 participants