noxiart opened this issue on Jan 22, 2010 · 10 posts
noxiart posted Fri, 22 January 2010 at 2:32 PM
Only problem is that whenever I open or close it, I get a warning popup I have to close first.
So, is there any way I could edit it to avoid this error popups ?
This is the error I get when opening it:
PhilC posted Fri, 22 January 2010 at 2:46 PM
If you open the PY file in Notepad what do you see in line number 4?
The error message indicates that there is a non ASCII character present. May be something like the copyright symbol or something invisible line a carriage return. Whatever it is it will probably be obvious and can be deleted or edited to something else.
If you are not sure please copy/paste line 4 to the thread and we can go from there.
noxiart posted Fri, 22 January 2010 at 3:02 PM
Hmm,
I opened it up in EditPad Lite but I see no line numbers.
Here is the first block without the annotations:
from Tkinter import *
import poser,string
scene = poser.Scene()
class App:
def init(self, master):
self.MainButtonWidth = 9
self.FullActorList = []
self.DeformerList = []
self.MagnetList = []
self.MagnetPairsList = []
self.FigureSelected = 'no'
self.FromQuit = 'no'
self.CloneDone = 'no'
self.FullParameterList1 = []
self.Frame4ButtonWidth = 3
self.Mode = 0
self.SaveCurrentFigureName = ''
self.InactiveMags = []
self.ActiveMags = []
self.InactiveMagNames = []
self.ActiveMagNames = []
self.ReselectMags = 'yes'
self.UndoDictionary =
self.UndoCount = 0
self.MagnetDictionary =
self.MagnetCount = 0
self.DummyFont = ('Arial','1')
markschum posted Fri, 22 January 2010 at 3:17 PM
Its the literal line 4 in the file , count comments and all
it might be a hex A0 character , which will appear as a blank character
The deprecation warning is not a problem , but will pop up an error.
noxiart posted Fri, 22 January 2010 at 3:48 PM
Here are the comments, but the only "unusual" I see is the @ in the third line ?
# Script: MagClonerV1n.py
# Author: bushi (PoserPython.com) - bushi@velocitus.net
# Description: This script mirrors magnets on a Poser figure.
# After selecting the magnets to use, you can either
# clone the magnets to the opposite side of the
# figure or delete the selected magnets.
# System: Poser Pro, Poser 5
# active scrollbox.
# scrollbox.
Maybe I should just try deleting all comments ?
noxiart posted Fri, 22 January 2010 at 5:42 PM
I just deleted the "comment" block and the initial popup is gone.
Still getting another popup when I close MagCloner.
(see pic)
Any idea what I can do to get rid it, too ?
PhilC posted Fri, 22 January 2010 at 6:04 PM
Try just commenting out line 1871.
noxiart posted Fri, 22 January 2010 at 6:17 PM
Problem is, there are only 588 lines in that script !
LOL !
PhilC posted Fri, 22 January 2010 at 6:35 PM
OK sorry, yes line 1871 is in the Tkinter module. I'd need to see the script to know where the call to that module originates from.
noxiart posted Fri, 22 January 2010 at 6:55 PM
Hi Phil,
I sent you a site mail.