472,362 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Python-2.5beta1 crash

I'm testing ReportLab against Python-2.5beta1 and am getting some kind of
problem as below

================================================== =====
C:\Python24\reportlab\test>\python25\python runAll.py
..C:\Python24\reportlab\test\test_docstrings.py:54 : ImportWarning: Not importing
directory 'C:\python25\reportlab\tools\utils': missing __init__.py
module = __import__(mName)
C:\Python24\reportlab\test\test_docstrings.py:54: ImportWarning: Not importing d
irectory 'C:\python25\reportlab\tools\pythonpoint\demos': missing __init__.py
module = __import__(mName)
C:\Python24\reportlab\test\test_docstrings.py:54: ImportWarning: Not importing d
irectory 'C:\python25\reportlab\docs': missing __init__.py
module = __import__(mName)
C:\Python24\reportlab\test\test_docstrings.py:54: ImportWarning: Not importing d
irectory 'C:\python25\reportlab\demos': missing __init__.py
module = __import__(mName)
.....Fatal Python error: non-string found in code slot

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
================================================== =====

First off there may be a bunch of other C extensions involved including PIL, but
I built them all against this beta. What should I do to refine the error? Do I
start with trying to establish which of the tests is guilty or build from source
in debug mode and attempt to find the problem from below.
--
Robin Becker

Jul 10 '06 #1
1 1243
Robin Becker wrote:
First off there may be a bunch of other C extensions involved including
PIL, but I built them all against this beta. What should I do to refine
the error? Do I start with trying to establish which of the tests is
guilty or build from source in debug mode and attempt to find the
problem from below.
I would personally run Python in debug mode. Set a break point on
Py_FatalError, and then walk the C stack to see where it comes from.

Of course, the specific error comes from

static void
intern_strings(PyObject *tuple)
{
Py_ssize_t i;

for (i = PyTuple_GET_SIZE(tuple); --i >= 0; ) {
PyObject *v = PyTuple_GET_ITEM(tuple, i);
if (v == NULL || !PyString_CheckExact(v)) {
Py_FatalError("non-string found in code slot");
}
PyString_InternInPlace(&PyTuple_GET_ITEM(tuple, i));
}
}

which in turn is called from PyCode_New, in these calls:

intern_strings(names);
intern_strings(varnames);
intern_strings(freevars);
intern_strings(cellvars);

So it appears you are trying to create a code object, where
a name, varname, freevar name, or cellvar name is not a string.
This is indeed fatal: names in Python are always strings.

Regards,
Martin
Jul 12 '06 #2

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

Similar topics

2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.