Re: [Tutor] Need some help with setuptools for my project.

2015-04-08 Thread Alan Gauld
On 08/04/15 07:28, Anubhav Yadav wrote: really helped me. Thank you everyone again for helping me out. I would bring the thread alive again if I am stuck somewhere. Please don't! If it's a new problem start a new thread with new subject line. 1) The old thread will be miles back in the histor

Re: [Tutor] Need some help with setuptools for my project.

2015-04-08 Thread Anubhav Yadav
> Instead, I would advocate making a virtualenv iin your home directory into > which you install your packages. You can make as many as you like. > > After you've made a virtualenv, running the "pip" it supplies will install > into the virtualenv. Much safer, and you can do it all as yourself. > T

Re: [Tutor] Need some help with setuptools for my project.

2015-04-08 Thread Anubhav Yadav
Note the ":" before main, not ".". > That's it, that fixed the problem. Now I have a scorer binary. Thanks. A couple of more questions! 1) If I have install_requires in setup.py, then do I need requirements.txt? 2) Can I run ``python setup.py install`` or ``python setup.py develop`` with root pri

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Cameron Simpson
On 08Apr2015 08:53, Anubhav Yadav wrote: Note the ":" before main, not ".". That's it, that fixed the problem. Now I have a scorer binary. No, you have a "scorer" executable which is a script. A "binary" is a loadable machine code file. Thanks. A couple of more questions! 1) If I have i

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Cameron Simpson
On 07Apr2015 21:20, Anubhav Yadav wrote: I apologise, my method was for distutils, not setuptools. I get the two muddled. The mechanism for creating a console script like you describe with setuptools is described here[1]. The post you linked also has a section on it under the heading ‘Executabl

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Anubhav Yadav
I apologise, my method was for distutils, not setuptools. I get the two > muddled. The mechanism for creating a console script like you describe with > setuptools is described here[1]. The post you linked also has a section on > it under the heading ‘Executable scripts’. It allows for the multiple

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Anubhav Yadav
> > On your GitHub repository, you have a single file, scorer.py. I think that > this is a better approach in this instance than the multiple file approach > you have now taken (see below). > I am sorry I linked the master repository. See the structureCode branch[1]. > > > setuptools says that my

Re: [Tutor] Need some help with setuptools for my project.

2015-04-07 Thread Anubhav Yadav
You might consider packaging your project as a script so that it can be run > by the user from the command line. See: > https://docs.python.org/2/distutils/setupscript.html#installing-scripts > > Provided that you add something like #!/usr/bin/python to the top of > scorer.py, 'python setup.py inst

Re: [Tutor] Need some help with setuptools for my project.

2015-04-06 Thread Dylan Evans
On 6 April 2015 at 18:56:57, tutor-requ...@python.org (tutor-requ...@python.org) wrote: > Any help would be greatly appreciated. I apologize if my question does not > belongs to this mailing list. My project is hosted on github[1]. > > Thank you. > > [1] https://github.com/neo1691/scorer.py Y

Re: [Tutor] Need some help with setuptools for my project.

2015-04-06 Thread Alan Gauld
On 06/04/15 11:46, Anubhav Yadav wrote: Any help would be greatly appreciated. I apologize if my question does not belongs to this mailing list. My project is hosted on github[1]. Using the setup tools and creating/installing projects seems close enough to standard library functions that its o

[Tutor] Need some help with setuptools for my project.

2015-04-06 Thread Anubhav Yadav
Hi, I am new to python and still trying to get my concepts clear with respect to standard practices in python. I wrote a script which fetches the latest cricket scores from the internet and sends desktop notifications using pynotify. The project, initially supported both python2 as well as python3

Re: [Tutor] Need some help

2011-05-07 Thread Alan Gauld
"Aaron Brown" wrote Here is the code I have, and the error. Actually you have a lot of errors! I don't understand the TUPLE problem. As Steven pointed out you cannot assign to a tuple once it has vbeen created. You can only create a new tuple. If you want to change the collection use a l

Re: [Tutor] Need some help

2011-05-07 Thread Steven D'Aprano
Aaron Brown wrote: Here is the code I have, and the error.I don't understand the TUPLE problem. Can someone explain. The error you get is: TypeError: 'tuple' object does not support item assignment This tells you that tuples are immutable (fixed) objects. You cannot do this: >>> t = (1,

[Tutor] Need some help

2011-05-07 Thread Aaron Brown
Here is the code I have, and the error.I don't understand the TUPLE problem. Can someone explain. #Main Program def main(): notGreenCost = (12,float) goneGreenCost = (12, float) savings = (12, float) months = "January ","February","March ","April ","May ","June ","July ","August "

Re: [Tutor] Need some help on output

2011-03-04 Thread David Hutto
That depends on what your motivation is for learning python. I'd start with a few hello world tutorial online. like print "hello world"/ python 3.0 print("hello world"), and on that not, decide on the version you want to use on your system first. ___ Tuto

Re: [Tutor] Need some help on output

2011-03-04 Thread Gaurav Malhotra
I am beginner...I want to know best book to start with when it comes with python programming ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Need some help on output

2011-03-03 Thread Becky Mcquilling
Thanks, that helped. I took a second look and realized where I had tried calling the .strip() method was wrong. Appreciate the pointer. Becky On Thu, Mar 3, 2011 at 5:37 PM, Kushal Kumaran < kushal.kumaran+pyt...@gmail.com> wrote: > On Fri, Mar 4, 2011 at 6:48 AM, Becky Mcquilling > wrote: >

Re: [Tutor] Need some help on output

