1 (edited by GraphUser3546 2016-11-03 15:47:58)

Topic: Python console gives errors on startup

Greetings Ivan,

I am installing Graph and Python on a new computer and am encountering issues.

OS : Windows 10 64bits pro.
Graph : 4.5 beta, build 569
Python : 3.2.5 32bits

On startup, I open the Python console (F11) and I get the following errors. Am I missing something?

Traceback (most recent call last):
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 109, in LoadPlugins
    Modules.append(imp.load_module(ModuleName, fp, pathname, description))
  File "C:\Program Files (x86)\Graph\Plugins\Circle.py", line 62, in <module>
    Action = Graph.CreateAction(Caption=_("Insert circle..."), OnExecute=execute_action, Hint=_("Create circle from center and radius."), ShortCut="Ctrl+Shift+C", IconFile="Circle.png")
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 143, in CreateAction
    Action.ImageIndex = LoadImage(IconFile)
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 166, in LoadImage
    Picture.LoadFromFile(os.path.join(PluginsDir, FileName))
vcl.VclError
Traceback (most recent call last):
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 109, in LoadPlugins
    Modules.append(imp.load_module(ModuleName, fp, pathname, description))
  File "C:\Program Files (x86)\Graph\Plugins\Revolution.py", line 52, in <module>
    Action = Graph.CreateAction(Caption="Revolution", OnExecute=Execute, Hint="Area for surface of revolution.")
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 139, in CreateAction
    Action = vcl.TAction(vcl.Application, Name=OnExecute.__module__+"_"+OnExecute.__name__, Caption=Caption, OnExecute=OnExecute, Hint=Hint, ShortCut=vcl.TextToShortCut(ShortCut), Category="Plugins", OnUpdate=OnUpdate)
vcl.VclError: Invalid pointer operation
Traceback (most recent call last):
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 109, in LoadPlugins
    Modules.append(imp.load_module(ModuleName, fp, pathname, description))
  File "C:\Program Files (x86)\Graph\Plugins\ShowConsole.py", line 11, in <module>
    Action = Graph.CreateAction(Caption="Show Python interpreter", OnExecute=Execute, OnUpdate=Update, ShortCut="F11")
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 139, in CreateAction
    Action = vcl.TAction(vcl.Application, Name=OnExecute.__module__+"_"+OnExecute.__name__, Caption=Caption, OnExecute=OnExecute, Hint=Hint, ShortCut=vcl.TextToShortCut(ShortCut), Category="Plugins", OnUpdate=OnUpdate)
vcl.VclError: Invalid pointer operation
Traceback (most recent call last):
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 109, in LoadPlugins
    Modules.append(imp.load_module(ModuleName, fp, pathname, description))
  File "C:\Program Files (x86)\Graph\Plugins\Statistics.py", line 36, in <module>
    Action = Graph.CreateAction(Caption="Statistics", OnExecute=Execute, Hint="Statistics on a point series.")
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 139, in CreateAction
    Action = vcl.TAction(vcl.Application, Name=OnExecute.__module__+"_"+OnExecute.__name__, Caption=Caption, OnExecute=OnExecute, Hint=Hint, ShortCut=vcl.TextToShortCut(ShortCut), Category="Plugins", OnUpdate=OnUpdate)
vcl.VclError: Invalid pointer operation
Traceback (most recent call last):
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 109, in LoadPlugins
    Modules.append(imp.load_module(ModuleName, fp, pathname, description))
  File "C:\Program Files (x86)\Graph\Plugins\Transform.py", line 36, in <module>
    Action = Graph.CreateAction(Caption="Transform", OnExecute=Execute, Hint="Transform point series.")
  File "C:\Program Files (x86)\Graph\Lib\Graph.py", line 139, in CreateAction
    Action = vcl.TAction(vcl.Application, Name=OnExecute.__module__+"_"+OnExecute.__name__, Caption=Caption, OnExecute=OnExecute, Hint=Hint, ShortCut=vcl.TextToShortCut(ShortCut), Category="Plugins", OnUpdate=OnUpdate)
vcl.VclError: Invalid pointer operation

Re: Python console gives errors on startup

You are right. I can reproduce the problem. I will get it fixed in the next beta version.

Re: Python console gives errors on startup

Thank you, I appreciate it

Re: Python console gives errors on startup

I have now fixed the problem and uploaded a new beta version:
http://www.padowan.dk/beta/

Re: Python console gives errors on startup

Great thanks, it works on my side too!

... now I just have to fix the errors on my own plugins... smile

Thanks!