Arithmetic not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Confirmed
|
Low
|
Unassigned |
Bug Description
Whenever I try to make a calculation with the arithmetic plugin I get a popup saying I found a bug and tells me to include this info:
This is zim 0.65
Platform: posix
Locale: en_GB UTF-8
FS encoding: UTF-8
Python: (2, 7, 10, 'final', 0)
Gtk: (2, 24, 29)
Pygtk: (2, 24, 0)
Zim revision is:
branch: zim-trunk
revision: 805 <email address hidden>
date: 2015-11-01 15:42:45 +0100
======= Traceback =======
File "/usr/lib/
self.
File "/usr/lib/
parser.parse( buf )
File "/usr/lib/
self.parseLine( i, textBuffer, variables=
File "/usr/lib/
variables=
File "/usr/lib/
return AddCommas( safe_eval( ''.join( expressionD ) ) )
File "/usr/lib/
re = eval(expression, GLOBALS, {'Decimal': Decimal})
SyntaxError: invalid syntax (<string>, line 1)
I am using a Thinkpad Yoga running Fedora 23 with cinnamon
summary: |
- Arithmetic now working + Arithmetic not working |
Changed in zim: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Looks like you have a formula that arithmic can not parse. Can you add the
content of the page that triggers this error ?
THanks,
Jaap
On Wed, Mar 9, 2016 at 2:45 PM, ESDACIO44 <email address hidden> wrote:
> Public bug reported: python2. 7/site- packages/ zim/actions. py", line 109, in func python2. 7/site- packages/ zim/plugins/ arithmetic. py", line python2. 7/site- packages/ zim/inc/ arithmetic. py", line 469, self.variables, self.functions ) python2. 7/site- packages/ zim/inc/ arithmetic. py", line 392, variables, functions=functions ) ) python2. 7/site- packages/ zim/inc/ arithmetic. py", line 243, python2. 7/site- packages/ zim/inc/ arithmetic. py", line 139, /bugs.launchpad .net/bugs/ 1555111 /bugs.launchpad .net/zim/ +bug/1555111/ +subscriptions
>
> Whenever I try to make a calculation with the arithmetic plugin I get a
> popup saying I found a bug and tells me to include this info:
>
> This is zim 0.65
> Platform: posix
> Locale: en_GB UTF-8
> FS encoding: UTF-8
> Python: (2, 7, 10, 'final', 0)
> Gtk: (2, 24, 29)
> Pygtk: (2, 24, 0)
> Zim revision is:
> branch: zim-trunk
> revision: 805 <email address hidden>
> date: 2015-11-01 15:42:45 +0100
>
> ======= Traceback =======
> File "/usr/lib/
> self.func(instance, *arg, **kwarg)
> File "/usr/lib/
> 53, in calculate
> parser.parse( buf )
> File "/usr/lib/
> in parse
> self.parseLine( i, textBuffer, variables=
> functions=
> File "/usr/lib/
> in parseLine
> variables=
> File "/usr/lib/
> in evaluate
> return AddCommas( safe_eval( ''.join( expressionD ) ) )
> File "/usr/lib/
> in safe_eval
> re = eval(expression, GLOBALS, {'Decimal': Decimal})
> SyntaxError: invalid syntax (<string>, line 1)
>
> I am using a Thinkpad Yoga running Fedora 23 with cinnamon
>
> ** Affects: zim
> Importance: Undecided
> Status: New
>
>
> ** Tags: arithmetic
>
> --
> You received this bug notification because you are subscribed to Zim.
> https:/
>
> Title:
> Arithmetic now working
>
> To manage notifications about this bug go to:
> https:/
>