Skip to content

Instantly share code, notes, and snippets.

@Kwpolska

Kwpolska/- Secret

Created Jun 16, 2016
Embed
What would you like to do?
[kwpolska@kw-cassandra /tmp]% snap install --devmode nikola /tmp 0
79.33 MB / 79.41 MB [=============================================================================================================================================================================================] 99.90 % 846.44 KB/s 1m35s
Name Version Rev Developer Notes
nikola 7.7.9 4 ralsina devmode
[kwpolska@kw-cassandra /tmp]% /snap/bin/nikola init -qd n /tmp 0
Traceback (most recent call last):
File "/snap/nikola/current/usr/lib/python3/dist-packages/doit/doit_cmd.py", line 168, in run
return command.parse_execute(args)
File "/snap/nikola/current/usr/lib/python3/dist-packages/doit/cmd_base.py", line 122, in parse_execute
return self.execute(params, args)
File "/snap/nikola/current/usr/lib/python3/dist-packages/nikola/plugin_categories.py", line 124, in execute
return self._execute(options, args)
File "/snap/nikola/current/usr/lib/python3/dist-packages/nikola/plugins/command/init.py", line 512, in _execute
self.copy_sample_site(target)
File "/snap/nikola/current/usr/lib/python3/dist-packages/nikola/plugins/command/init.py", line 267, in copy_sample_site
shutil.copytree(src, target)
File "/snap/nikola/current/usr/lib/python3.5/shutil.py", line 309, in copytree
os.makedirs(dst)
File "/snap/nikola/current/usr/lib/python3.5/os.py", line 241, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: 'n'
[kwpolska@kw-cassandra /tmp]% df -h /tmp 3
Filesystem Size Used Avail Use% Mounted on
dev 1.9G 0 1.9G 0% /dev
run 2.0G 1.2M 2.0G 1% /run
/dev/sda3 25G 23G 715M 97% /
tmpfs 2.0G 287M 1.7G 15% /dev/shm
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 2.0G 695M 1.3G 36% /tmp
/dev/sda5 102G 54G 43G 56% /home
/dev/sda6 55G 44G 12G 79% /media/shared
/dev/sda1 275G 232G 44G 85% /media/windows
tmpfs 396M 24K 396M 1% /run/user/1000
/dev/sdb1 466G 132G 335G 29% /run/media/kwpolska/KW500
/dev/loop0 65M 65M 0 100% /snap/ubuntu-core/122
/dev/loop1 128K 128K 0 100% /snap/hello/20
/dev/loop2 80M 80M 0 100% /snap/nikola/4
[kwpolska@kw-cassandra /tmp]% cd ~ /tmp 0
[kwpolska@kw-cassandra ~]% /snap/bin/nikola init -qd n ~ 0
Traceback (most recent call last):
File "/snap/nikola/current/usr/lib/python3/dist-packages/doit/doit_cmd.py", line 168, in run
return command.parse_execute(args)
File "/snap/nikola/current/usr/lib/python3/dist-packages/doit/cmd_base.py", line 122, in parse_execute
return self.execute(params, args)
File "/snap/nikola/current/usr/lib/python3/dist-packages/nikola/plugin_categories.py", line 124, in execute
return self._execute(options, args)
File "/snap/nikola/current/usr/lib/python3/dist-packages/nikola/plugins/command/init.py", line 512, in _execute
self.copy_sample_site(target)
File "/snap/nikola/current/usr/lib/python3/dist-packages/nikola/plugins/command/init.py", line 267, in copy_sample_site
shutil.copytree(src, target)
File "/snap/nikola/current/usr/lib/python3.5/shutil.py", line 309, in copytree
os.makedirs(dst)
File "/snap/nikola/current/usr/lib/python3.5/os.py", line 241, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: 'n'
[kwpolska@kw-cassandra ~]% /snap/bin/nikola init -qd ~ 3
[kwpolska@kw-cassandra ~]% /snap/bin/nikola init -qd ~/snap/nikola/4/foobar ~ 3
[2016-06-16T18:09:44Z] INFO: init: A new site with example data has been created at /home/kwpolska/snap/nikola/4/foobar.
[2016-06-16T18:09:44Z] INFO: init: See README.txt in that folder for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment