g2p / blocks

Enable bcache or LVM on existing block devices
GNU General Public License v3.0
376 stars 43 forks source link

Add support to Python 3.4 #14

Open maxxer opened 10 years ago

maxxer commented 10 years ago

Ubuntu 14.04 (out in few weeks) introduced Python 3.4. Please add support for this newer version

g2p commented 10 years ago

I did a quick and dirty Travis run and nothing broke, as expected since Python 3.4 has very few incompatible changes. Ubuntu 14.04 has a few changes beyond that (udev always requires testing, and someone posted about a supermin change).

maxxer commented 10 years ago

do you have any plan for supporting ubuntu 14.04? thanks

mf-lit commented 9 years ago

I'd also like to request Python 3.4 support. Thanks.

kislyuk commented 9 years ago

+1

ozmad commented 9 years ago

Just a simple workaround if you need it: install python3.3 taken from: http://linuxg.net/how-to-install-python-3-3-on-ubuntu-13-04-12-10-and-12-04/ sudo apt-get install python-software-properties sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python3.3

jelabarre59 commented 8 years ago

Also in favor of python 3.4 support. Linux Mint 17.3 has Python 3.4, who knows when 3.5 may come out as well.

alexwijoyo commented 6 years ago

Hi, I try to run blocks on Ubuntu 16.04. I've followed @ozmad instruction to install python3.3. But it seems the pip-3.3 still didn't work. After I ran: type pip-3.3 || alias pip-3.3='python3.3 -m pip.runner' pip-3.3 --version /usr/bin/python3.3: No module named pip.runner But I have a working pip3: pip3 --version pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5) Then I tried the blocks installation using pip3: ` pip3 install --user -r <(wget -O- https://raw.github.com/g2p/blocks/master/requirements.txt) --2018-06-20 12:11:11-- https://raw.github.com/g2p/blocks/master/requirements.txt Resolving raw.github.com (raw.github.com)... 151.101.8.133 Connecting to raw.github.com (raw.github.com)|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://raw.githubusercontent.com/g2p/blocks/master/requirements.txt [following] --2018-06-20 12:11:11-- https://raw.githubusercontent.com/g2p/blocks/master/requirements.txt Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.8.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 211 [text/plain] Saving to: ‘STDOUT’

2018-06-20 12:11:12 (65.5 MB/s) - written to stdout [211/211]

Obtaining blocks from git+https://github.com/g2p/blocks.git@master#egg=blocks (from -r /dev/fd/63 (line 1)) Updating ./src/blocks clone (to master) Obtaining python-augeas from git+https://github.com/g2p/python-augeas.git@v0.4.2a1#egg=python-augeas (from -r /dev/fd/63 (line 2)) Updating ./src/python-augeas clone (to v0.4.2a1) Collecting pyparted from https://github.com/g2p/pyparted/archive/pyparted-3.10a1.tar.gz#egg=pyparted (from -r /dev/fd/63 (line 3)) Collecting maintboot (from blocks->-r /dev/fd/63 (line 1)) Installing collected packages: maintboot, python-augeas, pyparted, blocks Running setup.py develop for python-augeas Running setup.py develop for blocks Successfully installed blocks-0.1.4 maintboot-0.1.0 pyparted-3.10.7 python-augeas-0.4.2a1 You are using pip version 8.1.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. I have blocks and maintboot executables below: ls .local/bin -l total 8 -rwxrwxr-x 1 it it 276 Jun 20 12:11 blocks -rwxrwxr-x 1 it it 2813 Jun 20 12:11 maintboot I copied both executables to /usr/local/bin and execute blocks: sudo blocks to-bcache --maintboot /dev/ubuntu-vg/root --join b2967e2f-67a2-45d4-ba70-85ec341db39c supermin command not found, please install supermin (preferred) or febootstrap (obsolete) Traceback (most recent call last): File "/usr/local/bin/blocks", line 9, in load_entry_point('blocks', 'console_scripts', 'blocks')() File "/home/it/src/blocks/blocks/main.py", line 2012, in script_main sys.exit(main()) File "/home/it/src/blocks/blocks/main.py", line 1678, in main return args.action(args) File "/home/it/src/blocks/blocks/main.py", line 1758, in cmd_to_bcache device, 'to-bcache', debug=args.debug, join=args.join) File "/home/it/src/blocks/blocks/main.py", line 1780, in call_maintboot

bjmgeek commented 6 years ago

Python 3.6 is out now. I'm trying to get blocks to build on it.

modem7 commented 5 years ago

do we know if this works with Python 3.5/3.6?