Skip to content

Pipes module has been removed from python 3.13, resulting in ModuleNotFoundError. #20

Description

@cosmicelijah

When trying to run the grading script for heapmm lab specifically, I get a ModuleNotFoundError stating that there is no module named 'pipes'. Some googling told me that pipes was considered deprecated in python 3.0 and removed in python 3.13 (my python version is 3.13.1). The github issue post I was reading suggested replacing it with a module called shlex (Issue post: jupyter/nbclassic#308)

make[1]: Leaving directory '/home/cosmicelijah/csse332-labs-watsonet/xv6-riscv'
== Test rhmm, test basic case == Traceback (most recent call last):
  File "/home/cosmicelijah/csse332-labs-watsonet/xv6-riscv/./grade-lab-heapmm.py", line 83, in <module>
    run_tests()
    ~~~~~~~~~^^
  File "/home/cosmicelijah/csse332-labs-watsonet/xv6-riscv/gradelib.py", line 121, in run_tests
    test()
    ~~~~^^
  File "/home/cosmicelijah/csse332-labs-watsonet/xv6-riscv/gradelib.py", line 55, in run_test
    fn()
    ~~^^
  File "/home/cosmicelijah/csse332-labs-watsonet/xv6-riscv/./grade-lab-heapmm.py", line 10, in test_basic_case
    r.run_qemu(shell_script(['lab01basic']))
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cosmicelijah/csse332-labs-watsonet/xv6-riscv/gradelib.py", line 434, in run_qemu
    self.qemu = QEMU(target_base + "-gdb", *make_args)
                ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cosmicelijah/csse332-labs-watsonet/xv6-riscv/gradelib.py", line 294, in __init__
    show_command(("make",) + make_args)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cosmicelijah/csse332-labs-watsonet/xv6-riscv/gradelib.py", line 225, in show_command
    from pipes import quote
ModuleNotFoundError: No module named 'pipes'
make: *** [Makefile:192: grade] Error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions