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

Bug in psyco ?

>>> import inspect
inspect.stack() [(<frame object at 0xa119914>, '<stdin>', 1, '?', None, None)] import psyco
inspect.stack()

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 795, in stack
return getouterframes(sys._getframe(1), context)
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 776, in
getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 744, in
getframeinfo
raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object
Jul 18 '05 #1
2 1474
"George Sakkis" <gs*****@rutgers.edu> writes:
import inspect
inspect.stack() [(<frame object at 0xa119914>, '<stdin>', 1, '?', None, None)] import psyco
inspect.stack()

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 795, in stack
return getouterframes(sys._getframe(1), context)
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 776, in
getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 744, in
getframeinfo
raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object


Mentioning this on the psyco-devel list has a rather higher
probability of attracting a useful response...

I'm not sure there's anything that can really be done in this
situation, though, except making inspect less anal.

Cheers,
mwh

--
You have run into the classic Dmachine problem: your machine has
become occupied by a malevolent spirit. Replacing hardware or
software will not fix this - you need an exorcist.
-- Tim Bradshaw, comp.lang.lisp
Jul 18 '05 #2
George Sakkis wrote:
import inspect
inspect.stack()
[(<frame object at 0xa119914>, '<stdin>', 1, '?', None, None)]
import psyco
inspect.stack()


Traceback (most recent call last):
TypeError: arg is not a frame or traceback object


Inspect is too rigid. It crashed because it cannot handle Psyco's
emulated frame object. Ie: it's a feature....

http://psyco.sourceforge.net/psycoguide/bugs.html

"...Frame objects are emulated. The sys. getframe function returns an
instance of a custom class which emulates the standard frame objects’
behavior as much as possible..."

Regards,

Iwan
Jul 18 '05 #3

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

Similar topics

4
by: KefX | last post by:
Hey...as for what I'm doing with Python, look at my post "Strange Hotshot problem". To make a long story short, I'm embedding Python in order to write a plugin to a freeware music program; the...
10
by: William S. Perrin | last post by:
I'm a python rookie, anyone have and suggestions to streamline this function? Thanks in advance..... def getdata(myurl): sock = urllib.urlopen(myurl) xmlSrc = sock.read() sock.close() ...
0
by: Jeremy Sanders | last post by:
Hi - I'm trying to build a Psyco rpm on Fedora 1. I try the command xpc5:~/psyco-1.1.1> python setup.py bdist_rpm this fails with: .... copying dist/psyco-1.1.1.tar.gz ->...
7
by: Ivan Voras | last post by:
I have this simple *dumb* benchmark-like program: #import psyco #psyco.full() d = 0.0 for i in xrange(1000000000): d += i print d
2
by: Paulo da Silva | last post by:
When running the following program: #! /bin/env python # -*- coding: iso-8859-15 -*- import psyco psyco.full() def main(): n=eval("123+456")
3
by: Dick Moores | last post by:
psyco is acting a bit psycho for me. Please see my spinForWeb.py at <http://www.rcblue.com/Python/spinForWeb.py> When psyco is in use, entering an integer somewhere between 2000 and 2500...
5
by: Fausto Arinos Barbuto | last post by:
Hi All; I have Psyco (on Windows XP) and now I want to install it on Linux, too. I FTP'd the tarball (tar.gz) from Psyco's site but can't get it compiled. First, I tried the usual "python...
6
by: danmcleran | last post by:
I'm not seeing much benefit from psyco (only 5-10% faster). Maybe this example is too trivial? Can someone give me some pointers as to what kind of code would see a dramatic benefit? Here's the...
3
by: a | last post by:
hi i tried psyco+webpy here is the error that i got please let me know if any of you has success run psyco+webpy thanks import web, psyco urls = ( '/', 'view', '/add','add'
15
by: Steve Bergman | last post by:
Just wanted to report a delightful little surprise while experimenting with psyco. The program below performs astonoshingly well with psyco. It finds all the prime numbers < 10,000,000 ...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.