Skip to content

Requires python2.7 breaks on python3 #1

@majorcrash

Description

@majorcrash

On Ubuntu 18.04

  1. Does not run as is on vanilla ubuntu 18.04. The default path for python is /usr/bin/python3
  2. Manually install python2.7 then the shebang needs to be altered to run:
    #!/usr/bin/python2.7
  3. If shebang is altered to /usr/bin/python3 the following error is produced:
    sudo ./pvshrink /dev/sdf
    Traceback (most recent call last):
    File "./pvshrink", line 55, in
    for seg in pvs.split("\n"):
    TypeError: a bytes-like object is required, not 'str'

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