Re: multiprocessing.Process can not start a thread in py2exe

2017-05-20 Thread Ho Yeung Lee
On Sunday, May 21, 2017 at 2:47:26 PM UTC+8, Ho Yeung Lee wrote: > On Sunday, May 21, 2017 at 2:40:49 PM UTC+8, top...@googlemail.com wrote: > > Did you call freeze_support() function after script start? > > https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support > >

Re: AttributeError: 'module' object has no attribute 'urlretrieve' in window subsystem ubuntu bash for tensorflow

2017-05-20 Thread Kev Dwyer
Ho Yeung Lee wrote: > i use window subsystem ubuntu > and install python 3 and tensorflow > > then when try deep learning > > https://www.tensorflow.org/tutorials/wide_and_deep > > got error when urlretrieve local directory in ubuntu in window > > tried urllib3 still have error > > import tem

Re: multiprocessing.Process can not start a thread in py2exe

2017-05-20 Thread Ho Yeung Lee
On Sunday, May 21, 2017 at 2:40:49 PM UTC+8, top...@googlemail.com wrote: > Did you call freeze_support() function after script start? > https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support no, i did not call freeze_support() -- https://mail.python.org/mailman/li

Re: multiprocessing.Process can not start a thread in py2exe

2017-05-20 Thread topic2k--- via Python-list
Did you call freeze_support() function after script start? https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support -- https://mail.python.org/mailman/listinfo/python-list

AttributeError: 'module' object has no attribute 'urlretrieve' in window subsystem ubuntu bash for tensorflow

2017-05-20 Thread Ho Yeung Lee
i use window subsystem ubuntu and install python 3 and tensorflow then when try deep learning https://www.tensorflow.org/tutorials/wide_and_deep got error when urlretrieve local directory in ubuntu in window tried urllib3 still have error import tempfile import pandas as pd import urllib as u

Re: multiprocessing.Process can not start a thread in py2exe

2017-05-20 Thread Ho Yeung Lee
i mean executable file can not run the multiprocessing thread after convert to executable file with py2exe On Sunday, May 21, 2017 at 2:09:04 PM UTC+8, Ho Yeung Lee wrote: > p = multiprocessing.Process(target=helloconnect, args=(host,"",)) > > multiprocessing.Process can not start a thread in

multiprocessing.Process can not start a thread in py2exe

2017-05-20 Thread Ho Yeung Lee
p = multiprocessing.Process(target=helloconnect, args=(host,"",)) multiprocessing.Process can not start a thread in py2exe it can compile and run without error but it can not run function helloconnect -- https://mail.python.org/mailman/listinfo/python-list

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-20 Thread Chris Angelico
On Sun, May 21, 2017 at 3:30 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> But since Python _does_ work with dynamic evaluation >> (which consequently demands that these kinds of things be expressions >> evaluated at compile time), it must by definition be possible to have >> side effects

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-20 Thread Gregory Ewing
Chris Angelico wrote: But since Python _does_ work with dynamic evaluation (which consequently demands that these kinds of things be expressions evaluated at compile time), it must by definition be possible to have side effects. In most languages, type declarations are not expressions and aren'

Re: How to install Python package from source on Windows

2017-05-20 Thread Michael Torrie
On 05/20/2017 03:56 PM, bartc wrote: > BTW /does/ Linux compile on /any/ modern compiler? I heard it was so > difficult to compile that gcc had to be specially modified to make it > possible. The kernel compiles with recent bog standard gcc compilers just fine. The last time there was an issue w

Re: How to install Python package from source on Windows

2017-05-20 Thread Larry Martell
On Sat, May 20, 2017 at 5:56 PM, bartc wrote: > I would say there are two types of people: those who care about the answer, > and those who don't. I say there are 10 types of people in this world. Those who understand binary and those who don’t. -- https://mail.python.org/mailman/listinfo/python

Re: How to install Python package from source on Windows

