[Tutor] How to unpack python-dateutil-2.0.tar.gz
Richard D. Moores
rdmoores at gmail.com
Fri Oct 19 05:30:45 CEST 2012
On Thu, Oct 18, 2012 at 7:17 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> On 19/10/12 12:16, Richard D. Moores wrote:
>> Running the example at
>> with Python 2.3.2 64-bit,
> Python TWO POINT THREE??? :-)
> That's like, a million years old. I think you mean three point two.
>> The importing goes OK, it seems, but:
>> Python 3.2.3 (default, Apr 11 2012, 07:12:16) [MSC v.1500 64 bit (AMD64)]
>> Type "help", "copyright", "credits" or "license" for more information.
>> [evaluate untitled-1.py]
> What does that mean?
> What's "evaluate" in this context? What's inside "untitled.py"? Using my IDE, Wing 4.1, I opened a new file and made an exact copy-and-paste into it, and accepted the default filename, "untitled.py". "evaluate" is one of the ways of running a script in Wing, "Evaluate file in Python shell".
I already said:
Running the example at
>> Traceback (most recent call last):
>> File "C:\Program Files (x86)\Wing IDE
>> 4.1\src\debug\tserver\_sandbox.py", line 9, in<module>
>> File "c:\Python32\Lib\site-packages\dateutil\parser.py", line 720, in
>> return DEFAULTPARSER.parse(timestr, **kwargs)
>> File "c:\Python32\Lib\site-packages\dateutil\parser.py", line 310, in
>> raise ValueError("unknown string format")
>> builtins.ValueError: unknown string format
> I note that text just before the demo code states:
> you want to get today's date out of the "date" unix system command.
> [end quote]
I missed that. It's the first clue I could find anywhere that the
download for 3.x (x > 0) is only for a "Unix or a Unix-compatible
system like Linux".
> Are you running Unix or a Unix-compatible system like Linux?
No. See my original post.
> Here's what
> outputs under Unix/Linux:
> [steve at ando ~]$ date
> Fri Oct 19 13:16:40 EST 2012
> What does it output on your computer?
I showed you everything already.
More information about the Tutor