« first day (774 days earlier)      last day (4163 days later) » 

user611726
4:41 AM
Hey guys, if I'm getting the ImportError "wrong ELF class: ELFCLASS64", it means I'm trying to use a 64-bit library on a 32-bit python, right?
 
0
Q: Error with a python package: "wrong ELF class: ELFCLASS64" (Compiling in 32 bit on 64bit system?)

TheClueI'm trying to easy_install a python package called "lxml" on my shared server. Howeaver, i had to do that locally, as i cannot fork processes on my online server. Both my prod and dev server are ubuntu64, but only my offline dev had python-64, while my prod has 32bit. Python versione is 2.6.6....

 
user611726
Got it. Any idea why a simple "make" on my 32-bit computer would create a 64-bit library? Is there some parameter I need to configure in my makefile to specify 32-bit?
 
user611726
Thanks for the link by the way.
 
Hi guys, i am writing a python script for command line execution of an application.
I need,
1. Python script to exe, ubuntu linux executable also MAC executable
2. Is there runtime environment available for python in windows
 
@Slater Sorry, can't help you there... A beginner myself... haven't explored Python enough to know such things
 
4:55 AM
@Slater are you certain the make created the 64-bit library?
hello Ultimate Enabler
 
Heya It'sYourFault
sticking to this name I see... not changing it to Zod?
 
lol.....yup
ZOD is my github name :)
@Britto according to this link
 
user611726
@It'sYourFault Yeah, the make created an .egg file in a new directory.
 
there are different Python interpreters for the OSes
 
@Bob Bob, the necessity is not to obfuscate the code so that they must not be hacked by higher level programmers, but to just hide from lower level users from altering the code unknowingly. Is there any run time environment module available for python in Windows or linux or mac??
 
4:59 AM
you can either compile your script on 3 different machines, or let the users download both the scripts and run it via the interpreter themselves :)
okay....you are likely using a 64-bit package somewhere
 
@It'sYourFault finally joined Github, eh? made anything yet?
 
check your makefile , and see if there's anything library that uses 64-bit
lol.....:)
@ShyamK yup.....finally made the leap; mainly to keep my Android tutorial projects there :)
 
and started to learn Droid too... that is a big leap... :)
 
well....it's Java
I figured, the faster I start on it, the faster I make money off it :)
 
oooh... shake that money maker... :P
 
5:08 AM
@It'sYourFault The link has fully packaged interpreters right. All these install python in the machine. i want a way to execute my python script without python being installed? So i asked is there tools to convert python script to exe and linux executable
 
lol.....still got a loooong way to go
you have a faster shot making money faster on Android than on Java SE
@Britto lol.....AFAIK..........python doesn't have executable files; a Python interpreter must exist on the system before any Python script can be run
 
python can make .exe files... no?
 
nope.....AFAIK
 
and so I'm guessing the same would apply for each of the OSes
 
it's an interpreted language
 
5:14 AM
@It'sYourFault ok. AFAIK... Python scripts can be converted into windows exe using py2exe tool. Similarly i am asking if there any tool that would convert python scripts to Ubuntu Linux executable file format. Now kindly let me when ever find articles related to it
 
28
Q: How can I make an EXE file from a Python program?

mintyI've used several modules to make EXEs for Python, but I'm not sure if I'm doing it right. How should I go about this, and why? Please base your answers on personal experience, and provide references where necessary.

@It'sYourFault ^ see
 
okay.....that is a program to convert python programs into executable files
 
@ShyamK Thank u . I will do a feasibility study and let u know :)
 
it's not an inbuilt python program
 
@Britto you're welcome :)
@It'sYourFault well... yes... not inbuilt
 
5:18 AM
so, I'm guessing that what it does is wrap some program around the Python script, compile it, and when the file is clicked, the program calls the Python script within, and runs it
 
user611726
From the py2exe website: "py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation."
So he should be good without a python installation.
 
@It'sYourFault most probably
 
@Slater yeah.....but that is an external tool, not an inbuilt Python tool :)
however, what matters is that he achieves his goal :)
 
5:35 AM
true... any means necessary to achieve ones goal...
 
5:48 AM
lol....sorta
how's work? @ShyamK
 
after I got halfway through redesigning the site... my PM decides that that a designer could redesign the site... so now I gotta wait until a new look is decided upon... hate when the higher-ups decide to just do stuff...
 
Boss:You boy, make a new look for the site.
... 10 days later...
Boss: hmm, lets assign a designer to the task.
Me: But but... what about what I did?
Boss: Toss it...
Me: _goes to a corner and cries_
 
your job seems dis-organized
 
tell me about it
 
6:07 AM
I installed Apache from source last night
it was fun
I should install PHP from source tonight
 
tomcat?
 
nope....Apache
it's for PHP
 
6:27 AM
both are Apache... Apache Tomcat
 
I know......Tomcat is for Java
 
6:43 AM
I asked if it was Tomcat, cos I had installed Tomcat on a friends system the past week...
 
oh okay; how was it?
I haven't started JSP yet.....so, I currently do not need TomCat
 
just followed the instructions :P piece of cake
 
yup
compiled it from source?
 
downloaded the tarball and installed... that the same?
 
did you use ./configure , and then make , and afterwards, make install ?
 
7:04 AM
I don't really remember... but I had done that for something else in the recent past...
 
you need to have a gcc or g++ compiler installed though
 
have that...
 
the one I had the most problem installing was MySQL
I eventually had to use apt-get, but I'll get the bad boy later
 
hmm... sounds fun... gonna have to try it out some day
 
yup.....contacted one of the guys on PHP
to see how I can start contributing to PHP development :)
 
7:17 AM
really?
since you know C it'll be easier
 
lol.....I don't know C; I'm still knowing C :)
besides, I think I might have to start with documentation first
 
documentation of C? thats gonna be loooong
 
no.....PHP official documentation :)
the guy said they always need ppl to do it
 
7:52 AM
ya certain things lack examples there...
 
8:10 AM
It'sYourFault the docs are screwed... :P
 
 
3 hours later…
11:17 AM
@It'sYourFault I have a structure in python as given below
class DEVINFO(Structure):
_fields_ = [("szDeviceName", c_char*MAX_PATH),
("pDevExtension", POINTER(DEVEXTENSION))]
The pDevExtension structure looks like below
class DEVEXTENSION(Structure):
_fields_ = [("szSerialNumber",c_char*32)]
now how would i create an object to the DEVINFO class that might acces the szSerail number member of the class DEVEXTENSION
class DEVINFO(Structure):
_fields_ = [("szDeviceName", c_char*MAX_PATH),
("pDevExtension", POINTER(DEVEXTENSION))]
The pDevExtension structure looks like below
class DEVEXTENSION(Structure):
_fields_ = [("szSerialNumber",c_char*32)]
now how would i create an object to the DEVINFO class that might acces the szSerail number member of the class DEVEXTENSION
 

« first day (774 days earlier)      last day (4163 days later) »