2011-03-03 Thread Kushal Kumaran
On Fri, Mar 4, 2011 at 6:48 AM, Becky Mcquilling wrote: > I am creating a dictionary by parsing a text file. > > The code is below: > backup_servers = {} > fo = open('c:/test/backup_shares.txt') > for line in fo: >   backup_server = line.split(',') >   backup_servers[backup_server[0]]=backup_serve

[Tutor] Need some help on output

2011-03-03 Thread Becky Mcquilling
I am creating a dictionary by parsing a text file. The code is below: backup_servers = {} fo = open('c:/test/backup_shares.txt') for line in fo: backup_server = line.split(',') backup_servers[backup_server[0]]=backup_server[1] for i, v in backup_servers.items(): backup_shares = i archive

Re: [Tutor] Need some help on "How to Think Like a Computer Scientist: Learning with Python" exercise

2010-03-30 Thread Lie Ryan
On 03/31/2010 04:00 AM, Yahoo Mail wrote: > Hello All, > > I am competely new in Python programming. When i reading Chapter 4 in > "How to Think Like a Computer Scientist: Learning with Python" , > I am stuck in the exercise 4. > > Here is the question: > > Enter the following expressions int

[Tutor] Need some help on "How to Think Like a Computer Scientist: Learning with Python" exercise

2010-03-30 Thread Yahoo Mail
Hello All, I am competely new in Python programming. When i reading Chapter 4 in "How to Think Like a Computer Scientist: Learning with Python" , I am stuck in the exercise 4. Here is the question: Enter the following expressions into the Python shell: 1. True or False 2. True and False 3. not

Re: [Tutor] Need some help with wxPython...

2007-09-04 Thread Alan Gauld
"Trey Keown" <[EMAIL PROTECTED]> wrote > know if anyone knows of a good example of a simple wxPython text > editor wxPython comes with examples of text editors etc. It uses the amazing Scinitill widget upon which Pythonwin and Scite are both based. But look at the Py package which includes PyC

[Tutor] Need some help with wxPython...

2007-09-03 Thread Trey Keown
Hey all, I'm starting to drift away from Tkinter and enter the realm of wxPython. I've recently written a simple text editor in Tkinter, and I would like to know if anyone knows of a good example of a simple wxPython text editor (with the lines properly indented!!!), because all the examples I can

Re: [Tutor] Need Some Help

2007-08-27 Thread Michael
Hi I have just taught myself some Python and among my resources were... http://www.ibiblio.org/obp/thinkCSpy/ - I worked my way through over half of this online and downloadable manual http://www.livewires.org.uk/python/index.html - This course is good, I am currently working through this

Re: [Tutor] Need Some Help

2007-08-22 Thread Carroll, Barry
> -Original Message- > Date: Wed, 22 Aug 2007 02:23:25 -0700 > From: chinni <[EMAIL PROTECTED]> > Subject: [Tutor] Need Some Help > To: tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1&quo

Re: [Tutor] Need Some Help

2007-08-22 Thread Kent Johnson
chinni wrote: > Hi All, > > I am new to python.i need some help about python.i want to learn python > so plz guide me from where can i start.so,that i can learn and under > stand quickly. Read one of the tutorials here: http://wiki.python.org/moin/BeginnersGuide/NonProgrammers Ask questions on

[Tutor] Need Some Help

2007-08-22 Thread chinni
Hi All, I am new to python.i need some help about python.i want to learn python so plz guide me from where can i start.so,that i can learn and under stand quickly. -- Best Regards, M.Srikanth Kumar, ___ Tutor maillist - Tutor@python.org http://mail.p

[Tutor] Need some help about pywin32.

2007-08-18 Thread pierre cutellic
Hi, I'm actually working with many softwares for 3D-CAD-modeling, like Blender and Rhino, and i have heard about pywin32 and makepy which can define Rhinoscript command but really don't know how to do. This is something which could be really usefull (and a super saving-time tip!!) for me to command

Re: [Tutor] need some help with ascii hex

2005-08-18 Thread nephish
Alan G wrote: > Hi Francois, > >> I'm not a Tutor but I found this wich could help you: > > > If you are on the tutor list you are a tutor. We don't have any division > of role, everyone helps and everuone can ask for help. We are all equals. > >> To convert character data to integers, you can use

Re: [Tutor] need some help with ascii hex

2005-08-18 Thread francois schnell
On 19/08/05, Alan G <[EMAIL PROTECTED]> wrote: If you are on the tutor list you are a tutor. We don't have anydivisionof role, everyone helps and everuone can ask for help Ok I wasn't sure about the [Tutor] stuff  :) . We are allequals. Well, actually  this is not true:  it is well  known here in

Re: [Tutor] need some help with ascii hex

2005-08-18 Thread Alan G
Hi Francois, > I'm not a Tutor but I found this wich could help you: If you are on the tutor list you are a tutor. We don't have any division of role, everyone helps and everuone can ask for help. We are all equals. > To convert character data to integers, you can use the ord() > function, and

Re: [Tutor] need some help with ascii hex

2005-08-18 Thread francois schnell
Hello, I'm not a Tutor but I found this wich could help you: Source: http://mail.python.org/pipermail/tutor/2003-March/021123.html To convert character data to integers, you can use the ord()function, and to convert a number to hex notation you can use thehex() function.Example:>>> data ="" "

[Tutor] need some help with ascii hex

2005-08-18 Thread nephish
Hey there, i am using the serial module and trying to get some info over an RS232 port. Seems to be comming in ok, but when i print it out, its in ASCII instead of hex. is there a way to have python read serial in hex bytes instead of ASCII ? thanks. shawn ___