-
Notifications
You must be signed in to change notification settings - Fork 148
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
Git commit fails on Windows 7/8.1 with TypeError: environment can only contain strings #67
Comments
Fixed (for details see #64). |
Seems like #64 wasn't actually merged and this also happens on Windows 10. Are there plans to implement Windows support soon? |
In my case on Windows 10 in Py 3.5 making additional env setting @classmethod
def commit(cls, message):
f = NamedTemporaryFile('wb', delete=False)
f.write(message.encode('utf-8'))
f.close()
subprocess.check_output(cls._COMMIT_COMMAND + [f.name], env=dict(
list(os.environ.items()) + [('HGENCODING', 'utf-8')]
))
os.unlink(f.name) |
I am still having issues when using Anaconda and cygwin with latest bumpversion. |
This project is stalled. Try to use bump2version instead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use bumpversion on Windows, but I get an error when I try to autocommit with git. I believe the problem is in BaseVCS.commit with the following code:
Dumping env from within subprocess.py gives the following output:
Note that HGENCODING seems to have been added to the dict as unicode. If I force it to ascii as follows then it works as expected:
I will submit a pull request with this fix.
The stack trace:
The text was updated successfully, but these errors were encountered: