Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

With Python 3, YOTTA_BUILD_VCS_xxx constants are bytes objects not str #838

Open
dpgeorge opened this issue Jul 13, 2018 · 0 comments
Open

Comments

@dpgeorge
Copy link

When installing and using yotta with Python 3, the YOTTA_BUILD_VCS_ID and YOTTA_BUILD_VCS_DESCRIPTION macros automatically defined in yotta_build_info.h come out as bytes objects and hence are of the form b'...'. They should probably be just plain str objects so the "b" and quotes are not there.

Is yotta intended to be used with Python 3? To fix, I guess it's simply a matter of decoding to UTF-8 the output of git commands executed in lib/vcs.py.

dalgr added a commit to dalgr/yotta that referenced this issue Jan 12, 2021
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

1 participant