EuroPython 2019: PyData EuroPython 2019
We are happy to announce a complete PyData track at EuroPython 2019: * PyData EuroPython 2019 * https://ep2019.europython.eu/events/pydata-europython-2019/ The PyData track will be part of EuroPython 2019, so you won’t need to buy an extra ticket to attend. The PyData track is run in cooperation with NumFocus. There are two full tracks featuring more than 30 talks and 4 trainings: - 4 trainings on Monday and Tuesday (July 8-9) - 34 talks on Wednesday and Thursday (July 10-11) - no PyData talks on Friday (July 12) The full program is available on our PyData EuroPython 2019 page. https://ep2019.europython.eu/events/pydata-europython-2019/ If you’d like to attend PyData EuroPython 2019, please register for EuroPython 2019 soon: https://ep2019.europython.eu/registration/buy-tickets/ Dates and Venues EuroPython will be held from July 8-14 2019 in Basel, Switzerland, at the Congress Center Basel (CCB) for the main conference days (Wed-Fri) and the FHNW Muttenz for the workshops/trainings/sprints days (Mon-Tue, Sat-Sun). Tickets can be purchased on our registration page: https://ep2019.europython.eu/registration/buy-tickets/ For more details, please have a look at our website and the FAQ: https://ep2019.europython.eu/faq Help spread the word Please help us spread this message by sharing it on your social networks as widely as possible. Thank you ! Link to the blog post: https://blog.europython.eu/post/185265747827/pydata-europython-2019 Tweet: https://twitter.com/europython/status/1134358461335199749 Enjoy, -- EuroPython 2019 Team https://ep2019.europython.eu/ https://www.europython-society.org/ -- https://mail.python.org/mailman/listinfo/python-list
Re: How to use ssh-agent in windows in python?
在 2019-05-31 21:51, Fc Zwtyds 写道: 在 2019-05-30 6:41, Cameron Simpson 写道: ... ... ... The you could just use os.system() to run the other commands, because the environment now has the necessary environment settings. See how you go. Cheers, Cameron Simpson (formerly c...@zip.com.au) Hi, Under your guidance, the python code using ssh-agent ssh-add has been running successfully. In addition to the code you wrote to me, I also refer to man ssh-agent and subprocess: Subprocess management. I now know the importance of environment variables. This problem has puzzled me for nearly two weeks and solved this problem with your help. With your guidance and help, I have learned a lot. You are a very good teacher. You are my teacher. BTW, this program is for visit youtube. Cheers! Thanks so much. import subprocess import os p = subprocess.Popen('ssh-agent -s', stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True, universal_newlines = True) outinfo, errinfo = p.communicate() lines = outinfo.split('\n') for line in lines[:-1]: left, right = line.split(';', 1) if '=' in left: varname, varvalue = left.split('=', 1) print("got" + varname + "=" + varvalue) os.environ[varname] = varvalue os.system(r'ssh-add id_rsa') os.system(r'ssh-add -l') -- https://mail.python.org/mailman/listinfo/python-list
Re: How to use ssh-agent in windows in python?
在 2019-05-30 6:41, Cameron Simpson 写道: ... ... ... The you could just use os.system() to run the other commands, because the environment now has the necessary environment settings. See how you go. Cheers, Cameron Simpson (formerly c...@zip.com.au) Hi, Under your guidance, the python code using ssh-agent ssh-add has been running successfully. In addition to the code you wrote to me, I also refer to man ssh-agent and subprocess: Subprocess management. I now know the importance of environment variables. This problem has puzzled me for nearly two weeks and solved this problem with your help. With your guidance and help, I have learned a lot. You are a very good teacher. You are my teacher. BTW, this program is for visit youtube. Cheers! Thanks so much. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to use ssh-agent in windows in python?
在 2019-05-31 21:51, Fc Zwtyds 写道: 在 2019-05-30 6:41, Cameron Simpson 写道: ... ... ... The you could just use os.system() to run the other commands, because the environment now has the necessary environment settings. See how you go. Cheers, Cameron Simpson (formerly c...@zip.com.au) Hi, Under your guidance, the python code using ssh-agent ssh-add has been running successfully. In addition to the code you wrote to me, I also refer to man ssh-agent and subprocess: Subprocess management. I now know the importance of environment variables. This problem has puzzled me for nearly two weeks and solved this problem with your help. With your guidance and help, I have learned a lot. You are a very good teacher. You are my teacher. BTW, this program is for visit youtube. Cheers! Thanks so much. import subprocess import os p = subprocess.Popen('ssh-agent -s', stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True, universal_newlines = True) outinfo, errinfo = p.communicate() lines = outinfo.split('\n') for line in lines[:-1]: left, right = line.split(';', 1) if '=' in left: varname, varvalue = left.split('=', 1) print(varname + "=" + varvalue) os.environ[varname] = varvalue os.system('ssh-add id_rsa') os.system('ssh-add -l') run ok! -- https://mail.python.org/mailman/listinfo/python-list
Re: (no subject)
On Wed, 29 May 2019 08:07:06 +0530, Sri Tharun wrote: > Why I am unable to install packages because you are doing it wrong -- https://mail.python.org/mailman/listinfo/python-list
Checking refusal of a network connection
Hello, I can start a service as desired. elfring@Sonne:~/Projekte/Bau/C++/test-statistic-server1/local> ./test-statistic-server2 & /usr/bin/ss -t -l -p -H|grep test [1] 8961 waiting for connections server_id: localhost server_port: 35529 LISTEN 0 123 [::1]:35529 [::]:* users:(("test-statistic-",pid=8961,fd=3)) elfring@Sonne:~/Projekte/Bau/C++/test-statistic-server1/local> 0 connections were handled. But I wonder about the following error message then. elfring@Sonne:~/Projekte/Python> /usr/bin/python3 ~/Projekte/Python/socket-send_json_data.py --server_id localhost --server_port 35529 Using Python version: 3.7.2 … Traceback …: … File "/home/elfring/Projekte/Python/socket-send_json_data.py", line 17, in send_data so.connect((args.server_id, args.server_port)) ConnectionRefusedError: [Errno 111] Connection refused How should this inter-process communication difficulty be resolved? Regards, Markus -- https://mail.python.org/mailman/listinfo/python-list
Re: Checking refusal of a network connection
> Well, providing minimal code samples that produce the problem would be > a start. I prefer an other approach to clarify relevant software configuration differences. > Otherwise we are just guessing... I can offer other data before. > Maybe you have a firewall problem. I hope not. I can try another server variant out as expected. elfring@Sonne:~/Projekte/Python> /usr/bin/python3 test-server2.py & [1] 14067 elfring@Sonne:~/Projekte/Python> /usr/bin/ss -t -l -p -H|grep python LISTEN0 5 127.0.0.1:search-agent 0.0.0.0:* users:(("python3",pid=14067,fd=3)) elfring@Sonne:~/Projekte/Python> /usr/bin/python3 socket-send_json_data.py --server_id localhost --server_port 1234 Using Python version: 3.7.2 (default, Dec 30 2018, 16:18:15) [GCC] elfring@Sonne:~/Projekte/Python> Result: … Can connections work also with a network service address like “[::1]:35529” (which would be used by the C++ server implementation so far)? How does the software situation look like for the support of the IPv6 loopback address? Regards, Markus -- https://mail.python.org/mailman/listinfo/python-list
Re: Hide text in entry box when i click on it.(GUI using Tkinter in python)
Not happening in mine -- https://mail.python.org/mailman/listinfo/python-list
Re: Hide text in entry box when i click on it.(GUI using Tkinter in python)
NOT WORKING IN MINE PLZ HELP from tkinter import * g=Tk() g.geometry("{0}x{1}+0+0".format(g.winfo_screenwidth(), g.winfo_screenheight())) g.title("Check") g.configure(background='powder blue') def clear_search(event): e1.delete(0, tk.END) e1=Entry(g) e1.insert(0,'username') e1.pack() e1.bind("", clear_search) e1.bind("", clear_search) g.mainloop() -- https://mail.python.org/mailman/listinfo/python-list
Re: Hide text in entry box when i click on it.(GUI using Tkinter in python)
On 31/05/2019 20:08, sakshamrahej...@gmail.com wrote: NOT WORKING IN MINE PLZ HELP from tkinter import * g=Tk() ^^ g.geometry("{0}x{1}+0+0".format(g.winfo_screenwidth(), g.winfo_screenheight())) g.title("Check") g.configure(background='powder blue') def clear_search(event): e1.delete(0, tk.END) ^^ e1=Entry(g) e1.insert(0,'username') e1.pack() e1.bind("", clear_search) e1.bind("", clear_search) g.mainloop() Spot the difference between the identifiers I underlined. If you run this from the command line, the traceback tells you exactly what is going on. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list
Re: Hide text in entry box when i click on it.(GUI using Tkinter in python)
On Sat, Jun 1, 2019 at 5:11 AM wrote: > > NOT WORKING IN MINE PLZ HELP > > > > from tkinter import * > g=Tk() > g.geometry("{0}x{1}+0+0".format(g.winfo_screenwidth(), > g.winfo_screenheight())) > g.title("Check") > g.configure(background='powder blue') > > > def clear_search(event): > e1.delete(0, tk.END) > > e1=Entry(g) > e1.insert(0,'username') > e1.pack() > e1.bind("", clear_search) > e1.bind("", clear_search) > > g.mainloop() Did you look at the exception you get when this runs? It might possibly be able to point you to the problem, and maybe suggest how you could resolve it (by importing something, perhaps). ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: How to use ssh-agent in windows in python?
On 31May2019 21:51, Fc Zwtyds wrote: 在 2019-05-30 6:41, Cameron Simpson 写道: The you could just use os.system() to run the other commands, because the environment now has the necessary environment settings. [...] Under your guidance, the python code using ssh-agent ssh-add has been running successfully. In addition to the code you wrote to me, I also refer to man ssh-agent and subprocess: Subprocess management. I now know the importance of environment variables. Excellent. I'm glad to hear it. BTW, this program is for visit youtube. I am curious, how do you use the ssh commands to access youtube? I though it was an HTTP only service. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list
Re: Checking refusal of a network connection
On 31May2019 17:35, Markus Elfring wrote: I can start a service as desired. elfring@Sonne:~/Projekte/Bau/C++/test-statistic-server1/local> ./test-statistic-server2 & /usr/bin/ss -t -l -p -H|grep test [1] 8961 waiting for connections server_id: localhost server_port: 35529 LISTEN 0 123 [::1]:35529 [::]:* users:(("test-statistic-",pid=8961,fd=3)) elfring@Sonne:~/Projekte/Bau/C++/test-statistic-server1/local> 0 connections were handled. But I wonder about the following error message then. elfring@Sonne:~/Projekte/Python> /usr/bin/python3 ~/Projekte/Python/socket-send_json_data.py --server_id localhost --server_port 35529 Using Python version: 3.7.2 … Traceback …: … File "/home/elfring/Projekte/Python/socket-send_json_data.py", line 17, in send_data so.connect((args.server_id, args.server_port)) ConnectionRefusedError: [Errno 111] Connection refused How should this inter-process communication difficulty be resolved? It looks like the service isn't listening at the time the so.connect is called. Are you doing it before the service is ready? Otherwise you need to print out the server_id and port, and examine the system to see if that address/port is in LISTEN state. Running "netstat -an" on the system running the service is a useful way to do this. Hmm, look like your "ss" command effectively does that. I'd fall back to the connect then: check that it really is using the correct address/port. Print them out. Also, it can be very useful to strace the client process, eg: strace -e trace=network /usr/bin/python3 ~/Projekte/Python/socket-send_json_data.py --server_id localhost --server_port 35529 You can also strace the running service process: strace -e trace=network -p pid-of-service-process-here to see if it is responding in any way to the client connect. Also, on the service side it isn't enough to create the service socket, you also need to do an accept IIRC. If you're using Python's socket library the service classes do that for you. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list