On Friday, June 12, 2015 at 5:08:36 PM UTC-7, 黄祥 wrote:
>
> i've tried but none is shown when using runsnake and the error traceback 
> occured when using cprofilev. any idea?
> step i took on win 7 ultimate 64 with python 2.7.8 :
> pip install cprofilev
> easy_install SquareMap RunSnakeRun
>
> python C:\web2py\web2py.py -F C:\profiler
>
> C:\Users\sugizo>runsnake 
> c:\profiler\req_3ba6c627-8bbc-43d9-ae77-e33668dc4c09.prof
>
> C:\Users\sugizo>cprofilev 
> c:\profiler\req_3ba6c627-8bbc-43d9-ae77-e33668dc4c09.prof
> [cProfileV]: cProfile output available at http://127.0.0.1:4000
> Traceback (most recent call last):
>   File "C:\Python27\Scripts\cprofilev-script.py", line 9, in <module>
>     load_entry_point('CProfileV==1.0.6', 'console_scripts', 'cprofilev')()
>   File "C:\Python27\lib\site-packages\cprofilev.py", line 217, in main
>     code = compile(fp.read(), progname, 'exec')
> TypeError: compile() expected string without null bytes
>

Sorry, I ran cprofilev on a linux system, and I generated the profile with 
cprofile on a non-web2py python program (although it supports updating an 
database I access through web2py).
 
/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to