473,394 Members | 1,770 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,394 software developers and data experts.

embedding error in python example

I compiled the comand line example and I am getting an error when I
try to use the program when the program is cleaning up (I don't know
that it would prevent the program from running though I will run more
tests)... ebedpython test testt
result of call: -1
exception exceptions.TypeError: 'an integer is required' in ' 'garbage
collection' ignored
Fatal Python error: unexpected exception during garbage collection...

the program is just
test.py

def testt():
x = 'test'

doesn't realy do anything it was my first test of the program..

I would be thankfull for any help..

tagline I don't need no stinken tagline...

Oct 9 '07 #1
1 1493
On Oct 9, 6:11 am, "Eric_Dex...@msn.com" <Eric_Dex...@msn.comwrote:
I compiled the comand line example and I am getting an error when I
try to use the program when the program is cleaning up (I don't know
that it would prevent the program from running though I will run more
tests)... ebedpython test testt
result of call: -1
exception exceptions.TypeError: 'an integer is required' in ' 'garbage
collection' ignored
Fatal Python error: unexpected exception during garbage collection...

the program is just
test.py

def testt():
x = 'test'

doesn't realy do anything it was my first test of the program..

I would be thankfull for any help..

tagline I don't need no stinken tagline...
def testt():
v = open('file.txt','w')
v.write('test')
v.close()
#x := 'test'
#print x

This seems to work but gives me the annoying looking error.. I now
have a file with the word test in it... This is done with xp, with
python 2.5 dll and the example that you find when you look up python +
embed in google.. I copied all the .dll's in the root (msvcrt exc)
and python25.dll to the directory.. any help would be apreaceated..

Oct 9 '07 #2

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

Similar topics

0
by: Atul Kshirsagar | last post by:
I am embedding python in my C++ application. I am using Python *2.3.2* with a C++ extention DLL in multi-threaded environment. I am using SWIG-1.3.19 to generate C++ to Python interface. Now to...
4
by: Alicia Haumann | last post by:
I accidentally sent this to webmaster@python.org, so this could be a duplicate if "webmaster" forwards it to this list. :{ Hi, there. Thanks for any help that can be offered. I've been...
1
by: Craig Ringer | last post by:
Hi folks I'm a bit of a newbie here, though I've tried to appropriately research this issue before posting. I've found a lot of questions, a few answers that don't really answer quite what I'm...
0
by: zhang xiaoning | last post by:
Hi, I download and extract python-2.4.2 source code for unix, and then, build and install it on aix5, the configure option I used is: ../configure --enable-shared --disable-ipv6...
1
by: gavinpaterson | last post by:
Dear Pythoners, I am writing as I am having trouble embedding a Python program into a Win XP C++ console application. I have written a script file for importing and I am trying to use the...
0
by: baitelli | last post by:
Hi where's "python24.lib" ? I'm trying to test the example given at Python documentation: 5.1 Very High Level Embedding I'm using Microsoft Visual C++ 6.0 and got the error: LINK : fatal...
1
by: could.net | last post by:
I use boost 1.33_1, there's an example on boost::python named embedding.cpp. When I tried to build and run it in visual studio 2005, I got an error on this line: std::string hello() { return...
3
by: Jim Hill | last post by:
Well, I've found about a hundred thousand web pages where people have had the same problem I have but nary a page with a solution that works for me. I want to do a simple embed, so I've followed...
0
by: DevEng | last post by:
Hi all, I am new to Python and trying to embed it into a c/c++ application. I started with examples from the documentation pages and go to the Pure Embedding example...
0
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.