----BEGIN CLASS---- [14:14] #startclass [14:14] Roll Call [14:14] Vivek Anand [14:14] kumar vipin yadav [14:14] Bhavin Gandhi [14:14] pooja kumari singh [14:15] Deepika Upadhyay [14:15] Robin Schubert [14:15] Krishnanand Rai [14:15] Anu kumari Gupta [14:16] Sandra Patel [14:16] Okay, questions? [14:17] Any questions anyone? [14:18] ! [14:19] next [14:19] os is a module and os.path is a submodule, right? should I print os.path [14:20] bhavin192, your choice. [14:20] bhavin192, actually os.path is better [14:21] kushal, yes, right. [14:21] Roll call: Ashwani Kumar Gupta [14:21] Okay [14:22] Anyway, getting back to problems to solve. [14:22] Everyone please paste your github repo URL (which contains our daily problem given here). [14:22] problem and solutions [14:23] kushal, https://github.com/ashwani99/dgplug-python-exercises [14:23] ashwanig, Thank you [14:24] Anyone else? [14:25] kushal: sorry, not done yet, have to wrap up all the code from different machines :/ [14:25] kushal i haven't push those on github but they all are save here https://repl.it/sessions [14:25] kushal, not done that yet :-/ was not feeling well :( [14:25] We need those. [14:26] Using git for things is an habit. [14:26] Either you build that habit, or not. [14:27] Next, start reading https://pymbook.readthedocs.io/en/latest/virtualenv.html [14:27] It is a very small chapter. [14:27] I will take questions on that. [14:27] Then, I will give you the problem of the day. [14:29] brb [14:31] ! [14:31] ! [14:35] ! [14:38] back [14:38] next [14:38] kushal: can we use pip3 with virtual environment created in python2 using ```virtualenv vir_env```? [14:38] https://github.com/IamTechnotron/dgplugproblems [14:39] knrai, yes, you can point to a different python binary [14:39] next [14:39] I had a problem in last day's question. How to check between a function and a module? [14:39] i am gating error while installing 2.4 version of redis in virt2 [14:39] [14:40] next [14:40] i am gating error while installing 2.4 version of redis in virt2 ? [14:40] kvy, The error is about "Millions of dollars in your Panama account"? [14:40] [14:41] anuGupta, ah, that is something I am yet to solve, I just gave the problem. [14:41] bhavin192, What did you do? [14:41] kvy, you have to show/tell us the error with details. [14:41] kvy, Otherwise we don't have power to look into your computer screen. [14:41] ImportError: cannot import name 'imap' this is the error. [14:41] kushal, I checked for lines starting with "import" and "from" [14:42] But that would not do I suppose simply checking the starting [14:42] ! [14:42] kvy, show us the full error in a paste [14:42] next [14:43] ok [14:43] kushal: how can we install packages locally that are not available through pip [14:43] [14:43] knrai, go to the directory, and then python setup.py install [14:44] knrai, the normal way to install from source [14:44] kushal: ok [14:45] anuGupta, bhavin192 `from module.submodule import function` - this is the case where it is failing [14:45] ashwanig, why? [14:45] kushal: does installing from source not install a software systemwide? [14:46] bhavin192, what is your program's output for that import statement? [14:46] ashwanig, module.submodule [14:46] bhavin192, can you share your code? [14:47] ashwanig, sure [14:47] knrai, if you install in the virtualenv, it should not. [14:47] knrai, Also depends on how the software is getting installed [14:48] kushal here is the error https://pastebin.com/AfsWYfHq [14:49] let me check [14:50] kvy, Yes, same error here, I think I should update the book with a proper example, that will work in Python2 [14:51] ok [14:52] can you tell me when you update that. [14:53] kvy, but do you get the idea? You can install any version if you want. [14:53] ya that's clear to me [14:54] Have to go, will read the logs later [14:58] next [14:58] Okay [14:58] Who all does not know anything about HTML? [14:59] kushal, bit of basics [14:59] kushal i know but a little bit. [15:00] basics will do [15:00] For tonight, read this doc https://www.crummy.com/software/BeautifulSoup/bs4/doc/ [15:01] ! One last query on virtual environment [15:01] Then write a function, which will take an URL as argument, and will return all the links from the URL. [15:01] deepika, ask [15:02] Kushal , if I install redid on virt2 it first uninstall the package version installed on virt1 and then install the required version [15:03] deepika, eh, show us the output from the terminal please. [15:03] Okay [15:04] https://www.irccloud.com/pastebin/pIuyrsTQ/ [15:05] deepika it's redis not redid [15:05] kvy , but the point is it should install different versions on different environment [15:06] correct me if i got it wrong :) [15:07] deepika, virt1 and virt2 are completely isolated [15:07] i used (virt1) ~/virtual » sudo pip3 install redis==2.0.0 [15:08] (virt2) ~/virtual » sudo pip3 install redis==2.7.1 [15:08] deepika, that would install redis version 2.0.0 on virt1 and version 2.7.1 on virt2 [15:08] ashwanig I try that in my terminal it does not uninstall the first one. [15:09] ashwanig , can sudo cause any trouble ? [15:09] kvy, yes it will not uninstall the package in virt1 because it has nothing to do with virt2 [15:09] deepika no you got that very clear. [15:10] deepika, not sure of that. :) [15:10] deepika, first point, you never gave us the full log. [15:10] ashwanig, point 2, maybe you never deactivated the virt1 [15:11] ashwanig but in deepika's terminal why that uninstall first. [15:12] https://www.irccloud.com/pastebin/PQSFFb8e/ [15:12] kushal , sorry , this is thecomplete log [15:12] soumam007, ping? [15:12] :) [15:15] My guess you already install redis 2.7.1 in virt1 [15:15] try again [15:15] okay , i'll :) [15:16] Any question on the problem I gave today? [15:17] Okay, we will meet formally again on Monday ----END CLASS----