Closed jquast closed 8 months ago
Minor suggestion. We should always aim to be on the latest versions when posible. So if nothing is blocking further upgrades to pypandoc, I would suggest uninstalling pypandoc and then installing the latest version
pip uninstall pypandoc
pip install -U pypandoc
@JessicaTegner I'm not sure you read this issue correctly :(
Installing the latest version of pypandoc prevents installation of this package, python-streamexpect and possibly several hundred other packages that may have been released to pypi that used long_description_markdown_filename
argument in setup.py https://github.com/search?q=long_description_markdown_filename+path%3A**%2Fsetup.py&type=code
By removing the API function "convert" in the 1.8 release https://github.com/JessicaTegner/pypandoc/pull/257 this setup.py option continues to depend on this missing function https://github.com/msabramo/setuptools-markdown/blob/34ed6276e0c8bcefcd967bd8db138546a270bdf4/setuptools_markdown.py#L43
Please downgrade PyPandoc if you wish to install python-streamexpect or any other package that has this error. Using the latest version of PyPandoc is precisely the problem, as the public API function "convert" was removed
Ohh sorry aount that. I read your original instructions as pypandoc >1.7. Please disregard my comment :)
@jquast Just FYI the Digi employee "that doesn't give a shit" reached out immediately after you opened this issue to see about getting access to the PyPI project so he could do a release. Asking for a release politely would have gotten you the same result, I'm sure. Please try to remember that there are actual people behind the software projects that you use, and thanks @mikewadsten for your professionalism.
I'm sorry for the harsh language, but somebody already politely requested this two years ago, and that didn't appear to work ... https://github.com/digidotcom/python-streamexpect/pull/6#issuecomment-1275968188
Let me be more clear: anyone who makes posts that violate the GitHub Community Guidelines is not welcome. There was no need to attack Digi employees or to resort to vulgarity in your request.
harsh language got Digi to finally take action, but I do apologize a second time.
I have taken an action item to find some time to get a new version of streamexpect
built and pushed to PyPI. @jquast Thank you for alerting us to this installation issue. (Not the first time a third party package change has caused install breakages in the universe, sure won't be the last).
I have created a new 0.3.0 release, and published that to PyPI.
Just leaving this here for anyone else, I know that @nastevens isn't employed by digidotcom anymore and the remaining digidotcom have not taken action for two years, so I hope this will help others.
Problem
Because the pypi release has not been cut for 8 years, this program may no longer be installed, with either of the two errors,
AttributeError: module 'pypandoc' has no attribute 'convert'
AttributeError: 'NoneType' object has no attribute 'f_code'
Solutions
pip install PyPandoc==1.7
pip install git+https://github.com/digidotcom/python-streamexpect.git@master
Why
@JessicaTegner writes in https://github.com/man-group/pytest-plugins/issues/87#issuecomment-1123830409:
python-streamexpect program doesn't use PyPandoc directly, but through setuptools. PyPandoc made an incompatible API change. This was fixed in https://github.com/digidotcom/python-streamexpect/pull/6 by @almetge by changing
long_description_markdown_filename='README.md'
tolong_description_content_type='text/markdown'
, but this software has not been re-released to pypi.Details
Using the latest version of Python, pip, and setuptools:
Installing streamexpect results in error:
If you install the 'wheel' package, it instead results in error: