472,964 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,964 software developers and data experts.

NumTut corrupted

No matter which site I download it from,
NumTut.tgz appears to be corrupted.
Anyone else having this problem?

Thanks.
--
r.e.s.
Jul 18 '05 #1
3 2171
"r.e.s." wrote:

No matter which site I download it from,
NumTut.tgz appears to be corrupted.
Anyone else having this problem?


Always describe the symptoms of a problem... what precise
behaviour (i.e. what extraction program, platform etc.) are
you encountering that leads you to believe it's corrupted?
Jul 18 '05 #2
"Peter Hansen" wrote ...
"r.e.s." wrote:

No matter which site I download it from,
NumTut.tgz appears to be corrupted.
Anyone else having this problem?


Always describe the symptoms of a problem... what precise
behaviour (i.e. what extraction program, platform etc.) are
you encountering that leads you to believe it's corrupted?


Quite right, sorry.

I resolved the problem, but will explain what happened
in case others encounter something similar ...

The file called NumTut.tgz at the SourceForge.net
download server is, when downloaded, automatically
receiving the wrong file extension by winXP .
(WinZip then produces a file that looks like a .py
file corrupted by lots of 'unprintable' characters.)

That is, clicking NumTut.tgz for download results in
"You are requesting file: /numpy/NumTut.tgz
Please select a mirror"

but the winXP File Download window that comes up says
File name: NumTut.gz (sic)
File type: WinZip File

If renamed back to .tgz, WinZip decompresses it
properly, and I see that it's actually a number of
files which are python-importable when placed in
the folder ...\Numerical\NumTut.

(Also for other files from that site, I've sometimes
had to re-download when the file is found not to be
in recognizable format. This problem seems to occur
only for files downloaded from SourceForge, btw.)

=====
A related python question, if I may ...

With the various .py files in \Numerical\NumTut,
*none* of which are named NumTut.py, why does this
work? ...
from NumTut import *


Surely import doesn't use the folder name? As you
can see, I'm a beginner at python.

Thanks.
--
r.e.s.
Jul 18 '05 #3
On Tue, 2003-12-02 at 04:34, r.e.s. wrote:
"Peter Hansen" wrote ...
"r.e.s." wrote:

No matter which site I download it from,
NumTut.tgz appears to be corrupted.
Anyone else having this problem?


Always describe the symptoms of a problem... what precise
behaviour (i.e. what extraction program, platform etc.) are
you encountering that leads you to believe it's corrupted?


Quite right, sorry.

I resolved the problem, but will explain what happened
in case others encounter something similar ...

The file called NumTut.tgz at the SourceForge.net
download server is, when downloaded, automatically
receiving the wrong file extension by winXP .
(WinZip then produces a file that looks like a .py
file corrupted by lots of 'unprintable' characters.)

That is, clicking NumTut.tgz for download results in
"You are requesting file: /numpy/NumTut.tgz
Please select a mirror"

but the winXP File Download window that comes up says
File name: NumTut.gz (sic)
File type: WinZip File

If renamed back to .tgz, WinZip decompresses it
properly, and I see that it's actually a number of
files which are python-importable when placed in
the folder ...\Numerical\NumTut.

(Also for other files from that site, I've sometimes
had to re-download when the file is found not to be
in recognizable format. This problem seems to occur
only for files downloaded from SourceForge, btw.)

=====
A related python question, if I may ...

With the various .py files in \Numerical\NumTut,
*none* of which are named NumTut.py, why does this
work? ...
>>> from NumTut import *


Surely import doesn't use the folder name? As you
can see, I'm a beginner at python.


Yes it is using the folder name. In this case there would be a file
named __init__.py inside the NumTut folder and the existance of this
file makes that folder a python package. For more on python packages
(and more):

http://www.python.org/doc/current/tu...00000000000000

(Above link may get wrapped by some news/mail readers)

Regards
Martin

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kevin MacKenzie | last post by:
I am trying to download and install the NumTut package for Python 2.3 on MAC OS X. When installing Numeric using the MACPython IDE package manager does not install NumTut along with it. I am...
1
by: WKC | last post by:
Recently, one of our database's mdf and ldf was corrupted. We were able to bring back the database with the capability of importing and querying the data. However, the data is not the full list. ...
0
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages...
3
by: Bob Hynes | last post by:
Hi All, Does anyone know of a place where a corrupted mdb(front-end) can be sent and have that place be able to tell me what got corrupted within the db? Here's the issue; All pc's are WindowsNT...
28
by: Lee Rouse | last post by:
Hello all, This is going to be a rather lengthy "question". I have an Access 2k database, separated front end/back end. Front end copies are on about 30 workstations and used frequently during...
3
by: Colleyville Alan | last post by:
I posted the other day that the Incremental Search box that I had been using was no longer working properly. When I checked the code against an older version that was working properly, the changes...
3
by: Leinad Kong | last post by:
I'm using Access 2002, as front-end and back-end as well: 1) I faced database corrupted problems, when more than 1 user edit concurrently. I'm using All-records Locking, and open-exclusively as...
1
by: Gary Wessle | last post by:
Hi not sure if this would be the right place to ask this question! using the shell prompt :~$ python Python 2.3.5 (#2, Mar 6 2006, 10:12:24) on linux2 Type "help", "copyright", "credits" or...
9
by: advance scout | last post by:
HELP! My database is suddenly corrupted. My computer was acting funny (very sluggish) and was shut down. Access had been already been closed down but computer was acting very slow , so perhaps it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.