Re: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Steve D'Aprano
On Sun, 15 Jan 2017 05:46 am, Rodrick Brown wrote: > at some point the forking was working Then whatever you changed, you should change back to the way it was. That's the most important lesson here: never make two or more unrelated changes to a program unless you have a backup of the working fil

Re: How can I make a sentinel value NOT be initialized in a class/method - OOP?

2017-01-14 Thread Erik
[Replying to direct email. David - please respond to the list so that you can receive other people's suggestions also] Hi David, On 14/01/17 15:30, David D wrote: > 1) No this is not homework, I am doing this all on my own. In that case I apologise - I gave you the benefit of the doubt though

Re: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread MRAB
On 2017-01-14 19:05, Joseph L. Casale wrote: while True: for client in clients: stats = ThreadStats() stats.start() p = Process(target=getWhispererLogsDirSize, args=(client,queue,)) jobs.append(p) p.start() p.join() You start one client then join before startin

RE: multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Joseph L. Casale
> while True: >for client in clients: > stats = ThreadStats() > stats.start() > p = Process(target=getWhispererLogsDirSize, args=(client,queue,)) > jobs.append(p) > p.start() > p.join() You start one client then join before starting the next... Start them all an

multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Rodrick Brown
I'm trying to implement a script that tracks how much space certain applications are using and send a metric to a statsd service for realtime analysis however when running this code it nots forking multiple processes its still running sequential at some point the forking was working but I can't see

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 8:09:53 μ.μ. UTC+2, ο χρήστης duncan smith έγραψε: > On 14/01/17 14:59, Xristos Xristoou wrote: > > Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:38:39 μ.μ. UTC+2, ο χρήστης duncan smith > > έγραψε: > >> On 14/01/17 11:18, Xristos Xristoou wrote: > >>> i want to create a si

Re: geopandas bug ?

2017-01-14 Thread duncan smith
On 14/01/17 14:59, Xristos Xristoou wrote: > Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:38:39 μ.μ. UTC+2, ο χρήστης duncan smith > έγραψε: >> On 14/01/17 11:18, Xristos Xristoou wrote: >>> i want to create a simple spatial joing using geopandas but i thing so >>> geopandas has bug ? >>> >>> >>> >>> geop

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: > Τη Σάββατο, 14 Ιανουαρίου 2017 - 6:33:54 μ.μ. UTC+2, ο χρήστης Peter Otten > έγραψε: >> Xristos Xristoou wrote: >> >> >> I suggest that you file a bug report. >> > >> > Mr.Peter Otten do you see my shapefiles ?have instersection 100 to 100 >> > i use instersection on QG

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 6:33:54 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > >> I suggest that you file a bug report. > > > > Mr.Peter Otten do you see my shapefiles ?have instersection 100 to 100 i > > use instersection on QGIS ad work fine > > Yes, I downlo

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: >> I suggest that you file a bug report. > > Mr.Peter Otten do you see my shapefiles ?have instersection 100 to 100 i > use instersection on QGIS ad work fine Yes, I downloaded the zipfile at > https://www.dropbox.com/s/2693nfi248z0y9q/files.zip?dl=0 with the and when I

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 6:01:39 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > > Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:30:48 μ.μ. UTC+2, ο χρήστης Peter Otten > > έγραψε: > >> Xristos Xristoou wrote: > >> > >> > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2,

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: > Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:30:48 μ.μ. UTC+2, ο χρήστης Peter Otten > έγραψε: >> Xristos Xristoou wrote: >> >> > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter >> > Otten έγραψε: >> >> Xristos Xristoou wrote: >> >> >> >> > i want to create

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:38:39 μ.μ. UTC+2, ο χρήστης duncan smith έγραψε: > On 14/01/17 11:18, Xristos Xristoou wrote: > > i want to create a simple spatial joing using geopandas but i thing so > > geopandas has bug ? > > > > > > > > geopandas code : > > > > from geopandas import g

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:30:48 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter Otten > > έγραψε: > >> Xristos Xristoou wrote: > >> > >> > i want to create a simple spatial joing using geopan

Re: geopandas bug ?

2017-01-14 Thread duncan smith
On 14/01/17 11:18, Xristos Xristoou wrote: > i want to create a simple spatial joing using geopandas but i thing so > geopandas has bug ? > > > > geopandas code : > > from geopandas import gpd > import geopandas > points = geopandas.GeoDataFrame.from_file('points.shp') # or geojson etc > poly

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 4:30:48 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter Otten > > έγραψε: > >> Xristos Xristoou wrote: > >> > >> > i want to create a simple spatial joing using geopan

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: > Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter Otten > έγραψε: >> Xristos Xristoou wrote: >> >> > i want to create a simple spatial joing using geopandas but i thing so >> > geopandas has bug ? >> >> Have you tried the examples on

Re: geopandas bug ?

2017-01-14 Thread Xristos Xristoou
Τη Σάββατο, 14 Ιανουαρίου 2017 - 3:43:10 μ.μ. UTC+2, ο χρήστης Peter Otten έγραψε: > Xristos Xristoou wrote: > > > i want to create a simple spatial joing using geopandas but i thing so > > geopandas has bug ? > > Have you tried the examples on ? > Do they

Re: geopandas bug ?

2017-01-14 Thread Peter Otten
Xristos Xristoou wrote: > i want to create a simple spatial joing using geopandas but i thing so > geopandas has bug ? Have you tried the examples on ? Do they work? If yes, inspect your data, does it have the same format? > geopandas code : > > from geop

geopandas bug ?

2017-01-14 Thread Xristos Xristoou
i want to create a simple spatial joing using geopandas but i thing so geopandas has bug ? geopandas code : from geopandas import gpd import geopandas points = geopandas.GeoDataFrame.from_file('points.shp') # or geojson etc polys = geopandas.GeoDataFrame.from_file('polygons.shp') pointInPoly

geopandas bug ?

2017-01-14 Thread Xristos Xristoou
i want to create a simple spatial joing using geopandas but i thing so geopandas has bug ? geopandas code : from geopandas import gpd import geopandas points = geopandas.GeoDataFrame.from_file('points.shp') # or geojson etc polys = geopandas.GeoDataFrame.from_file('polygons.shp') pointInPoly

Re: Announcement: TLSv1.2 will become mandatory in the future for Python.org Sites

2017-01-14 Thread dieter
oliver writes: > When I run this per email from my work laptop, > > python3 -c "import urllib.request,json; > print(json.loads(urllib.request.urlopen(' > https://www.howsmyssl.com/a/check').read())['tls_version'])" > > I get the following traceback: > ... > File "c:\Python35\lib\ssl.py", line 633

Re: Python Web Scrapping : Within href readonly those value that have href in it

2017-01-14 Thread Peter Otten
shahs...@gmail.com wrote: > I am trying to scrape a webpage just for learning. In that webpage there > are multiple "a" tags. consider the below code > > Something > > Something These are probaly all forward slashes. > Now i want to read only those href in which there is http. My Current co

Re: Running Virtualenv with a custom distlib?

2017-01-14 Thread dieter
haraldnordg...@gmail.com writes: > I want to do some development on `distlib`, and in the process run the code > via `virtualenv` which has distlib as a dependency. > > That is, not run the process inside a virtualenv, but run virtualenv's code > using a custom dependency. What are the steps I n

Re: timers in threaded application

2017-01-14 Thread dieter
Skip Montanaro writes: > On Fri, Jan 13, 2017 at 3:23 AM, dieter wrote: > >> If what you want to timeout are not I/O operations, you can have a >> look at "threading.Timer". It uses a separate thread, lets it wait >> a specified time and then starts a specified function, unless >> "cancel"ed. >>