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

Markdown causing TypeError: expected string or buffer #379

Closed
chrisspen opened this issue Jul 1, 2018 · 1 comment
Closed

Markdown causing TypeError: expected string or buffer #379

chrisspen opened this issue Jul 1, 2018 · 1 comment

Comments

@chrisspen
Copy link

chrisspen commented Jul 1, 2018

After adding a long_description containing Markdown (per the method outlined the docs) to my package's setup.py, and twine is now unable to upload my package, and returns the error:

$ twine upload dist/criticalpath-0.1.4.tar.gz
Uploading distributions to https://upload.pypi.org/legacy/
TypeError: expected string or buffer

This sounds similar to this issue, but all the suggestions are to update package versions, which I've done to no effect.

Since the only change I made was to add a long_description, I presume that's the cause of the error, but I can find no fault in my string usage, and there's no traceback provided.

My versions:

$ twine --version
twine version 1.9.1 (pkginfo: 1.4.1, requests: 2.18.2, setuptools: 36.2.5,
requests-toolbelt: 0.8.0, tqdm: 4.15.0)
$ python --version
Python 3.5.2
@chrisspen
Copy link
Author

I spoke too soon. Double checking my twine versions, I realize my global twine install (1.9.1) was overriding my local virtualenv twine install (1.11.0). Uninstalling the 1.9.1 forced it to use the more recent 1.11.0 version, which does not produce the error.

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

No branches or pull requests

1 participant