fresh install setup error

2017-04-05 Thread scooter800m
hi i just installed python 3.6.1 32-bit on my windows 7 home premium 64-bit. and i get a file missing error. i reinstalled and used the repairing thing and still no working python 3.6.1. here is the error message that i get: -- https://mail.python.org/mailman/listinfo/python-list

Re: Quick questions about globals and database connections

2017-04-05 Thread Dan Sommers
On Wed, 05 Apr 2017 22:00:46 -0400, DFS wrote: > I have a simple hard-coded check in place before even trying to connect: > > if dbtype not in ('sqlite postgres'): >print "db type must be sqlite or postgres" >exit() That's not doing what you think it is. Hint: What is ('sqlite postgres

Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread eryk sun
On Thu, Apr 6, 2017 at 12:12 AM, MRAB wrote: import os [p for p in os.environ['PATH'].split(';') if 'Python35' in p] > > Remove those references from the PATH environment variable: > os.environ['PATH'] = ';'.join(p for p in os.environ['PATH'].split(';') if 'Python35' not in p)

Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread MRAB
On 2017-04-05 19:46, Colin J. Williams wrote: Successful install reported, but: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Users\CJW>cd\python The system cannot find the path specified. C:\Users\CJW>cd\

Re: Problem installing 3.6.1 AMD64

2017-04-05 Thread eryk sun
On Wed, Apr 5, 2017 at 6:46 PM, Colin J. Williams wrote: >Successful install reported, but: > > Microsoft Windows [Version 10.0.14393] > (c) 2016 Microsoft Corporation. All rights reserved. You're using Windows 10. > C:\Users\CJW>cd\python > The system cannot find the pat

Problem installing 3.6.1 AMD64

2017-04-05 Thread Colin J. Williams
Successful install reported, but: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Users\CJW>cd\python The system cannot find the path specified. C:\Users\CJW>cd\ C:\>path PATH=C:\Program Files\Python35\Scripts\

Re: "pandas" pronunciation

2017-04-05 Thread Gregory Ewing
Neil Cerutti wrote: On 2017-04-03, Jay Braun wrote: I hear people say it like the plural of "panda", and others as "panduss". Is there a correct way? I think it is pronounced like the regular word. The second a is schwa in both the singular and plural. I think the OP is referring to the d

Re: Data exchange between python script and bash script

2017-04-05 Thread Gregory Ewing
Anssi Saari wrote: Bash manual explicitly states command substition (the $(...) structure) replaces the command with the standard *output* of the command. Another problem is your use of '&' here: sensor_data=$(python execute_sensor_process.py) & The '&' causes the whole command, including

Re: Using TKinter to show popular tweets from twitter API (Tweepy)

2017-04-05 Thread Terry Reedy
On 4/5/2017 3:48 PM, uni...@gmail.com wrote: I'm building a python app where it should show the popular tweets > in boxes in line with each other using TKinter. By 'boxes' do you mean a visible border for Label widgets? If so, you have to configure one. You don't below. > The problem is t

Re: How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread Skip Montanaro
David> This is something very different. David> New thinking and methods are needed. David> Try to click on the following link David> European Commission : CORDIS : Search : Results page Hopefully not too very different. :-) Looks to m

Re: Request Help With pkexec

2017-04-05 Thread Wildman via Python-list
On Mon, 03 Apr 2017 14:29:56 -0500, Wildman wrote: > Python 3.4.2 > Tkinter 8.6 > GCC 4.9.1 on Linux > > I am working on a gui program using Tkinter. The program will > have a feature to restart as root. I am testing different gui > front-ends from a terminal to raise privileges and I want to >

Re: Quick questions about globals and database connections

2017-04-05 Thread Dan Sommers
On Wed, 05 Apr 2017 14:56:12 -0400, DFS wrote: > I split the database connection code and settings into a module, so > the connection and setting values are available to other code modules > I have. Good work. > dbset.py > - > import sqlite3, psyco

Using TKinter to show popular tweets from twitter API (Tweepy)

2017-04-05 Thread unihno
hello I'm building a python app where it should show the popular tweets in boxex in line with each other using TKinter. The problem is that the labels of the tweets are showing at the bottom of each other and i want them to be in boxes like this: | | | | | | | | -

Re: Python 3.6 printing crashing on OS X 10.12.4

2017-04-05 Thread Python
Le 05/04/2017 à 20:14, Ray Cote a écrit : Hello: Python 3.6 crashing when trying to print from the environment. $ python Python 3.6.1 (default, Mar 22 2017, 15:53:21) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more i

Re: How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread David Shi via Python-list
Hi, Skip, This is something very different. New thinking and methods are needed. Try to click on the following link European Commission : CORDIS : Search : Results page | | | | | | | | | | | European Commission : CORDIS : Search : Results page European Commission | | | | Is th

Python 3.6 printing crashing on OS X 10.12.4