2017-05-20 Thread bartc
On 20/05/2017 19:37, Chris Angelico wrote: On Sun, May 21, 2017 at 4:11 AM, bartc wrote: (Which is exactly what I strive to do. Although my projects are small, they could still involve dozens of source and support files, and require running non-standard tools to build, which would then requir

Re: How to install Python package from source on Windows

2017-05-20 Thread Steve D'Aprano
On Sun, 21 May 2017 04:11 am, bartc wrote: > You've reduced > the job of building a set of kitchen units to hammering in just one > nail "Where's the fridge go?" "You don't need a fridge. Just put things outside, in the snow. When it snows." "Okay, how do I install a gas oven?" "Sorry, you can

Re: How to install Python package from source on Windows

2017-05-20 Thread Chris Angelico
On Sun, May 21, 2017 at 4:11 AM, bartc wrote: > On 20/05/2017 17:49, Chris Angelico wrote: >> >> On Sat, May 20, 2017 at 8:46 AM, Viktor Hagström >> wrote: >>> >>> I have followed this discussion since the beginning, and I have been >>> intrigued. I recently read a relevant blog post that I'd lik

Re: How to install Python package from source on Windows

2017-05-20 Thread bartc
On 20/05/2017 17:49, Chris Angelico wrote: On Sat, May 20, 2017 at 8:46 AM, Viktor Hagström wrote: I have followed this discussion since the beginning, and I have been intrigued. I recently read a relevant blog post that I'd like to share. It has arguments for both sides: http://nullprogram.c

Re: Finding sentinel text when using a thread pool...

2017-05-20 Thread Christopher Reimer via Python-list
On 5/20/2017 1:19 AM, dieter wrote: If your (590) pages are linked together (such that you must fetch a page to get the following one) and page fetching is the limiting factor, then this would limit the parallelizability. The pages are not linked together. The URL requires a page number. If I

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-20 Thread Steve D'Aprano
On Sun, 21 May 2017 12:14 am, Gregory Ewing wrote: > Steve D'Aprano wrote: >> You mean treat them as syntactically comments? >> >> def function(arg:I can put ***ANYTHING*** I like here!!!): > > They could be parsed as expressions and stored as an AST. > That would allow introspection, and you co

Re: How to install Python package from source on Windows

2017-05-20 Thread Chris Angelico
On Sat, May 20, 2017 at 8:46 AM, Viktor Hagström wrote: > I have followed this discussion since the beginning, and I have been > intrigued. I recently read a relevant blog post that I'd like to share. It > has arguments for both sides: http://nullprogram.com/blog/2017/03/30/. > """ There’s a mu

سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي موقع مليتا للسكس العربي موقع مليتا موقع 89

2017-05-20 Thread cyprus news
سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي موقع مليتا للسكس العربي موقع مليتا موقع 89 -- https://mail.python.org/mailman/listinfo/python-list

سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي موقع مليتا للسكس العربي موقع مليتا موقع 89

2017-05-20 Thread cyprus news
سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي موقع مليتا للسكس العربي موقع مليتا موقع 89 سكس منيوكه مرفت جنس منيوكة مصرية منديات عرب لبنان سكس منتديات فلام إغتصاب منتديات سكسية منتديات سكس منتديات شرموطة منتديات رومنسي السكسية منت https://mslslat2017.blogspot

Re: getting the center of mass of each part of a molecule

2017-05-20 Thread qasimpars
I have more than 100 ligand molecules. The image I showed at the beginning of this discussion was only an example. It had missing atoms. See it without missing any atom in the pdb format (coordinates in Angstrom unit): ATOM 1 O1 LIG 1 46.050 50.290 26.860 ATOM

Re: How to install Python package from source on Windows

2017-05-20 Thread breamoreboy
On Friday, May 19, 2017 at 1:41:02 AM UTC+1, Michael Torrie wrote: > On 05/18/2017 05:15 PM, Steve D'Aprano wrote: > > Oh but this is Bart we're talking about. Of course his code generator is > > perfect, it is unthinkable that it emits incorrect code. > > I think we've picked on Bart enough for o

Re: How to install Python package from source on Windows

2017-05-20 Thread breamoreboy
On Thursday, May 18, 2017 at 8:32:18 PM UTC+1, bartc wrote: > On 18/05/2017 18:11, Steve D'Aprano wrote: > > > Seems a bit hypocritical, don't you think? Expecting people to go spelunking > > into your undocumented mystery language source code to work out how to > > build it from source, and then

Re: How to install Python package from source on Windows

2017-05-20 Thread Viktor Hagström
I have followed this discussion since the beginning, and I have been intrigued. I recently read a relevant blog post that I'd like to share. It has arguments for both sides: http://nullprogram.com/blog/2017/03/30/. 2017-05-20 0:01 GMT+02:00 eryk sun mailto:eryk...@gmail.com>>: On Fri, May 19, 2

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-20 Thread Chris Angelico
On Sat, May 20, 2017 at 11:58 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> They're function metadata. What would the principle of least surprise >> say about this? >> >> print("Spam") >> def func(arg: print("Foo") = print("Quux")): >> print("Blargh") >> print("Fred") >> func() >> pri

Re: I need help with making my claculator

2017-05-20 Thread bartc
On 20/05/2017 14:49, Steve D'Aprano wrote: On Sat, 20 May 2017 09:13 pm, bartc wrote: Try running the program. (I did that but I can't follow this style of coding so can't help.) Chris is within his rights to refuse to run untrusted code downloaded over the internet. It's not even the secu

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-20 Thread Gregory Ewing
Steve D'Aprano wrote: You mean treat them as syntactically comments? def function(arg:I can put ***ANYTHING*** I like here!!!): They could be parsed as expressions and stored as an AST. That would allow introspection, and you could evaluate them if you wanted Ever since they were introduced,

[ANN] aioxmpp 0.9 released

2017-05-20 Thread Jonas Wielicki
Dear subscribers, We are pleased to announce the release of aioxmpp 0.9. The current release can be obtained from GitHub [1] (check out the v0.9.0 tag or the master branch) or PyPI [2]. The HTML documentation can be found at [3]. Examples can be found in the GitHub repository, in the examples s

Re: I need help with making my claculator

2017-05-20 Thread Joel Goldstick
On Sat, May 20, 2017 at 9:49 AM, Steve D'Aprano wrote: > On Sat, 20 May 2017 09:13 pm, bartc wrote: > >> On 20/05/2017 03:10, Chris Angelico wrote: >>> Without any specific questions, you're not going to get anything more >>> than a basic eyeballing of the code. >> >> Try running the program. >> >

Re: I need help with making my calculator

2017-05-20 Thread Steve D'Aprano
On Sat, 20 May 2017 11:42 am, gars...@gmail.com wrote: > m using Python 3.4.2 > This is my code: Please read this first: http://sscce.org/ And then indent the "calc" method so that it is part of the class: > def calc(self, display): > try: > display.set(eval(display.get())) > e

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-20 Thread Gregory Ewing
Chris Angelico wrote: They're function metadata. What would the principle of least surprise say about this? print("Spam") def func(arg: print("Foo") = print("Quux")): print("Blargh") print("Fred") func() print("Eggs") Most languages that have static type declarations wouldn't let you write

Re: How to install Python package from source on Windows

2017-05-20 Thread Gregory Ewing
Steve D'Aprano wrote: Or /sbin or /usr/sbin or /opt :-) Yes, there are a few others. The point is that there is a small number of standard places for executables, and if you have them on your path, you're good to go. With Visual Studio it seems things get installed somewhere that's not on you

Re: I need help with making my claculator

2017-05-20 Thread Steve D'Aprano
On Sat, 20 May 2017 09:13 pm, bartc wrote: > On 20/05/2017 03:10, Chris Angelico wrote: >> Without any specific questions, you're not going to get anything more >> than a basic eyeballing of the code. > > Try running the program. > > (I did that but I can't follow this style of coding so can't h

Re: No module named vtkCommonCorePython

2017-05-20 Thread Jason Friedman
> > I have a problem to finding file in Python path,Anybody knows how to solve > it? > > Unexpected error: > Traceback (most recent call last): > File > "/home/nurzat/Documents/vmtk-build/Install/bin/vmtklevelsetsegmentation", > line 20, in > from vmtk import pypeserver > File "/usr/loca

Re: I need help with making my claculator

2017-05-20 Thread Chris Angelico
On Sat, May 20, 2017 at 9:13 PM, bartc wrote: > On 20/05/2017 03:10, Chris Angelico wrote: >> >> On Sat, May 20, 2017 at 11:40 AM, wrote: >>> >>> def calc(self, display): >>> try: >>> display.set(eval(display.get())) >>> except: >>> display.set("Type an actual equation pl

Re: I need help with making my claculator

2017-05-20 Thread bartc
On 20/05/2017 03:10, Chris Angelico wrote: On Sat, May 20, 2017 at 11:40 AM, wrote: def calc(self, display): try: display.set(eval(display.get())) except: display.set("Type an actual equation please!") Without any specific questions, you're not going to get anything m

Re: Finding sentinel text when using a thread pool...

2017-05-20 Thread dieter
Christopher Reimer writes: > I'm developing a web scraper script. It takes 25 minutes to process > 590 pages and ~9,000 comments. I've been told that the script is > taking too long. > > The way the script currently works is that the page requester is a > generator function that requests a page, c

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-20 Thread Steve D'Aprano
On Sat, 20 May 2017 11:57 am, Chris Angelico wrote: > They're function metadata. What would the principle of least surprise > say about this? > > print("Spam") > def func(arg: print("Foo") = print("Quux")): > print("Blargh") > print("Fred") > func() > print("Eggs") > > What should be printed

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-20 Thread Steve D'Aprano
On Sat, 20 May 2017 11:42 am, Gregory Ewing wrote: > Steve D'Aprano wrote: >> On Fri, 19 May 2017 11:35 pm, Edward Ned Harvey (python) wrote: >> >>> I *thought* python 3.0 to 3.4 would *ignore* annotations, but it >>> doesn't... >> >> Why would you think that? > > Ever since Guido retconned the