PiRSquared17 / pylan

Automatically exported from code.google.com/p/pylan
0 stars 0 forks source link

No graphic displayed #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and untar attached file (it's a real test, I only changed the 
domains because I don't want them public)
2. Run PyLan
3. Open the attached file in PyLan

What is the expected output? What do you see instead?
After checking some datas to be displayed, the graphic stay white, nothing 
displayed

What version of the product are you using? On what operating system?
Ubuntu 11.10 (Linux blabla 3.0.0-13-generic #21-Ubuntu SMP Mon Oct 17 20:18:51 
UTC 2011 x86_64 x86_64 x86_64 GNU/Linux)
PyLan_1.0.py
Python 2.7.2+
python-matplotlib : 1.0.1-3
python-numpy : 1:1.5.1-2ubuntu2
python-gtk2 : 2.24.0-2
python-lxml : 2.3-0.1build1

Please provide any additional information below.
I see 3 possibilities from where could come this problem :

1°) I see in your installation doc, that Numpy should be 1.6.1. But in the 
packages of ubuntu it is 1.5.1. Could this problem come from here ? Must I 
install it manually python-numpy 1.6.1 to solve it ?

2°) I run PyLan in verbose debug mode to see if I can have more informations :
python -d -v ./PyLan_1.0.py
I've this issue :
Traceback (most recent call last):
  File "./PyLan_1.0.py", line 722, in refresh
    self.log.plot(self.active, time_int, label, self.legend_status,self.title,self.trend_status,self.points_status)
  File "./PyLan_1.0.py", line 405, in plot
    points = self.log_agg(time_int, label, graph)
  File "./PyLan_1.0.py", line 300, in log_agg
    if self.data[i][self.sec_index] >= prev_step:
IndexError: list index out of range

3°) Could it be an encoding problem ? Because I tested french urls, with 
special caracters like "garçon".

Thanks for your help
Romaric

Original issue reported on code.google.com by rdef...@gmail.com on 28 Oct 2011 at 9:25

Attachments:

GoogleCodeExporter commented 9 years ago
The problem in CSV header. Your file has 'IdleTime' column but has no 
corresponding data in file.

I removed ',IdleTime' from this file and successfully plotted charts.

Anyway I'll add check for such cases.

Original comment by Pavel.Pa...@gmail.com on 28 Oct 2011 at 9:54