Hi,
I'm trying to use the Python profilers to test my code, but I get the
following output for cProfile.run() at the interpreter:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/cProfile.py", line 36, in run
result = prof.print_stat s(sort)
File "/usr/lib/python2.5/cProfile.py", line 80, in print_stats
import pstats
ImportError: No module named pstats
I also tried to use the profile module but I get:
>>import profile
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named profile
I'm on Ubuntu 7.10 with Python 2.5, and I can't seem to figure out
what's missing. 2 10314
On Feb 13, 11:20 am, "Juha S." <s...@iloinen.n etwrote:
Hi,
I'm trying to use the Python profilers to test my code, but I get the
following output for cProfile.run() at the interpreter:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/cProfile.py", line 36, in run
result = prof.print_stat s(sort)
File "/usr/lib/python2.5/cProfile.py", line 80, in print_stats
import pstats
ImportError: No module named pstats
I also tried to use the profile module but I get:
>>import profile
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named profile
I'm on Ubuntu 7.10 with Python 2.5, and I can't seem to figure out
what's missing.
There is no module called 'profile', it's called 'cProfile'. Both
'cProfile' and 'pstats' are part of the standard distro, have you
tried downloading a new binary and installing it ?
Chris wrote:
On Feb 13, 11:20 am, "Juha S." <s...@iloinen.n etwrote:
>Hi,
I'm trying to use the Python profilers to test my code, but I get the following output for cProfile.run() at the interpreter:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/cProfile.py", line 36, in run result = prof.print_stat s(sort) File "/usr/lib/python2.5/cProfile.py", line 80, in print_stats import pstats ImportError: No module named pstats
I also tried to use the profile module but I get:
> >>import profile
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named profile
I'm on Ubuntu 7.10 with Python 2.5, and I can't seem to figure out what's missing.
There is no module called 'profile', it's called 'cProfile'. Both
'cProfile' and 'pstats' are part of the standard distro, have you
tried downloading a new binary and installing it ?
There is a module called profile, as well as cProfile. And as Ilias said,
you probably do have to install python-profile (or whatever package your
system places the profiler in).
j This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Carsten Gehling |
last post by:
Figured out myself - I just removed the line with "from url import Url" -it
doesn't seem to be used anywhere ;-)
- Carsten
> -----Oprindelig meddelelse-----
> Fra: python-list-admin@python.org
> På vegne af Carsten Gehling
> Sendt: 16. juli 2003 16:24
|
by: x-herbert |
last post by:
Hi,
I have a small test to "compile" al litle script as a WMI-Tester. The
script include a wmi-wrapper and "insert" the Win32-modeles.
here the code:
my "WMI-Tester.py"
-----
import wmi
|
by: M. Lavasani |
last post by:
Hi
I am trying to test Python-2.3.
Any solution for this problem please:
>>>gmake test
case $MAKEFLAGS in \
*-s*) LD_LIBRARY_PATH=/net/ia64/lavasani/Python-2.3:/usr/local/lib/hpux32:/usr/local/lib CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
|
by: F. GEIGER |
last post by:
py2exe and datetime -> No module named datetime
I've begun to use the stdlib module datetime instead of my home brewn
classes.
Since then a py2exe app doesn't run anymore:
Traceback (most recent call last):
File "MainFrame.py", line 26, in ?
File "Notebook.pyo", line 125, in ?
File "NotebookPage_Activities.pyo", line 7, in ?
|
by: fanbanlo |
last post by:
What seems to be the matter?
>>> path =
"C:\\eclipse\\workspace\\moin134\\docbook\\xslt\\html\\db_compiled.dat"
>>> f = file(path)
>>> cPickle.load(f)
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
ImportError: No module named on.
| |
by: ye juan |
last post by:
Hi, all
I have some questions to ask:
1. How can I add a standard module named "datetime" in
Jython when the error happens :"Traceback (innermost
last):
File "C:\python\test.py", line 3, in ?
ImportError: no module named datetime "
The line 3 is writen: "from datetime import datetime,
|
by: cpmishra |
last post by:
Hi all
I have used DBUtil with python2.4. when we run to program in
dos command ,successfully run but when we run in apache server
(locally)with modepython then given error.Pls help me
error:
No module named DBUtils.PooledDB
cp mishra
|
by: emallove |
last post by:
I'm running into the below "No modules named _sha256" issue, with a
python installed in a non-standard location.
$ python
Python 2.5.2 (r252:60911, May 20 2008, 09:46:50)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/ws/ompi-tools/lib/python2.5/md5.py", line 6, in <module>
|
by: Barak, Ron |
last post by:
Hi,
I'm trying to compile using py2exe, and am getting the following:
$ python_win Setup.py py2exe
running py2exe
creating c:\Documents and Settings\rbarak\rbarak_devel\dpm09\build
creating c:\Documents and Settings\rbarak\rbarak_devel\dpm09\build\bdist.win32
creating c:\Documents and Settings\rbarak\rbarak_devel\dpm09\build\bdist.win32\winexe
creating c:\Documents and...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |