running .py files on Linux

Tingting HAN hihighsky at gmail.com
Tue Apr 27 06:54:28 EDT 2010


2010/4/27 Tingting HAN <hihighsky at gmail.com>

> I did as you say:
> hantingting at tityro:~/Downloads$ ls
> hdfview_install_linux32.bin  PythonPyTables  triMC3D  triMC3D_v1.0.0.tar.gz
> hantingting at tityro:~/Downloads$ md5sum triMC3D_v1.0.0.tar.gz > triMC3D.md5
> hantingting at tityro:~/Downloads$ ls
> hdfview_install_linux32.bin  triMC3D      triMC3D_v1.0.0.tar.gz
> PythonPyTables               triMC3D.md5
> hantingting at tityro:~/Downloads$ md5sum -c triMC3D.md5
> triMC3D_v1.0.0.tar.gz: OK
> hantingting at tityro:~/Downloads$ tar zxvf triMC3D_v1.0.0.tar.gz
>


> So as it shows OK, the package is not corrupt. I extracted it and ran the
> .py files again, but there is still the same error as before:
>


> hantingting at tityro:~/Downloads/triMC3D-1.0.0/python$ python
>
 gentest_empty.py
>
> Traceback (most recent call last):
>   File "gentest_empty.py", line 8, in <module>
>
>     from tables import *
>   File "/usr/lib/python2.6/dist-packages/tables/__init__.py", line 76, in
> <module>
>     from tables.file import File, openFile, copyFile
>   File "/usr/lib/python2.6/dist-packages/tables/file.py", line 44, in
> <module>
>     from tables import hdf5Extension
>   File "hdf5Extension.pyx", line 11, in hdf5Extension
> ImportError: No module named utilsExtension
>


> I attach two .py files from the downloaded package in this email. Could you
> please try running them and see what is the problem?
>
> 2010/4/26 alex goretoy <agoretoy at gmail.com>
>
> make sure the tar, zip or package you downloaded isn't corrupt. verify it
>> with a md5sum and then extract it. just a thought.
>> Thank you,
>> -Alex Goretoy
>> http://launchpad.net/~a1g
>>
>>
>>   On Mon, Apr 26, 2010 at 11:05 AM, Tingting HAN <hihighsky at gmail.com>wrote:
>>
>>>   Dear Officer,
>>> I downloaded a C code packet which contains many .py files. When I try to
>>> run these.py files on my computer with Linux system, for every .py file the
>>> following error occurs:
>>>
>>> hantingting at tityro:~/Downloads/triMC3D/python$ python
>>>
>>> Python 2.6.4 (r264:75706, Dec  7 2009, 18:43:55)
>>>
>>> [GCC 4.4.1] on linux2
>>>
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> >>>
>>>
>>> [4]+  Stopped                 python
>>>
>>> hantingting at tityro:~/Downloads/triMC3D/python$ python test_detector.py
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "test_detector.py", line 9, in <module>
>>>
>>>     from tables import *
>>>
>>>   File "/usr/lib/python2.6/dist-packages/tables/__init__.py", line 76,
>>> in <module>
>>>
>>>     from tables.file import File, openFile, copyFile
>>>
>>>   File "/usr/lib/python2.6/dist-packages/tables/file.py", line 44, in
>>> <module>
>>>
>>>     from tables import hdf5Extension
>>>
>>>   File "hdf5Extension.pyx", line 11, in hdf5Extension
>>>
>>> ImportError: No module named utilsExtension
>>> I downloaded the .
>>>
>>> I sincerely hope you could give me some advice to solve the problem.
>>>
>>> --
>>> Best regards,
>>> HAN Tingting
>>>
>>> ETSI de Telecomunicación - office C-203-1
>>> Dpto. Ingeniería Electrónica
>>> Ciudad Universitaria s/n
>>> Madrid 28040,  Spain
>>> TEL: +34 65 232 4340
>>>
>>>
>>> --
>>> http://mail.python.org/mailman/listinfo/python-list
>>>
>>>
>>
>
>
> --
> Best regards,
> HAN Tingting
>
> ETSI de Telecomunicación - office C-203-1
> Dpto. Ingeniería Electrónica
> Ciudad Universitaria s/n
> Madrid 28040,  Spain
> TEL: +34 65 232 4340
> Department of Photoelectric Information Engineering
> Zhejiang University
> Hangzhou 310027, P. R.China
>
>


-- 
Best regards,
HAN Tingting

ETSI de Telecomunicación - office C-203-1
Dpto. Ingeniería Electrónica
Ciudad Universitaria s/n
Madrid 28040,  Spain
TEL: +34 65 232 4340
Department of Photoelectric Information Engineering
Zhejiang University
Hangzhou 310027, P. R.China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100427/ceebd684/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configuration.py
Type: application/octet-stream
Size: 1510 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20100427/ceebd684/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gentest_empty.py
Type: application/octet-stream
Size: 2158 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20100427/ceebd684/attachment-0001.obj>


More information about the Python-list mailing list