Comment by David Z on Unable to use pipenv to install: ImportError: cannot...
This just runs a different version of pipenv (and/or uses a different version of Python). It seems that whatever version of pipenv you get when running python3 -m pipenv has a fix for this error,...
View ArticleComment by David Z on Finding process count in Linux via command line
@krzemian Sorry I didn't see this at the time! In case it's still relevant: the difference is probably coming from the wc process, which is listed in the output of ps when you have them running in...
View ArticleAnswer by David Z for mod_python publisher and pretty URLs
You would have to have an object bar.a1.a2.a3.an defined within your foo.py module. Basically, the publisher handler replaces the slashes in the URL with dots, and tries to find some Python object with...
View ArticleAnswer by David Z for How can I put an actual backslash in a string literal...
To answer your question directly, put r in front of the string.final= path + r'\xulrunner.exe '+ path + r'\application.ini'More on Python's site hereBoth string and bytes literals may optionally be...
View ArticleComment by David Z on jq pass argument as a key to new field
@somenxavier In general I would suggest asking followup questions as their own separate posts, not as comments. But since this one is quick, I'll tell you that it's because $md is part of a string, and...
View ArticleComment by David Z on Using the open() system call
Thanks! I must have missed these comments, my bad. (although it's a little surprising it took this long for someone to fix a simple typo)
View ArticleComment by David Z on distutils: How to pass a user defined parameter to...
Since distutils was removed from Python 3.12, that link is dead, but the Python 3.11 version of the page is still up, and it also exists (for now) in the setuptools documentation. The sdist source code...
View ArticleAnswer by David Z for How to execute shell script from LaTeX?
I would do something like the following (partially motivated by what Roman suggested): make your LaTeX file be\documentclass{article}\begin{document}\input{scriptoutput.tex}\end{document}and generate...
View ArticleComment by David Z on How to grow a list to fit a given capacity in Python
Ah I must have made a mistake, I'll fix it.
View Article