2017-04-05 Thread Ray Cote
Hello: Python 3.6 crashing when trying to print from the environment. $ python Python 3.6.1 (default, Mar 22 2017, 15:53:21) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print("hello") Python(53390

Re: How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread Peter Otten
David Shi via Python-list wrote: > I tried the following codes: > import urllib2response = > urllib2.urlopen('http://cordis.europa.eu/search/result_en?q=uk&format=csv')myCSV > = response.read() myFile = pd.read_csv(myCSV) > > but, it did not work well. > Can any one help? Looks like read_csv()

Re: How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread Skip Montanaro
I'm not positive, but try passing response to read_csv() instead of reading the bytes yourself. Skip On Apr 5, 2017 10:38 AM, "David Shi via Python-list" wrote: > > > I tried the following codes: > import urllib2response = urllib2.urlopen('http://cordis.europa.eu/search/ > result_en?q=uk&format

Re: How to make use of .egg files?

2017-04-05 Thread breamoreboy
On Wednesday, April 5, 2017 at 2:00:41 PM UTC+1, David Shi wrote: > Can anyone explain please. > Regards. > David Egg files are old, wheels are the new thing http://pythonwheels.com/ Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Quick questions about globals and database connections

2017-04-05 Thread Dan Sommers
On Wed, 05 Apr 2017 10:54:29 -0400, DFS wrote: > I have identical databases in sqlite and postgres. I want to run the > same code against them, but am having a small issue. > > Current code below throws the dreaded: > > NameError: global name 'db' is not defined > > on line 12 > > How do I f

How to capture a CSV file and read it into a Pandas Dataframe?

2017-04-05 Thread David Shi via Python-list
I tried the following codes: import urllib2response = urllib2.urlopen('http://cordis.europa.eu/search/result_en?q=uk&format=csv')myCSV = response.read() myFile = pd.read_csv(myCSV) but, it did not work well. Can any one help? Regards. David -- https://mail.python.org/mailman/listinfo/python-l

Re: Quick questions about globals and database connections

2017-04-05 Thread John Gordon
In DFS writes: > I have identical databases in sqlite and postgres. I want to run the > same code against them, but am having a small issue. > Current code below throws the dreaded: > NameError: global name 'db' is not defined > on line 12 > How do I fix it? I want to keep dbconnect() as

Re: Quick questions about globals and database connections

2017-04-05 Thread Joel Goldstick
On Wed, Apr 5, 2017 at 11:09 AM, Python wrote: > Le 05/04/2017 à 16:54, DFS a écrit : >> >> I have identical databases in sqlite and postgres. I want to run the >> same code against them, but am having a small issue. >> >> Current code below throws the dreaded: >> >> NameError: global name 'db' i

Re: Quick questions about globals and database connections

2017-04-05 Thread Python
Le 05/04/2017 à 16:54, DFS a écrit : I have identical databases in sqlite and postgres. I want to run the same code against them, but am having a small issue. Current code below throws the dreaded: NameError: global name 'db' is not defined on line 12 How do I fix it? I want to keep dbconne

Re: "pandas" pronunciation

2017-04-05 Thread Neil Cerutti
On 2017-04-03, Jay Braun wrote: > I hear people say it like the plural of "panda", and others as > "panduss". Is there a correct way? I think it is pronounced like the regular word. The second a is schwa in both the singular and plural. -- Neil Cerutti -- https://mail.python.org/mailman/list

Re: How to make use of .egg files?

2017-04-05 Thread Ralf Hildebrandt
* David Shi via Python-list : > Can anyone explain please. http://stackoverflow.com/questions/2051192/what-is-a-python-egg -- Ralf Hildebrandt Charite Universitätsmedizin Berlin ralf.hildebra...@charite.deCampus Benjamin Franklin https://www.charite.de Hinde

How to make use of .egg files?

2017-04-05 Thread David Shi via Python-list
Can anyone explain please. Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: Data exchange between python script and bash script

2017-04-05 Thread Anssi Saari
venkatachalam...@gmail.com writes: > For example, the data is printed in > execute_sensor_process.py as follows: > > print >>sys.stderr,sens_data > > By printing the data onto sys.stderr and assigning a return variable in the > bash, I am expecting the data to be assigned. > > But this is not hap

Re: Does automatic golden master unittest generation exist/or is it feasible?

2017-04-05 Thread dieter
fle...@gmail.com writes: > I have a really large and mature codebase in py2, but with no test or > documentation. > > To resolve this I just had a simple idea to automatically generate tests and > this is how: > > 1. Have a decorator that logs all arguments and return values > > 2. Put them in a

Re: Data transmission from Python script to bash script

2017-04-05 Thread dieter
venkatachalam...@gmail.com writes: > ... > I am writing a python code for processing a data obtained from a sensor. The > data from sensor is obtained by executing a python script. The data obtained > should be further given to another python module where the received data is > used for adjustin