473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

compileall binaries don't run!?

Hi,

I'm trying to use compileall to make pyc files from py files (without
having to execute them at the same time).

This is the first time I've used compileall, so maybe I've done
something silly.

I run it like this:

python /usr/lib/python2.2/compileall.py /home/me/mySourceDir

And the output looks fine, resulting in a bunch of pyc files.

Then I try running the pyc file eg.:

/home/me/mySourceDir/doodad.pyc

But get the following error:
bash: ./doodad.pyc: cannot execute binary file

I notice that when I execute doodad.py, no pyc file is generated. Does
this mean that Python can only make pyc files from some BUT NOT ALL py
files? Is this my problem?

I've ensured file access permissions are correct.

Thanks,
Dan.
Jul 18 '05 #1
1 1337
| ...
| And the output looks fine, resulting in a bunch of pyc files.
|
| Then I try running the pyc file eg.:
|
| /home/me/mySourceDir/doodad.pyc
|
| But get the following error:
| bash: ./doodad.pyc: cannot execute binary file

Daniel ....

As the .pyc files are not stand-alone executables,
you might try passing the path of the compiled file
to the Python interpreter ....

python /home/me/mySourceDir/doodad.pyc

--
Cousin Stanley
Human Being
Phoenix, Arizona

Jul 18 '05 #2

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

Similar topics

0
by: Marco Herrn | last post by:
Hi, I tried to install a package under debian, where in the postinstall phase some python scripts are called. Then I got the error "Sorry invalid mode: U". I looked what this script does and it...
1
by: Swaroop C H | last post by:
Is there a Python equivalent of Perl's IPC::Run module http://search.cpan.org/dist/IPC-Run/lib/IPC/Run.pm ] ? Thanks! -- Swaroop C H Blog: http://www.swaroopch.info Book:...
2
by: adamg | last post by:
Hello My native distribution is Linux Debian. I have written the C++ multithreaded application (using ptypes libs). After compilation on debian everything works ok (6 threads workinng) but...
1
by: Tom Hebbron | last post by:
Hi group, I've installed the win32 binary version of the 8.0beta1 using the PGInstaller (http://pgfoundry.org/projects/pginstaller). I've also downloaded the source to compile on our linux boxes...
4
by: robert | last post by:
When i freeze a python app (simple - no strange sys calls) for x86 Linux, does this stuff run well also on x86 FreeBSD? Robert
4
by: gz | last post by:
no, I don't have them... I need them :) I'd like to thank Giovanni Bajo for providing binaries for the various package dependencies, and geting me going with pyopengl. Unfortunately I only...
14
by: Robin Becker | last post by:
A user reports problems with one of our extensions when running the intel compiled extension on ppc and vice versa. He is building the extension as a universal binary. Although the intel compiled...
6
by: jc | last post by:
I have an asp.net 2.0 website with vb.net classes. I can run that website with no problems from vs.net and from an iis 6.0 server. I deploy using a standard copying of files. I noticed a similar...
5
by: tararot2 | last post by:
Hi, I have to homologate my binaries so I need them to be byte-per-byte identical after each compilation (if the source code is the same, logically). Does anybody know how to achieve that with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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
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
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,...
0
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...

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.