Skip to content

No module named http.server #62

@foocp

Description

@foocp

Followed the instructions using Mac OS Monterey, which required installing Python 2.7 from scratch. OpenCV works fine now, which took most of the time. However, when I do pynt -l (or any pynt command) I get


Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pynt", line 11, in <module>
    load_entry_point('pynt==0.8.2', 'console_scripts', 'pynt')()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pynt/_pynt.py", line 298, in main
    build(sys.argv[1:])
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pynt/_pynt.py", line 48, in build
    module = imp.load_source(path.splitext(path.basename(args.file))[0], args.file)
  File "build.py", line 15, in <module>
    import http.server
ImportError: No module named http.server

Same if I try python build.py. Now if I understand this correctly, http.server may not work at all with Python 2.7. Is that right? Then what to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions