By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,814 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,814 IT Pros & Developers. It's quick & easy.

Can't import datetime, random...and other some modules when run script on board

P: 5
I used environment on Fedora core 6 and tried with python 2.5.2 package on board chip mips and platform 2.6 is ok (although when "make" still have error:

"/bin/sh: line 2: ./python: cannot execute binary file
make: *** [sharedmods] Error 126 "

but I can run it on this board ( GCC 4.0.4, binutils2.17, uClibc0.9.28.3))."

I don't understand why I can't import modules : time, random, etc, but I can import os module and some thing are available. Please explain for me about it, and how to set up environment variable, to import modules for using it in running on board :
./python my_script
my_script : in this script I need import and use modules.
Because I'm a newbie about python , so I will have some stunned questions. If it happens, please bypass for me.

Thank you so much
Mar 21 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.