473,503 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2202
"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
1175
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
6651
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
1776
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
3146
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
4016
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
1835
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
4061
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
1567
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
2380
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...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.