[02:24] popey: contacted every student who had claimed the 17.10 install and told them what's up so they don't get frustrated/waste time. [02:25] and on that note i'm going home! [05:30] hiiiiiiii [05:30] what i ahave to do it here [05:31] i can't understand can u please explian me [05:34] hi [05:34] oh hai [05:34] give the question [05:34] pls [05:34] parthpro: when you say "here," i assume you're referring to a specific task? [05:35] here [05:35] here as in irc? [05:37] if you have a question, now's the time to ask..... [05:37] according to google code in task u have to give me a question and i have answer it ...and my first task gets over, [05:37] please give a link to this task instance vivaan [05:37] pk [05:37] ok [05:38] https://bit.ly/ugcichat [05:38] is this fine? [05:39] vivaan: that's a link to the webchat, not to your task. [05:40] https://codein.withgoogle.com/tasks/5637753310019584/?sp-categories=1 [05:40] this? [05:40] yep [05:40] :) [05:40] so here's the steps: [05:40] 1. come here (you did this) [05:40] ok [05:41] 2. say hi to three specific individuals, who are your mentors (you said hi to someone, but not specifically them) [05:41] ok understood [05:41] 3. go to askubuntu and find an open question tagged snap and answer it with the correct solution [05:41] how to go to askbuntu [05:42] ?? [05:42] you click the link [05:42] Find an open question in askubuntu: https://askubuntu.com/questions/tagged/snap [05:42] that link [05:42] ok thats it?? [05:42] then find one you can answer [05:42] then provide the answer [05:42] and then i complete my first task? [05:42] you don't provide the answer here [05:43] you provide the answer on askubuntu.com [05:43] then you can provide a link to the question you answered and submit your task for approval [05:43] after writing the answer i complete my task [05:43] after writing the answer i complete my task [05:43] ??????? [05:44] after you provide the answer, you provide a link on code in and submit it. assuming the answer is correct and properly worded, your mentor will accept it [05:44] if your answer is incorrect, then more work will be requested [05:44] in other words, any answer is not acceptable [05:45] also, the task isn't considered complete until the mentor approves your submission [05:45] ok so if my anwer is right so i gt to the next round [05:45] after the mentor approves it, yes [05:46] there are how many rounds? sorry for asking so many questions im very urios [05:46] there's probably more tasks than you have the time/energy to do XD [05:46] the goal is to get as many as you can done [05:48] ok thanks u were very helpful!!! so now i go to the link u provided answer qestions [05:48] on your task instance [05:48] how to submit ur answer [05:48] ?? [05:48] have you already claimed the task? because if you have it should be obvious. [05:48] there's a place to leave comments [05:49] ok thank u :) [05:49] no problem [05:50] just a word of warning: it is a holiday in much of the english-speaking world, so there's not a lot of mentors around right now [05:50] if it takes a while to get a reply, just be patient. you can always find another task to start working on :) [07:02] Hello [07:02] Hola [08:02] > the goal is to get as many as you can done [08:02] quality > quantity… [08:47] hi [08:48] hi [11:57] Hello Mentors! I am Dolly Sharma studying in grade XI from India. So, I am here cause I find it interesting. I like to surf net in my free time [11:59] Well! Besides english, I do know German and will definitely try my best in doing the task:) [11:59] good luck Dolly [15:26] someone there [15:26] Yes? [15:27] no [15:27] but somewhere's here [15:27] hey wait i am sharing something [15:27] This doesn't look like you've gone through the tutorial, but just downloaded and run freeplane? [15:27] this popey messaged me in task [15:27] now let me tell you [15:28] wxl: Hi there! [15:28] hey @Accelerator :) [15:28] Shantanu: popey has been idle here for about 16 hours. why not just reply to the task? [15:28] i gone thorught tutorial [15:28] then in terminal message came to install it [15:28] btw i did day before yesterday [15:29] when he didnt reply then i come here [15:29] i think u guys remembered me? [15:29] well you know it is a holiday in much of the native english speaking world, right? [15:29] yeah [15:29] also i've been told patience is a virtue……… XD [15:29] yeah but bro 2 days i waited na [15:30] so find something else to work on while you wait [15:30] pls gop through tutorial [15:30] pls help wxl [15:30] i'm not the mentor of that task and can probably provide very little help on it. you need to speak to your mentors, Shantanu. [15:30] pls go through tutorial [15:31] Could you give us a screenshot? [15:31] but he was not replying [15:31] of which [15:31] then wait until he does [15:31] Shantanu: Of your work [15:31] and maybe a link to the task... [15:32] ok [15:33] wxl: It's this task [15:33] http://prntscr.com/hrezro [15:33] https://codein.withgoogle.com/dashboard/task-instances/5793626825162752/ [15:33] http://prntscr.com/hrezvv [15:33] http://prntscr.com/hrf00p [15:34] yeah i'm looking for Shantanu's instance of the task Accelerator [15:34] http://prntscr.com/hrf05s [15:34] i cannot tell you what a hoarde of info there is to dig through as a mentor [15:34] http://prntscr.com/hrf08w [15:34] wxl: Oh haha...i thought you did not have access..sorry [15:35] pls check and tell me my mistake so that i can do my task [15:36] ?? [15:36] ?? [15:36] wait [15:36] Shantanu: i have to tell you that being patient is going to go a looooooooong way in getting you help. NOT being patient is most likely going to have the opposite effect. [15:37] :( [15:37] yaar i waited too much [15:37] now what you want [15:37] well mine is like this.....different from yours Shantanu [15:37] https://prnt.sc/hrf16m [15:38] actually mine one not loaded full and i took screenshot [15:38] can u call popey here [15:38] the way *I* read this tutorial (i'm not the mentor, again), the final result is uploading a snap. so it should be easily found in the snap store. no? [15:39] no we dont have to upload [15:39] that looks like the last part of the tutorial to me............ [15:39] You should upload it Shantanu [15:39] To the "edge" channel [15:40] and indeed that's what `--release=edge` refers to in the tutorial [15:40] yes [15:40] Shantanu: You did not follow the complete tutorial...that's why you task was not approved [15:40] *your [15:41] oh pls tell [15:41] it means i dont have to install i have to upload?? [15:41] Shantanu: follow the last step. it's uploading. [15:41] am i right? [15:41] the section called "Upload your snap" [15:41] Shantanu: installing it is also recommended, to check if the snap is working [15:42] you should go through every step of the tutorial [15:42] ohk [15:42] especially concerning snapcraft tasks [15:42] each step is very important [15:43] The goal of this task is to test-drive the following linked tutorial. Ensure the tutorial covers everything required to complete it, and file bugs (if found) at the external link. You will require an Ubuntu 16.04 machine or VM in which to run this task. https://docs.snapcraft.io/build-snaps/java [15:43] it didnt specify upload [15:43] test-drive the tutorial means complete the tutorial [15:43] since the tutorial includes uploading, yes, it does [15:43] ohk [15:43] tnx [15:43] Um the last part of the tutorial said to upload to be able to share [15:44] tnx [15:45] see but in ruby snap tutorial [15:45] i only installed then also i got approoved [15:46] http://31.media.tumblr.com/3bc2dd2bd334ee8dab3eef42429d3eff/tumblr_mjlbe1BsFB1rheqhwo1_500.gif [15:46] http://prntscr.com/hrf4rk [15:46] and popey accepted it [15:46] Well i can't help you in that one but maybe the task now involves uploading the snap? [15:47] https://docs.snapcraft.io/build-snaps/ruby [15:47] is popeye reviewing rn ? [15:47] it involvles? [15:47] Shantanu: that includes uploading your snap, yes [15:47] wxl: that gif though 😂 [15:47] it involves uploading even -_- [15:47] Accelerator: XD [15:47] which task are you talking about shantanu ? [15:48] http://prntscr.com/hrf5di [15:48] ruby snap [15:48] ruby, freeplane, offlineimap ? [15:48] see i sent this for review [15:48] actually they sometimes ask fir logs [15:48] http://prntscr.com/hrf5la [15:48] Shantanu: The task now involves uploading the snaps..that's why [15:49] didnt get yopu [15:49] Shantanu: i think if you spent a little more time uploading the snap, you'd probably get the task approved faster XD [15:49] Earlier on it was approved...now you have to upload the snaps [15:49] wxl : i dont know java [15:49] it would have been better if you had send screenshots of each input, error mesaages, and final outputs [15:49] but if you want to sit here and argue, you can do that, to............. [15:49] ok [15:49] not intrested in arguing -_- [15:50] then get uploading :) [15:50] Shantanu: Be patient...the mentors will get back to you once you submit a complete task [15:50] ok [15:50] now i will upload even [15:53] ok and on that note time for tea [15:59] wxl: I'd like to do tasks related to testing Lubuntu daily builds. I see that on iso.qa.ubuntu.com there are a few testcases for Lubuntu (desktop/Next/Alternate), like installing it on entire disk or running Lubuntu in a live session. Should I test all these cases or one of them? [16:01] konrad11901: there are three tasks, one for each of the images (desktop/next/alternate). each of those tasks involve doing the entire testsuite, i.e. all of the testcases within those images [16:07] wxl: ok, thanks a lot :) [16:08] sudo snap install freeplane_*.snap --devmode --dangerous [16:08] error: cannot open: "freeplane_*.snap" [16:08] konrad11901: no problem. feel free to ping if you have questions. #lubuntu-devel is bridged to matrix and so you can ping my matrix nick (wxl[m]) there and i'll get an alert on my phone [16:09] ?? [16:10] Shantanu: did the previous step work? [16:10] ? [16:10] Shantanu_: so such file doesn't exist, that's pretty obvious, check your snap's name and if you're in a correct directory... [16:10] you know it works if there is a .snap file in the current directory [16:10] if the previous step failed, then it won't have made a snap [16:11] i copiued directly [16:11] no spelling m,istake [16:11] finbally popey [16:11] popey there [16:11] Yeah running the "snapcraft" command should snap it [16:11] did [16:12] snapcraft "grade" property not specified: defaulting to "stable" Preparing to pull desktop-glib-only Hit http://in.archive.ubuntu.com/ubuntu artful InRelease Get:1 http://security.ubuntu.com/ubuntu artful-security InRelease [78.6 kB] Get:2 http://in.archive.ubuntu.com/ubuntu artful-updates InRelease [78.6 kB] Get:3 http://in.archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB] Get:4 [16:12] after thjis lots of messgae [16:12] came [16:12] popey? [16:12] yes, grab the last 100 lines or so, and paste them in http://paste.ubuntu.com/ [16:12] popey: there? [16:12] so we can see them [16:13] artful? is this not supposed to be run on xenial??? [16:13] it is! good spot [16:13] https://paste.ubuntu.com/26239426/ [16:14] popey:pls check [16:14] at last i got him XD [16:14] has your tasks been reviewed yet ? [16:14] Shantanu: see my comment above. you're running on the wrong version of ubuntu4 [16:15] I need to edit all the tutorials and make it clear they should be run on 16.04 I think [16:15] popey: i think that's wise, but it is in the task description, no? [16:15] bro we installed 17.10 [16:15] im still waiting for mine to be reviewed and i submitted it on yesterday. have yours been reviewed ? [16:15] yeah, it is in the description [16:15] so it wont run there? [16:15] "You will require an Ubuntu 16.04 machine or VM in which to run this task." [16:15] it should have been 16.04 [16:15] it says in the task :) [16:16] popey:pls update [16:16] it does not run on 17.10 [16:16] * wxl facepalms [16:16] * Accelerator facepalms too [16:16] it is mentionned in the descriptin [16:16] popey:in java it installs freeplane [16:17] SHantanu_: you need to do the tutorial in Ubuntu 16.04, not 17.10 or 17.04 [16:17] i did the java and freeplane task [16:17] (it says in the task) [16:17] and it has run well on 16.04 [16:17] it has been approved [16:17] popey:ok can u tell me how to install in vm [16:17] is there any tutorial [16:18] popey: have you reviewed all the tasks yet ? [16:18] try oracle virtual box [16:19] Nissaar: i am right now [16:19] popey: pls review :) [16:20] nissaar:oracle virtual box is good? [16:20] i use it [16:20] SHantanu: it can be slow at times [16:21] but its god [16:21] to use [16:21] i wouldn't say vbox is any slower than any other vm [16:21] ok intsalling now to complete [16:21] it's good enough for this task [16:21] assuming you have ample resources, it can run near natively [16:21] i havent used any other vm [16:22] tnx guys [16:22] yeah, i use it all the time here, works well enough [16:22] kvm is nice on linux. built right into the kernel. [16:22] but i got started on vbox and i'm just used to it, so that's what i use. nearly every day, i might add. [16:22] dual booting is also nice xD [16:22] Back an an hour... [16:22] i also started gci on virtual box xd [16:22] http://prntscr.com/hrfiyj [16:23] what is this [16:23] wxl: I dual booted mine XD [16:23] popey: review my taks when youre free. thx [16:23] Nissaar: already did yours [16:23] dual boots are too much of a pain imho [16:23] i dual booted with ubuntu 16.04 too xD [16:23] popey:not mine [16:23] am right now :) [16:23] popeye:http://prntscr.com/hrfiyj [16:24] what does this mean [16:24] popeye: thx very. was waitiing for the mail. [16:24] good job popeye XD [16:24] um guys..it's popey [16:24] XD [16:24] yes but admittedly popeye is much funnier [16:24] * popeye glares at wzl [16:25] XD [16:25] popeye the sailor XD [16:25] actually wlx seems to be the most common miscommunication [16:25] back soon! [16:25] * wxl resists the urge to stick popey's head on a popeye imange [17:03] Hi elopio [17:04] Sergiusens Hi [17:05] * popey returns [18:53] Hey everyone! Stopping by for a bit to review some tasks. Anyone need help while I'm here? [18:55] kyrofa: https://codein.withgoogle.com/dashboard/task-instances/6297389344227328/ [18:56] kyrofa: could you please review that if youre free ? [18:57] Nissaar, yeah I'm going through the tasks now [18:58] Nissaar, although I'm afraid I'm not a mentor for that one [18:58] Nissaar, oh, I can approve that one though, no problem [18:59] kyrofa: thought you could review it.... no problem ill just wait [18:59] Nissaar: who is your mentor ? [18:59] Nissaar, indeed I can, no worries [18:59] kyrofa: ohh thanks very much [18:59] Accelerator: alan pope and martin wimpress [19:00] Nissaar: It's ok now that another mentor is free to review your work [19:04] heesen_, are you around? [19:11] yes [19:12] kyrofa,yes [19:12] heesen_, have a minute to chat about the snapcraft testing task? [19:13] kyrofa,yes [19:14] heesen_, first of all, do you know how to run the suite of unit tests in snapcraft? [19:15] yes [19:16] kyrofa,yes [19:17] heesen_, have you run them recently? [19:17] kyrofa,yes [19:17] kyrofa,3 days ago [19:18] heesen_, in the snapcraft root directory, run `python3 -m coverage html` [19:24] heesen_, any luck? [19:25] i get this error /usr/bin/python3: No module named coverage [19:26] kyrofa, what should i do ? [19:27] heesen, ah, progress. How did you install snapcraft's dependencies? By following the hacking guide? [19:27] kyrofa,yes [19:28] heesen, so you're inside a venv right now? [19:28] no [19:28] kyrofa.no [19:28] heesen, ah, get in it then, I bet it's in there [19:29] Try running the command again once you are [19:29] no stil not good [19:29] same error [19:30] heesen_, you probably didn't do the "development" part of the hacking guide [19:30] Run this command: [19:30] pip install -r requirements.txt -r requirements-devel.txt --editable . [19:31] (the requirements-devel.txt is important) [19:31] with the . or not [19:32] Yeah, you're saying "install this" [19:32] (the dir with the setup.py) [19:32] (. is "where I am now") [19:34] getting this error Directory '.' is not installable. File 'setup.py' not found. [19:35] heesen, make sure you're in the snapcraft root directory, the one with the setup.py [19:36] ok it ran lines of code then got this error Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Vb3KHt/mypy/ [19:36] try making a directory in the home folder and build the snap there [19:37] heesen: i have encountered the same error. remind me which task it is maybe i can see what the mentors have commented [19:37] heesen, can you copy the entire log and paste it into https://pastebin.ubuntu.com/ ? [19:38] Nissaar, heesen is hacking on snapcraft [19:38] heesen, we may just want to blow away the venv and start again [19:38] But let me see the log first [19:38] ok [19:38] done https://pastebin.ubuntu.com/26240777/ [19:39] nissaar it is the write a missing test unit for snapcraft task [19:39] heesen, it doesn't look like you were in your venv when you ran that, you needed to be [19:39] Is that true? [19:40] i wasnt in venv as the setup.py file is in snapcraft-master [19:40] heesen, sorry, what I mean when I say that is "your venv needs to be active" [19:40] heesen, let's start from scratch just to be sure things work. Where is your venv on disk? [19:41] in my home folder [19:42] heesen, so like ~/venv/snapcraft maybe? [19:42] Where the "snapcraft" folder is the venv? [19:42] (not snapcraft-master) [19:43] yes [19:43] heesen: it wasnt that one for me [19:43] venv/snapcraft [19:44] heesen, okay, make sure that venv is not active, and then blow ~/venv/snapcraft away [19:44] rm -rf ~/venv/snapcraft [19:44] Then cd into snapcraft master and let's start the hacking guide from scratch [19:44] ok done [19:45] Alright, you have the apt dependencies already installed, so let's re-create the venv [19:45] ok [19:45] mkdir -p ~/venv/snapcraft [19:45] python3 -m venv ~/venv/snapcraft [19:46] And then active the venv: [19:46] source ~/venv/snapcraft/bin/activate [19:46] heesen, then I want to pause there. Are you familiar with what we just did? Do you understand what's happening there? [19:47] i understand the first line but the other two no [19:47] heesen, before doing this tutorial, did you ever use pip? [19:47] it is creating a directory [19:48] Right [19:48] So Python has a set of directories that it uses for its packages [19:49] ok [19:49] By default, they're system-wide directories, in /usr/lib [19:49] ok [19:49] When you `sudo apt install python3-foo`, the `foo` package ends up installing stuff in those system-wide directories for everything to use [19:50] ok [19:50] Similarly, when you `sudo pip install foo` pip will install stuff in system-wide directories for everything to use [19:50] ok i understand [19:50] So let's imagine you're working on multiple projects. One requires version 1.1 of foo, another requires version 1.6 [19:51] You need to somehow have two versions of the same library installed (and its dependencies), without them fighting one another [19:51] e [19:51] That's really difficult to (read: impossible) if you're using system-wide directories. They have to go to the same place [19:51] This is why "virtual environments" were created. It allows you to install packages into a completely separate place per project instead of system-wide [19:52] Which is why you don't need sudo fo rit [19:52] for it* [19:52] With me so far? [19:52] yes [19:52] So the second line, `python3 -m venv ~/venv/snapcraft` says "take this directory I just created and make it a virtual environment" [19:53] After you run that command, python is setup in that directory [19:53] ok [19:53] But if you were to try installing packages, it would still go into the system-wide locations [19:53] The way Python determines where to put things is via several environment variables [19:54] ok i understand [19:54] When you run the third line, `source ~/venv/snapcraft/bin/activate`, you "activate" that virtual environment by running a script that redefines several environment variables, telling python "hey, everything I do now happens in this venv only" [19:54] Any packages you install with pip etc. go into that venv [19:54] ok i understood now [19:54] Which means you can have multiple venvs, with different packages installed. Even different versions of the same package [19:55] Alright. So activate that venv, and let's install Snapcraft's dependencies [19:55] thanks for the explantion [19:55] Of course! You're here to learn, and I appreciate the willingness to do so :) [19:55] Scroll down to the "Installing for development" section [19:55] thansk [19:55] You'll see the command you ran before [19:56] Run it again, but this time it'll work since you're in the virtual environment: [19:56] pip install -r requirements.txt -r requirements-devel.txt --editable . [19:57] yes it worked now [19:58] Excellent [19:58] And you should see `which snapcraft` show up as being inside the virtual environment [19:58] Right? [19:58] yes [19:58] Check this out: run `deactivate` [19:58] And run `which snapcraft` again [19:59] done [20:00] Did `which snapcraft` return anything? [20:00] yes '/snap/bin/snapcraft' [20:00] Ah, you have the snapcraft snap installed [20:00] Which is available system-wide [20:00] ok [20:00] Point is: it changed. That's because snapcraft, and all its dependencies, are only installed in the virtual environment, not system-wide. [20:01] (other than the snap, of course) [20:01] Okay: reactivate your virtual environment to get access to the from-source snapcraft again [20:01] source ~/venv/snapcraft/bin/activate [20:02] Now, inside the snapcraft root directory, run `python3 -m coverage html` again [20:02] It should work this time, since you installed it in the virtual env [20:02] yes it has [20:03] That took the coverage report from your last unit test run, and turned it into html [20:03] Open up htmlcov/index.html in your favorite browser [20:05] done [20:05] This is the snapcraft coverage report [20:05] Every file of snapcraft, and how well it's covered in tests [20:06] Select one that ISN'T 100%. I suggest snapcraft/cli/store.py [20:06] is this the document https://coverage.readthedocs.io/en/coverage-4.4.2/ [20:06] Yes, although you don't need to read that unless you want to [20:07] where do i find this I suggest snapcraft/cli/store.py [20:07] snapcraft/cli/store.py [20:07] Did you open up htmlcov/index.php in your browser? [20:08] Running `python3 -m coverage html` created the `htmlcov` directory in the snapcraft root [20:09] i ran this htmlcov/index.php [20:09] Nah, try running this: `firefox htmlcov/index.php` [20:10] i get a page saying servor not found [20:10] server [20:11] You're in the root directory of snapcraft? Do you see an htmlcov directory there? [20:12] the virtual environment is active should i deactivate it [20:12] No [20:12] You want it active the entire time you're touching the snapcraft code [20:12] i am in the root dir [20:12] ok [20:12] Do you see an `htmlcov/` directory? [20:13] yes htmlcov [20:13] What does `ls -l htmlcov/index.php` say? [20:13] Oh man [20:13] I've been hacking on nextcloud too much [20:13] My mistake, try this command: `firefox htmlcov/index.html` [20:14] ok it worked [20:14] Excellent. So you see a bunch of files, some have 100% coverage, others don't [20:14] Scroll down a little until you find snapcraft/cli/store.py [20:14] You'll see it's not 100% [20:15] got it [20:15] Click on it, and look through there [20:15] You'll see some red lines. Those are uncovered by tests [20:16] Adding a test that covers them would up the coverage of the entire project [20:16] ok [20:17] thanks for the help :) [20:17] heesen, do you see that _human_readable_acls() function? [20:17] what line is it ? [20:17] heesen, 65 [20:18] You should see two lines completely uncovered there [20:18] yes two blanks lines [20:19] heesen, no, two red lines [20:19] Lines 69-70 on my coverage [20:19] heesen, you can get those lines covered by adding a new test in snapcraft/tests/unit/commands/test_export_login.py [20:20] Run `snapcraft export-login --help` and you'll see it accepts a number of parameters [20:20] One of those parameters is `--snaps`, but there isn't a test in there that makes sure it works [20:20] Add one [20:21] Alright, I have to run for now, but I'll check back later! Bang your head against that for a little bit :) [20:21] these are the red line [20:21] for snap_id in acl['snap_ids']: snap_names.append(store.get_snap_name_for_id(snap_id)) [20:21] heesen, yep, exactly those [20:21] heesen, if you scroll down to the export_login() function you'll see even more [20:21] Cover any/all of them and you've met your task! [20:22] Alright, back soon [20:22] line ? [20:22] Scroll down, you'll find it [20:22] (my lines are different than yours) [20:22] ok thanks [20:22] ok