Skip to content

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

@CreativeCode

Description

@CreativeCode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions