Hi Detlev,
Yes, I had breakpoints set. Anyway, I'm always starting the Eric4 debugger
with the option "Don't stop at first line" switched off (that is, the
debugger anyhow starts in step mode). In the script I've given, it only
takes a minimal time to reach the problematic area. Just put an extra
breakpoint at line 133 and then step into the code.
As said before, normally the input files contain a Python list, like the
one below:
[{"id":168,"key":"org.droidtv.tvjar","name":"TvJar","scope":"PRJ","qualifier":"TRK","date":"2013-09-11T09:39:09+0200","lname":"TvJar","lang":"java","version":"1.0","description":"","msr":[{"key":"blocker_violations","val":0.0,"frmt_val":"0"},{"key":"critical_violations","val":19.0,"frmt_val":"19"},{"key":"major_violations","val":1253.0,"frmt_val":"1,253"}]}]
When analysing a file with such content, all is fine.
However, due to missing information from the process that generates the
input files for the script (has nothing to do with this Python file!), I
sometimes do get files with the following content:
device/tpvision/common/plf/storage ==> MISSING ANALYSIS!!! <==
And those files have to be treated differently. That's why, when such file
content is detected by the function ast.literal_eval() (line 137 in the
Python code), it generates an exception. But that's what I deliberatly
want. Since then, I know it's not a Python list and in that case, I
generate an error message in my output report through the "use" or "abuse"
(depends on how you look at it) of the "except"ion thrown.
And as said before, in a normal run (e.g. running the script from the
command line, both Linux as well as Windows), it works fine. Even when
running in Eric4 without breakpoints (that is, start the script in the
debugger and once it stops at the first line, hit F6), all works fine.
But the moment one breakpoint has been set (*wherever in the code, it
doesn't matter*) *and the debugger has stopped at least once* before that
famous line 137, I get the below mentioned error condition in the debugger.
Hope you have enough information now to reproduce and analyse the issue.
If not, don't hesitate to come back on it and ask for more information.
Best rgds,
--Geert
On 19 September 2013 18:38, Detlev Offenbach <detlev at die-offenbachs.de>wrote:
> **
>> Hello,
>>>> did you have any breakpoints set when this error shows up? Please think
> about any additional info, that could be relevant.
>>>> Just to let you know, your error report is one of the best I've seen, very
> informative already. I'll have a look at it on the weekend.
>>>> Detlev
>>>> On Thursday 19 September 2013, 09:03:42 Geert Vancompernolle wrote:
>> > Hi
>> >
>> > I've created a Python script *that runs flawlessly when run from the
>> > command line*. However, when running it *in the debug mode* in Eric4, the
>> > debugger seems to be kicked out.
>> >
>> > I'm running Eric4 4.5.14 on a Windows7 PC (I had the issue also with
>> > previous versions of Eric4, but to be sure it was not related to missing
> an
>> > update, I moved to the latest version of Eric4, currently available).
>> >
>> > I've attached the source file of the script, together with a 7-zip file
>> > that contains the input files that are needed.
>> >
>> > The problem happens at line 137 in the "sonarmetrics.py" file (command:
>> > 'result = ast.literal_eval(filecontent)'). I'm "misusing" the try-except
>> > mechanism to detect if the content of the file given contains a known
>> > Python type (using the ast method "literal_eval") or a kind of "error
>> > message". Just to let you know...
>> >
>> > If you want to run the script, two input parameters are needed:
>> > - a path to the directory containing the input sources
>> > - a path to the directory where the 3 output files should be written (1
> txt
>> > file and 2 csv files, used as Excel input)
>> >
>> > I've also added screenshots from the Eric4 debugger at the moment the
>> > problem arises.
>> >
>> > [image: Inline images 3]
>> >
>> > [image: Inline images 4]
>> >
>> > I've also added a screenshot of the different package versions I'm using
>> > with Eric4.
>> >
>> > [image: Inline images 2]
>> >
>> > I've also added the way I invoke the debugger (paths may differ, of
> course,
>> > just to show that you need two input parameters).
>> >
>> > [image: Inline images 5]
>> >
>> > What could cause this behaviour?
>> >
>> > *PS: noteworthy to metion that, when you start the debugger with F5 (and
>> > stopping at the start of the Python script) and then press F6 (so, don't
> go
>> > into step mode using F8), all is working find in the debugger too...*
>> >
>> > Best rgds,
>> > --Geert
> --
>> Detlev Offenbach
>> detlev at die-offenbachs.de
>> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
>>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20130920/fb097ee3/attachment-0001.html>
More information about the Eric
mailing list
‘She has never mentioned her father to me. Was he—well, the sort of man whom the County Club would not have blackballed?’ "We walked by the side of our teams or behind the wagons, we slept on the ground at night, we did our own cooking, we washed our knives by sticking them into the ground rapidly a few times, and we washed our plates with sand and wisps of grass. When we stopped, we arranged our wagons in a circle, and thus formed a 'corral,' or yard, where we drove our oxen to yoke them up. And the corral was often very useful as a fort, or camp, for defending ourselves against the Indians. Do you see that little hollow down there?" he asked, pointing to a depression in the ground a short distance to the right of the train. "Well, in that hollow our wagon-train was kept three days and nights by the Indians. Three days and nights they stayed around, and made several attacks. Two of our men were killed and three were wounded by their arrows, and others had narrow escapes. One arrow hit me on the throat, but I was saved by the knot of my neckerchief, and the point only tore the skin a little. Since that time I have always had a fondness for large neckties. I don't know how many of the Indians we killed, as they carried off their dead and wounded, to save them from being scalped. Next to getting the scalps of their enemies, the most important thing with the Indians is to save their own. We had several fights during our journey, but that one was the worst. Once a little party of us were surrounded in a small 'wallow,' and had a tough time to defend ourselves successfully. Luckily for us, the Indians had no fire-arms then, and their bows and arrows were no match for our rifles. Nowadays they are well armed, but there are[Pg 41] not so many of them, and they are not inclined to trouble the railway trains. They used to do a great deal of mischief in the old times, and many a poor fellow has been killed by them." As dusk came on nearly the whole population of Maastricht, with all their temporary guests, formed an endless procession and went to invoke God's mercy by the Virgin Mary's intercession. They went to Our Lady's Church, in which stands the miraculous statue of Sancta Maria Stella Maris. The procession filled all the principal streets and squares of the town. I took my stand at the corner of the Vrijthof, where all marched past me, men, women, and children, all praying aloud, with loud voices beseeching: "Our Lady, Star of the Sea, pray for us ... pray for us ... pray for us ...!" It had not occurred to her for some hours after Mrs. Campbell had told her of Landor's death that she was free now to give herself to Cairness. She had gasped, indeed, when she did remember it, and had put the thought away, angrily and self-reproachfully. But it returned now, and she felt that she might cling to it. She had been grateful, and she had been faithful, too.[Pg 286] She remembered only that Landor had been kind to her, and forgot that for the last two years she had borne with much harsh coldness, and with a sort of contempt which she felt in her unanalyzing mind to have been entirely unmerited. Gradually she raised herself until she sat quite erect by the side of the mound, the old exultation of her half-wild girlhood shining in her face as she planned the future, which only a few minutes before had seemed so hopeless. After he had gloated over Sergeant Ramsey, Shorty got his men into the road ready to start. Si placed himself in front of the squad and deliberately loaded his musket in their sight. Shorty took his place in the rear, and gave out: The groups about each gun thinned out, as the shrieking fragments of shell mowed down man after man, but the rapidity of the fire did not slacken in the least. One of the Lieutenants turned and motioned with his saber to the riders seated on their horses in the line of limbers under the cover of the slope. One rider sprang from each team and ran up to take the place of men who had fallen. "As long as there's men and women in the world, the men 'ull be top and the women bottom." Then, in the house, the little girls were useful. Mrs. Backfield was not so energetic as she used to be. She had never been a robust woman, and though her husband's care had kept her well and strong, her frame was not equal to Reuben's demands; after fourteen years' hard labour, she suffered from rheumatism, which though seldom acute, was inclined to make her stiff and slow. It was here that Caro and Tilly came in, and Reuben began to appreciate his girls. After all, girls were needed in a house—and as for young men and marriage, their father could easily see that such follies did not spoil their usefulness or take them from him. Caro and Tilly helped their grandmother in all sorts of ways—they dusted, they watched pots, they shelled peas and peeled potatoes, they darned house-linen, they could even make a bed between them. HoME一级毛片视频免费公开
ENTER NUMBET 0018www.gsdmfg.com.cn www.bendangwu.com.cn qbkv.com.cn jlpic.com.cn nhsu.com.cn dotsean.com.cn phancos.com.cn xmhefeng.com.cn www.ysbus.com.cn aune.com.cn