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

Error when executing make: module 'os' has no attribute 'popen2' #14

Open
CreativeCode opened this issue Sep 4, 2022 · 0 comments
Open

Comments

@CreativeCode
Copy link

Dear developer,

This tool seems to be exactly what I am looking for. When trying to execute the makefile on Pop OS 22.04, I run into the following error.

module 'os' has no attribute 'popen2'

This happens when the tests are run. Here a bit context:


ln -sf ../pdfcompare.py pdfcompare
env PATH=.:$PATH sh ./helptest.sh 1.6.9 VER=1.6.9
version: 1.6.9
The version numbers match!
env PATH=.:$PATH sh ./python3.sh
testpy3

Ran 1 test.

OK
env PATH=.:$PATH refresh= sh ./restest.sh
testpdf
pygame 2.1.2 (SDL 2.0.20, Python 3.10.4)
Hello from the pygame community. https://www.pygame.org/contribute.html
pdftohtml -q -i -nodrm -nomerge -stdout -xml test2.pdf
pdftohtml -xml failed: pdftohtml -q -i -nodrm -nomerge -stdout -xml test2.pdf: module 'os' has no attribute 'popen2'
grep: newpdf.pdf: No such file or directory
ASSERT:Pdftest returned != 0 expected:</Type /Annot

I have searched for this a bit and found this related issue: secdev/scapy#2078 It seems os.popen2() has been dropped from Python. It seems a fix with subprocess.Popen() should be doable but I did not manage this myself.

Many thanks for looking into it.

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