Re: Quick Question About Setting Up Pytz

2014-10-20 Thread Ryan Shuell
Ok, thanks everyone.  I just need to spend more time with this stuff.  It's
definitely slow going.

On Sat, Oct 18, 2014 at 11:16 PM, Rustom Mody rustompm...@gmail.com wrote:

 On Sunday, October 19, 2014 8:25:53 AM UTC+5:30, Ben Finney wrote:
  Chris Angelico writes:

   Try learning Python itself, rather than playing around with extension
   packages like pytz.

  To be fair, You need to install 'pytz' to work correctly with date and
  time values is correct advice. If the OP doesn't install it early, then
  works with timestamps, problems are inevitable -- at which point oh, you
  needed to do that first will be inevitable. It's lose-lose.

 Yes

  It's a sad fact that MS Windows has completely useless timezone support,
  and this install a third-party package hurdle is a cost that is paid
  by all people trying to set up Python on MS Windows.

 About MS-lacunae Ive nothing to say

 [Just head over to a debian list like users or vote or.. and witness the
 riot going on over systemd... Hard to believe all's right in Linux-land]

 As for this OP and similar problems -- yes python is in a peculiar
 position.
 Because of 'batteries included' beginners can do powerful stuff.
 However sometimes the batteries need to be supplemented.
 And then there's a problem -- its not clear whether
 - the beginner is having classic noob problems.
   Expert just needs to tweak a command a bit and he's sailing
 - the beginner is in somewhat uncharted (research-needed) land -- charting
   the route between mutually complementary AND competing setup tools

   I believe python must be some sort of record setter in this that
 o pip is a replacement for easy_install
 o you install pip with easy_install

 !!
 --
 https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-20 Thread Mark Lawrence

On 19/10/2014 21:18, Ryan Shuell wrote:

Ok, thanks everyone.  I just need to spend more time with this stuff.
It's definitely slow going.



Please don't top post on this list, thank you.

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


Quick Question About Setting Up Pytz

2014-10-18 Thread ryguy7272
I downloaded PYTZ and put it here.
C:\Python27\pytz

Now, in the cmd window, I typed this:
C:\Python27\pytz\setup.py

A text file opens and nothing else happens.  I thought it was supposed to 
install the PYTZ library.  

What am I doing wrong?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-18 Thread Joel Goldstick
On Sat, Oct 18, 2014 at 3:54 PM, ryguy7272 ryanshu...@gmail.com wrote:
 I downloaded PYTZ and put it here.
 C:\Python27\pytz

 Now, in the cmd window, I typed this:
 C:\Python27\pytz\setup.py

 A text file opens and nothing else happens.  I thought it was supposed to 
 install the PYTZ library.

 What am I doing wrong?
 --
 https://mail.python.org/mailman/listinfo/python-list

have you tried:

python c:\Python27/pytz/setup.py




-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-18 Thread Mark Lawrence

On 18/10/2014 20:54, ryguy7272 wrote:

I downloaded PYTZ and put it here.
C:\Python27\pytz

Now, in the cmd window, I typed this:
C:\Python27\pytz\setup.py

A text file opens and nothing else happens.  I thought it was supposed to 
install the PYTZ library.

What am I doing wrong?



You will end up confusing yourself very quickly if you insist on placing 
files in c:\Python27.  Please put them anywhere except that spot, say in 
downloads or on the desktop.  Let's assume your desktop is here 
c:\Users\ryguy7272\Desktop.  Open a cmd window then


cd c:\Users\ryguy7272\Desktop
setup.py install

should work if and only if you have the file types and file associations 
correctly set, please see 
https://docs.python.org/2/using/windows.html#executing-scripts


Better still take the hard work out of it by getting pip by following 
the instructions here http://pip.readthedocs.org/en/latest/installing.html


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-18 Thread ryguy7272
On Saturday, October 18, 2014 3:55:02 PM UTC-4, ryguy7272 wrote:
 I downloaded PYTZ and put it here.
 
 C:\Python27\pytz
 
 
 
 Now, in the cmd window, I typed this:
 
 C:\Python27\pytz\setup.py
 
 
 
 A text file opens and nothing else happens.  I thought it was supposed to 
 install the PYTZ library.  
 
 
 
 What am I doing wrong?


Thanks Mark. That makes sense.  I moved the folder to the desktop and I just 
tried that:
C:\Users\Ryan\Desktop\pytzsetup.py install

So, when I run it, the setup.py text file opens.  Nothing runs; nothing 
installs.  This makes no sense whatsoever.  If I tell a program to install 
something, it should install something.  It should not pop open a text file.  

I'll probably give it until the end of the year, and start learning Chinese.  
There's other things I want to do with my time.  I know 10 programming 
languages.  I thought it would be fun to learn Python, but after 2 months, I 
still can't run a single line of code.  This language makes no sense 
whatsoever, and it never does anything that you tell it to do.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-18 Thread Chris Angelico
On Sun, Oct 19, 2014 at 1:44 PM, ryguy7272 ryanshu...@gmail.com wrote:
 I'll probably give it until the end of the year, and start learning Chinese.  
 There's other things I want to do with my time.  I know 10 programming 
 languages.  I thought it would be fun to learn Python, but after 2 months, I 
 still can't run a single line of code.  This language makes no sense 
 whatsoever, and it never does anything that you tell it to do.


Try learning Python itself, rather than playing around with extension
packages like pytz. You're having trouble installing add-ons - that's
like saying Computers are total rubbish, I bought this fancy new ISA
card and I can't make it work!. Start with what you have, and worry
about the extra complexities later.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-18 Thread Ben Finney
ryguy7272 ryanshu...@gmail.com writes:

 So, when I run it, the setup.py text file opens. Nothing runs; nothing
 installs.

You have somehow (either manually, or by answering a question to some
program) associated the ‘.py’ suffix with “Open this file in my text
editor”.

That's fine, but it means that if you don't want to edit the file but
instead want to execute it, you need to *explicitly* start Python:

python /whatever/path/to/setup.py install

 This makes no sense whatsoever.

This is an issue with your operating system, so I would hope you can
learn more about that to distinguish what is causing your frustration
:-)

