Building Papywizard  

Discuss the various motorized panoramic heads on the market, ask for advice, etc...
(EN/FR Forum)
no avatar
dazzlera
New member
 
Topic author
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 27, 2018 9:39 am
Info

Building Papywizard

by dazzlera » Fri Apr 27, 2018 9:51 am

HI everyone,

I have a Skywatcher AZ Goto Mount and it keeps failing at random intervals when shooting - So I suspect something is either wrong with RS232 cable I am using or PapyWizard doesn't work well under Win10 x64. I have tried Win10 32 and 64 bit versions, countless driver settings etc. From what I can tell the error occurs because of a communication problem where PapyWizard is expecting a value to on the Y-Axis to be returned yet it gets a null back - at which point an undefined exception occurs.

So i have decided to try to build Papywizard from source. I have set up Python 2.6 and 2.7 environments and installed all the required packages that I believe I need and checked that each environment matches the python version etc for the required modules.

I have download the latest source from Github and also the source from 2 previous commits - Running PapyWizard on either 2.6 / 2.7 and either source versions I have downloaded gives the following error:


018-04-27 09:35:26,598::Main::DEBUG::PluginsManager.register(): added 'Gphoto Bracket 2' plugin with capacity 'shutter'

018-04-27 09:35:26,598::Main::DEBUG::PluginsManager.register(): found 'merlinOrionPlugins' module
018-04-27 09:35:26,601::Main::TRACE::MerlinOrionAxis._init()
018-04-27 09:35:26,601::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,601::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,601::Main::DEBUG::AbstractPlugin._loadConfig(): config={'HIGH_LIMIT': 360.0, 'ALTERNATE_DRIVE_ANGLE'
7.0, 'INERTIA_ANGLE': 1.0, 'ENCODER_FULL_CIRCLE': 942803, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'OVERWRITE_
NCODER_FULL_CIRCLE': False, 'ALTERNATE_DRIVE': True}
018-04-27 09:35:26,602::Main::TRACE::MerlinOrionAxis._init()
018-04-27 09:35:26,604::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,604::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,605::Main::DEBUG::AbstractPlugin._loadConfig(): config={'HIGH_LIMIT': 360.0, 'ALTERNATE_DRIVE_ANGLE'
7.0, 'INERTIA_ANGLE': 1.0, 'ENCODER_FULL_CIRCLE': 942803, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'OVERWRITE_
NCODER_FULL_CIRCLE': False, 'ALTERNATE_DRIVE': True}
018-04-27 09:35:26,605::Main::DEBUG::PluginsManager.register(): added 'Merlin-Orion 1' plugin with capacity 'yawAxis'
018-04-27 09:35:26,605::Main::TRACE::MerlinOrionAxis._init()
018-04-27 09:35:26,607::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,608::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,608::Main::DEBUG::AbstractPlugin._loadConfig(): config={'HIGH_LIMIT': 360.0, 'ALTERNATE_DRIVE_ANGLE'
7.0, 'INERTIA_ANGLE': 1.0, 'ENCODER_FULL_CIRCLE': 942803, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'OVERWRITE_
NCODER_FULL_CIRCLE': False, 'ALTERNATE_DRIVE': True}
018-04-27 09:35:26,609::Main::TRACE::MerlinOrionAxis._init()
018-04-27 09:35:26,609::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,611::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,611::Main::DEBUG::AbstractPlugin._loadConfig(): config={'HIGH_LIMIT': 360.0, 'ALTERNATE_DRIVE_ANGLE'
7.0, 'INERTIA_ANGLE': 1.0, 'ENCODER_FULL_CIRCLE': 942803, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'OVERWRITE_
NCODER_FULL_CIRCLE': False, 'ALTERNATE_DRIVE': True}
018-04-27 09:35:26,611::Main::DEBUG::PluginsManager.register(): added 'Merlin-Orion 1' plugin with capacity 'pitchAxis'

018-04-27 09:35:26,614::Main::TRACE::MerlinOrionShutter._init()
018-04-27 09:35:26,615::Main::TRACE::ShutterPlugin._init()
018-04-27 09:35:26,615::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,615::Main::TRACE::ShutterPlugin._defineConfig()
018-04-27 09:35:26,617::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,617::Main::DEBUG::AbstractPlugin._loadConfig(): config={'DRIVER_TYPE': 'bluetooth', 'PULSE_WIDTH_LOW
: 250, 'BULB_ENABLE': False, 'MIRROR_LOCKUP': False, 'BRACKETING_NB_PICTS': 1, 'TIME_VALUE': 0.5, 'PULSE_WIDTH_HIGH': 2
0, 'TRIGGER_ONLY_ONCE': False}
018-04-27 09:35:26,618::Main::TRACE::MerlinOrionShutter._init()
018-04-27 09:35:26,618::Main::TRACE::ShutterPlugin._init()
018-04-27 09:35:26,619::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,621::Main::TRACE::ShutterPlugin._defineConfig()
018-04-27 09:35:26,621::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,621::Main::DEBUG::AbstractPlugin._loadConfig(): config={'DRIVER_TYPE': 'bluetooth', 'PULSE_WIDTH_LOW
: 250, 'BULB_ENABLE': False, 'MIRROR_LOCKUP': False, 'BRACKETING_NB_PICTS': 1, 'TIME_VALUE': 0.5, 'PULSE_WIDTH_HIGH': 2
0, 'TRIGGER_ONLY_ONCE': False}
018-04-27 09:35:26,622::Main::DEBUG::PluginsManager.register(): added 'Merlin-Orion 1' plugin with capacity 'shutter'
018-04-27 09:35:26,624::Main::DEBUG::PluginsManager.register(): found 'nkRemotePlugins' module
018-04-27 09:35:26,625::Main::DEBUG::NkRemoteShutter._defineConfig()
018-04-27 09:35:26,627::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,627::Main::DEBUG::AbstractPlugin._loadConfig(): config={'USER_EXPOSURE_COMPENSATION_LIST': '-2, 0, +
', 'DRY_RUN': False, 'MIRROR_LOCKUP': False, 'FILENAME_PREFIX': '', 'CAMERA_EXPOSURE_COMPENSATION_LIST': u'\xb15@1/2',
OUTPUT_DIR': 'C:\\Users\\Twinkle', 'PROGRAM_PATH': 'C:\\Program Files\\BreezeSys\\NKRemote\\NKRemoteLibTest.exe'}
018-04-27 09:35:26,628::Main::DEBUG::PluginsManager.register(): added 'NK Remote 1' plugin with capacity 'shutter'
018-04-27 09:35:26,630::Main::DEBUG::PluginsManager.register(): found 'owlPlugins' module
018-04-27 09:35:26,631::Main::TRACE::OwlAxis._init()
018-04-27 09:35:26,631::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,631::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,632::Main::DEBUG::AbstractPlugin._loadConfig(): config={'HIGH_LIMIT': 360.0, 'DRIVER_TYPE': 'bluetoo
h', 'LOW_LIMIT': -360.0}
018-04-27 09:35:26,634::Main::DEBUG::PluginsManager.register(): added 'Owl 1' plugin with capacity 'yawAxis'
018-04-27 09:35:26,634::Main::TRACE::OwlAxis._init()
018-04-27 09:35:26,634::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,635::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,637::Main::DEBUG::AbstractPlugin._loadConfig(): config={'HIGH_LIMIT': 360.0, 'DRIVER_TYPE': 'bluetoo
h', 'LOW_LIMIT': -360.0}
018-04-27 09:35:26,637::Main::DEBUG::PluginsManager.register(): added 'Owl 1' plugin with capacity 'pitchAxis'
018-04-27 09:35:26,638::Main::TRACE::OwlShutter._init()
018-04-27 09:35:26,638::Main::TRACE::ShutterPlugin._init()
018-04-27 09:35:26,640::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,640::Main::TRACE::ShutterPlugin._defineConfig()
018-04-27 09:35:26,641::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,641::Main::DEBUG::AbstractPlugin._loadConfig(): config={'DRIVER_TYPE': 'bluetooth', 'PULSE_WIDTH_LOW
: 250, 'BULB_ENABLE': False, 'MIRROR_LOCKUP': False, 'BRACKETING_NB_PICTS': 1, 'TIME_VALUE': 0.5, 'PULSE_WIDTH_HIGH': 2
0, 'TRIGGER_ONLY_ONCE': False}
018-04-27 09:35:26,642::Main::DEBUG::PluginsManager.register(): added 'Owl 1' plugin with capacity 'shutter'
018-04-27 09:35:26,644::Main::DEBUG::PluginsManager.register(): found 'panoduinoPlugins' module
018-04-27 09:35:26,644::Main::TRACE::PanoduinoAxis._init()
018-04-27 09:35:26,644::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,645::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,647::Main::DEBUG::AbstractPlugin._loadConfig(): config={'NEUTRAL_POSITION': 1000, 'HIGH_LIMIT': 360.
, 'DIRECTION': u'forward', 'ANGLE_1MS': 315.0, 'ACCEL': 1, 'LOW_LIMIT': -360.0, 'DRIVER_TYPE': 'bluetooth', 'ADDITIONAL
DELAY': 0.5, 'SPEED': 5, 'CHANNEL': 0}
018-04-27 09:35:26,648::Main::DEBUG::PluginsManager.register(): added 'Panoduino 1' plugin with capacity 'yawAxis'
018-04-27 09:35:26,648::Main::TRACE::PanoduinoAxis._init()
018-04-27 09:35:26,650::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,651::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,651::Main::DEBUG::AbstractPlugin._loadConfig(): config={'NEUTRAL_POSITION': 1500, 'HIGH_LIMIT': 360.
, 'DIRECTION': u'reverse', 'ANGLE_1MS': 330.0, 'ACCEL': 1, 'LOW_LIMIT': -360.0, 'DRIVER_TYPE': 'bluetooth', 'ADDITIONAL
DELAY': 0.5, 'SPEED': 5, 'CHANNEL': 1}
018-04-27 09:35:26,651::Main::DEBUG::PluginsManager.register(): added 'Panoduino 1' plugin with capacity 'pitchAxis'
018-04-27 09:35:26,653::Main::TRACE::PanoduinoShutter._init()
018-04-27 09:35:26,654::Main::TRACE::ShutterPlugin._init()
018-04-27 09:35:26,654::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,654::Main::TRACE::ShutterPlugin._defineConfig()
018-04-27 09:35:26,654::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,655::Main::DEBUG::AbstractPlugin._loadConfig(): config={'DRIVER_TYPE': 'bluetooth', 'PULSE_WIDTH_LOW
: 250, 'BULB_ENABLE': False, 'MIRROR_LOCKUP': False, 'SHUTTER_ON': 2000, 'SHUTTER_OFF': 1000, 'BRACKETING_NB_PICTS': 1,
'TIME_VALUE': 0.5, 'CHANNEL': 2, 'PULSE_WIDTH_HIGH': 250, 'TRIGGER_ONLY_ONCE': False}
018-04-27 09:35:26,657::Main::DEBUG::PluginsManager.register(): added 'Panoduino 1' plugin with capacity 'shutter'
018-04-27 09:35:26,657::Main::DEBUG::PluginsManager.register(): found 'pixOrbPlugins' module
018-04-27 09:35:26,673::Main::TRACE::PixOrbAxis._init()
018-04-27 09:35:26,674::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,674::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,674::Main::DEBUG::AbstractPlugin._loadConfig(): config={'AXIS_ACCURACY': 0.10000000000000001, 'HIGH_
IMIT': 360.0, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'SPEED_INDEX': 9, 'AXIS_WITH_BREAK': False}
018-04-27 09:35:26,676::Main::DEBUG::PluginsManager.register(): added 'PixOrb 1' plugin with capacity 'yawAxis'
018-04-27 09:35:26,677::Main::TRACE::PixOrbAxis._init()
018-04-27 09:35:26,677::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,677::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,678::Main::DEBUG::AbstractPlugin._loadConfig(): config={'AXIS_ACCURACY': 0.10000000000000001, 'HIGH_
IMIT': 360.0, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'SPEED_INDEX': 9, 'AXIS_WITH_BREAK': False}
018-04-27 09:35:26,680::Main::DEBUG::PluginsManager.register(): added 'PixOrb 1' plugin with capacity 'pitchAxis'
018-04-27 09:35:26,680::Main::TRACE::PixOrbShutter._init()
018-04-27 09:35:26,680::Main::TRACE::ShutterPlugin._init()
018-04-27 09:35:26,681::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,683::Main::TRACE::ShutterPlugin._defineConfig()
018-04-27 09:35:26,684::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,684::Main::DEBUG::AbstractPlugin._loadConfig(): config={'DRIVER_TYPE': 'bluetooth', 'PULSE_WIDTH_LOW
: 250, 'BULB_ENABLE': False, 'MIRROR_LOCKUP': False, 'BRACKETING_NB_PICTS': 1, 'TIME_VALUE': 0.5, 'PULSE_WIDTH_HIGH': 2
0, 'TRIGGER_ONLY_ONCE': False}
018-04-27 09:35:26,684::Main::DEBUG::PluginsManager.register(): added 'PixOrb 1' plugin with capacity 'shutter'
018-04-27 09:35:26,687::Main::DEBUG::PluginsManager.register(): found 'pluginsConnector' module
018-04-27 09:35:26,687::Main::TRACE::PixOrbAxis._init()
018-04-27 09:35:26,688::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,688::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,690::Main::DEBUG::AbstractPlugin._loadConfig(): config={'AXIS_ACCURACY': 0.10000000000000001, 'HIGH_
IMIT': 360.0, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'SPEED_INDEX': 9, 'AXIS_WITH_BREAK': False}
018-04-27 09:35:26,690::Main::DEBUG::PluginsManager.register(): added 'PixOrb 2' plugin with capacity 'yawAxis'
018-04-27 09:35:26,690::Main::TRACE::PixOrbAxis._init()
018-04-27 09:35:26,691::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,691::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,693::Main::DEBUG::AbstractPlugin._loadConfig(): config={'AXIS_ACCURACY': 0.10000000000000001, 'HIGH_
IMIT': 360.0, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'SPEED_INDEX': 9, 'AXIS_WITH_BREAK': False}
018-04-27 09:35:26,694::Main::DEBUG::PluginsManager.register(): added 'PixOrb 2' plugin with capacity 'pitchAxis'
018-04-27 09:35:26,694::Main::TRACE::PixOrbShutter._init()
018-04-27 09:35:26,694::Main::TRACE::ShutterPlugin._init()
018-04-27 09:35:26,696::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,697::Main::TRACE::ShutterPlugin._defineConfig()
018-04-27 09:35:26,697::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,697::Main::DEBUG::AbstractPlugin._loadConfig(): config={'DRIVER_TYPE': 'bluetooth', 'PULSE_WIDTH_LOW
: 250, 'BULB_ENABLE': False, 'MIRROR_LOCKUP': False, 'BRACKETING_NB_PICTS': 1, 'TIME_VALUE': 0.5, 'PULSE_WIDTH_HIGH': 2
0, 'TRIGGER_ONLY_ONCE': False}
018-04-27 09:35:26,698::Main::DEBUG::PluginsManager.register(): added 'PixOrb 2' plugin with capacity 'shutter'
018-04-27 09:35:26,700::Main::DEBUG::PluginsManager.register(): found 'pluginsManager' module
018-04-27 09:35:26,700::Main::TRACE::PixOrbAxis._init()
018-04-27 09:35:26,700::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,701::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,701::Main::DEBUG::AbstractPlugin._loadConfig(): config={'AXIS_ACCURACY': 0.10000000000000001, 'HIGH_
IMIT': 360.0, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'SPEED_INDEX': 9, 'AXIS_WITH_BREAK': False}
018-04-27 09:35:26,703::Main::DEBUG::PluginsManager.register(): added 'PixOrb' plugin with capacity 'yawAxis'
018-04-27 09:35:26,703::Main::TRACE::PixOrbAxis._init()
018-04-27 09:35:26,704::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,704::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,706::Main::DEBUG::AbstractPlugin._loadConfig(): config={'AXIS_ACCURACY': 0.10000000000000001, 'HIGH_
IMIT': 360.0, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'SPEED_INDEX': 9, 'AXIS_WITH_BREAK': False}
018-04-27 09:35:26,707::Main::DEBUG::PluginsManager.register(): added 'PixOrb' plugin with capacity 'pitchAxis'
018-04-27 09:35:26,707::Main::TRACE::PixOrbShutter._init()
018-04-27 09:35:26,709::Main::TRACE::ShutterPlugin._init()
018-04-27 09:35:26,709::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,710::Main::TRACE::ShutterPlugin._defineConfig()
018-04-27 09:35:26,710::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,710::Main::DEBUG::AbstractPlugin._loadConfig(): config={'DRIVER_TYPE': 'bluetooth', 'PULSE_WIDTH_LOW
: 250, 'BULB_ENABLE': False, 'MIRROR_LOCKUP': False, 'BRACKETING_NB_PICTS': 1, 'TIME_VALUE': 0.5, 'PULSE_WIDTH_HIGH': 2
0, 'TRIGGER_ONLY_ONCE': False}
018-04-27 09:35:26,711::Main::DEBUG::PluginsManager.register(): added 'PixOrb' plugin with capacity 'shutter'
018-04-27 09:35:26,713::Main::DEBUG::PluginsManager.register(): found 'shutterPlugin' module
018-04-27 09:35:26,716::Main::TRACE::PixOrbAxis._init()
018-04-27 09:35:26,716::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,717::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,717::Main::DEBUG::AbstractPlugin._loadConfig(): config={'AXIS_ACCURACY': 0.10000000000000001, 'HIGH_
IMIT': 360.0, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'SPEED_INDEX': 9, 'AXIS_WITH_BREAK': False}
018-04-27 09:35:26,719::Main::DEBUG::PluginsManager.register(): added 'PixOrb 1' plugin with capacity 'yawAxis'
018-04-27 09:35:26,719::Main::TRACE::PixOrbAxis._init()
018-04-27 09:35:26,720::Main::TRACE::AbstractHardwarePlugin._defineConfig()
018-04-27 09:35:26,720::Main::TRACE::AbstractPlugin._loadConfig()
018-04-27 09:35:26,720::Main::DEBUG::AbstractPlugin._loadConfig(): config={'AXIS_ACCURACY': 0.10000000000000001, 'HIGH_
IMIT': 360.0, 'DRIVER_TYPE': 'bluetooth', 'LOW_LIMIT': -360.0, 'SPEED_INDEX': 9, 'AXIS_WITH_BREAK': False}
018-04-27 09:35:26,721::Main::DEBUG::PluginsManager.register(): added 'PixOrb 1' plugin with capacity 'pitchAxis'
018-04-27 09:35:26,721::Main::TRACE::PixOrbShutter._init()
018-04-27 09:35:26,723::Main::EXCEPTION::main()
raceback (most recent call last):
File "C:\temp\papy4\Papywizard-f7270c1732296b43fc7b94d50ceba8ac316632cb\papywizard\scripts\main.py", line 193, in main

PluginsManager ().load()
File "C:\temp\papy4\Papywizard-f7270c1732296b43fc7b94d50ceba8ac316632cb\papywizard\plugins\pluginsManager.py", line 94
in load
self.parseDir(config.USER_PLUGINS_DIR)
File "C:\temp\papy4\Papywizard-f7270c1732296b43fc7b94d50ceba8ac316632cb\papywizard\plugins\pluginsManager.py", line 11
, in parseDir
module.register()
File "C:\Users\Twinkle\AppData\Roaming\papywizard2\plugins\pixOrbPlugins.py", line 297, in register
PluginsManager().register(PixOrbShutter, PixOrbShutterController, capacity='shutter', name=NAME)
File "C:\Users\Twinkle\AppData\Roaming\papywizard2\plugins\pluginsManager.py", line 144, in register
model = pluginClass(capacity, name)
File "C:\temp\papy4\Papywizard-f7270c1732296b43fc7b94d50ceba8ac316632cb\papywizard\plugins\abstractPlugin.py", line 83
in __init__
self._init()
File "C:\Users\Twinkle\AppData\Roaming\papywizard2\plugins\pixOrbPlugins.py", line 256, in _init
ShutterPlugin._init(self)
ypeError: unbound method _init() must be called with ShutterPlugin instance as first argument (got PixOrbShutter instan
e instead)
:\temp\papy4\Papywizard-f7270c1732296b43fc7b94d50ceba8ac316632cb\papywizard\scripts\main.py:274: DeprecationWarning: Ba
eException.message has been deprecated as of Python 2.6
msg = msg.message # Windows exception?



Does anyone have any idea where the problem is? It must be my Python2.6 config. I am an experience software developer (PL/SQL / C#, PHP ) but never used Python until 48 hrs ago.

TIA

DArren

no avatar
dazzlera
New member
 
Topic author
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 27, 2018 9:39 am
Info

Re: Building Papywizard

by dazzlera » Sat Apr 28, 2018 11:28 am

Update on this - I have got PapyWizard to run - however none of the windows open when you try to configure preferences work nor does it connect to my Skywatcher mount. My initial problem seems to be have caused by an existing installation of Papywizard and if I removed the plugins directory it created running from source seemed to work.

no avatar
dazzlera
New member
 
Topic author
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 27, 2018 9:39 am
Info

Re: Building Papywizard

by dazzlera » Thu May 03, 2018 10:23 am

I'm still stuck building papywizard :(

I've built it in python 2.5, 2.6 and 2.7 on Windows 10 and Windows 2003 server. Got it to run and build using py2exe but each time exactly the same thing. The main window opens but non of the windows open nor does the ui seem to work, but the buttons are click able etc..

The logs don't show any exceptions, they just stop :(

I've included what I think are all the correct dlls for the appropriate version of python.

I'm now compiling pyqt4. 7.3 to see if that works rather than Pyt4.9.x that are prebuilt built binaries.

Is there anyone can help me out?

no avatar
dazzlera
New member
 
Topic author
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 27, 2018 9:39 am
Info

Re: Building Papywizard

by dazzlera » Sun May 13, 2018 10:15 am

OK - I finally got a PapyWizard v2.1.21 to build using :

PY26 and PYQT4.5.4

However none but the connect menus work. There seems to be an issue with the version of PYQT and Papywizard on windows where the PYQT activated() event doesn't work. The solution I found was to re code everything to use the clicked() event handler and it all works now. It's a bodge but it works for me

Any how, the reason why I want to build Papywizard is when doing timelapses the Papywizard UI either occasionally showed 'FAILED' or got stuck on showing 'MOVING'. Which was really no good and made this great software impossible to use.

So out of 20 test timelapses all but 1 failed. Each timelapse had about 400 control points. It would fail anywhere at the start, middle, near the end. I replaced my USB serial cable and leads with decent quality cables and exactly the same errors.

So here's an example log of a fail :

2018-05-11 10:46:20,773::Spy::DEBUG::DMA -Returning Value- MerlinOrionHardware.__sendCmd(): axis 2 ans='1F5980'
2018-05-11 10:46:20,773::Shooting::INFO::DMA-MerlinOrionHardware.__sendCmd(): axis 2 cmd=':j2\r'
2018-05-11 10:46:20,779::Shooting::INFO::DMA-MerlinOrionHardware.__sendCmd(): c=':'
2018-05-11 10:46:20,779::Shooting::INFO::DMA-MerlinOrionHardware.__sendCmd(): c='j'
2018-05-11 10:46:20,782::Shooting::INFO::DMA-MerlinOrionHardware.__sendCmd(): c='2'
2018-05-11 10:46:20,782::Shooting::INFO::DMA-MerlinOrionHardware.__sendCmd(): c='\r'
2018-05-11 10:46:20,786::Shooting::INFO::DMA-MerlinOrionHardware.__sendCmd(): c='='
2018-05-11 10:46:20,786::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='1'
2018-05-11 10:46:20,788::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='F'
2018-05-11 10:46:20,788::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='5'
2018-05-11 10:46:20,789::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='9'
2018-05-11 10:46:20,789::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='8'
2018-05-11 10:46:20,790::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='\x00'
2018-05-11 10:46:20,792::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='0'
2018-05-11 10:46:20,792::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='\r'
2018-05-11 10:46:20,793::Shooting::DEBUG::DMA -Returning Value- MerlinOrionHardware.__sendCmd(): axis 2 ans='1F598\x000'
2018-05-11 10:46:20,793::Shooting::EXCEPTION::Shooting.start()
Traceback (most recent call last):
File "C:\temp\papy6\trunk\papywizard\model\shooting.py", line 600, in start
realYaw, realPitch = self.head.readPosition()
File "C:\temp\papy6\trunk\papywizard\model\head.py", line 155, in readPosition
pitch = self.pitchAxis.read()
File "C:\temp\papy6\trunk\papywizard\plugins\merlinOrionPlugins.py", line 205, in read
pos = self._hardware.read() - self._offset
File "C:\temp\papy6\trunk\papywizard\hardware\merlinOrionHardware.py", line 210, in read
pos = self.__encoderToAngle(self.__decodeAxisValue(value))
File "C:\temp\papy6\trunk\papywizard\hardware\merlinOrionHardware.py", line 84, in __decodeAxisValue
value += eval("0x%s" % strValue[i*2:i*2+2]) * 2 ** (i * 8)
TypeError: expected string without null bytes
2018-05-11 10:46:20,795::Shooting::ERROR::Unhandled exception in shoot process
2018-05-11 10:46:20,795::Main::DEBUG::ShootController.__onShootingStopped(): status=fail
2018-05-11 10:46:20,974::Spy::DEBUG::DMA HERE

You will see - the line - 2018-05-11 10:46:20,790::Shooting::INFO::DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c='\x00'


this is the cause of the failures. As I understand my Sky Watcher AllView mount occasionally returns a null/empty in the middle of return the output from a set command. It seems to get this every 1 in every 200-400 command sent.

So I added the following line in the file merlinorionhardware.py


if c != '\x00':
answer += c

e.g.
cmd = ":%s%d%s\r" % (cmd, self._axis, param)
Logger().info("DMA-MerlinOrionHardware.__sendCmd(): axis %d cmd=%s" % (self._axis, repr(cmd)))
for nbTry in xrange(self._nbRetry):
try:
answer = ""
self._driver.empty()
self._driver.write(cmd)
c = ''
while c not in ('=', '!'):
c = self._driver.read(1)
Logger().info("DMA-MerlinOrionHardware.__sendCmd(): c=%s" % repr(c))
if c == '!':
c = self._driver.read(1) # Get error code
raise IOError("Error in command %s (err=%s)" % (repr(cmd), c))
answer = ""
while True:
c = self._driver.read(1)
Logger().info("DMA-Got Answer-MerlinOrionHardware.__sendCmd(): c=%s" % repr(c))
if c == '\r':
break

if c != '\x00':
answer += c

except IOError:
Logger().exception("MerlinOrionHardware.__sendCmd")
Logger().warning("MerlinOrionHardware.__sendCmd(): axis %d can't sent command %s. Retrying..." % (self._axis, repr(cmd)))
else:
break


This basically removes the null / empty string in the output. It could cause other problems though, but my gut feeling is it wont.

I have tested my fix over 30 times now and not one 'FAILED' or 'MOVING' message. I have forwarded this fix to the developer of Papywizard in a hope that he will consider this as a much needed fix.

In the meantime I have built my own binary for windows, it's not been tested in the field - but should work - it works on all the testing I've done so far. Anyone is welcome to a copy.


Who is online

Users browsing this forum: No registered users and 1 guest