-- 
 \  “I got an answering machine for my phone. Now when someone |
  `\  calls me up and I'm not home, they get a recording of a busy |
_o__)  signal.” —Steven Wright |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-18 Thread Ben Finney
Chris Angelico ros...@gmail.com writes:

 Try learning Python itself, rather than playing around with extension
 packages like pytz.

To be fair, “You need to install ‘pytz’ to work correctly with date and
time values” is correct advice. If the OP doesn't install it early, then
works with timestamps, problems are inevitable — at which point “oh, you
needed to do that first” will be inevitable. It's lose–lose.

It's a sad fact that MS Windows has completely useless timezone support,
and this “install a third-party package” hurdle is a cost that is paid
by all people trying to set up Python on MS Windows.

-- 
 \  “Nothing is more sacred than the facts.” —Sam Harris, _The End |
  `\   of Faith_, 2004 |
_o__)  |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-18 Thread Chris Angelico
On Sun, Oct 19, 2014 at 1:54 PM, Ben Finney ben+pyt...@benfinney.id.au wrote:
 Chris Angelico ros...@gmail.com writes:

 Try learning Python itself, rather than playing around with extension
 packages like pytz.

 To be fair, “You need to install ‘pytz’ to work correctly with date and
 time values” is correct advice. If the OP doesn't install it early, then
 works with timestamps, problems are inevitable — at which point “oh, you
 needed to do that first” will be inevitable. It's lose–lose.

 It's a sad fact that MS Windows has completely useless timezone support,
 and this “install a third-party package” hurdle is a cost that is paid
 by all people trying to set up Python on MS Windows.

That's a rough business to be in... I mean... that's unfortunate.
However, I'd still advise anyone to learn the language itself first,
even if that means a rule like avoid working with international or
historical time. There are plenty of other things Python can do, even
just with a basic Windows installation.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Quick Question About Setting Up Pytz

2014-10-18 Thread Rustom Mody
On Sunday, October 19, 2014 8:25:53 AM UTC+5:30, Ben Finney wrote:
 Chris Angelico writes:

  Try learning Python itself, rather than playing around with extension
  packages like pytz.

 To be fair, You need to install 'pytz' to work correctly with date and
 time values is correct advice. If the OP doesn't install it early, then
 works with timestamps, problems are inevitable -- at which point oh, you
 needed to do that first will be inevitable. It's lose-lose.

Yes

 It's a sad fact that MS Windows has completely useless timezone support,
 and this install a third-party package hurdle is a cost that is paid
 by all people trying to set up Python on MS Windows.

About MS-lacunae Ive nothing to say

[Just head over to a debian list like users or vote or.. and witness the
riot going on over systemd... Hard to believe all's right in Linux-land]

As for this OP and similar problems -- yes python is in a peculiar position.
Because of 'batteries included' beginners can do powerful stuff.
However sometimes the batteries need to be supplemented.
And then there's a problem -- its not clear whether
- the beginner is having classic noob problems.
  Expert just needs to tweak a command a bit and he's sailing
- the beginner is in somewhat uncharted (research-needed) land -- charting
  the route between mutually complementary AND competing setup tools
  
  I believe python must be some sort of record setter in this that
o pip is a replacement for easy_install
o you install pip with easy_install

!!
-- 
https://mail.python.org/mailman/listinfo/python-list