Run Dia localy

Hi,

I have downloaded and extracted the dia_pkg_1.3.8.zip. Like in the started guide, i try to run dia from cmd.exe. I receive the error message below. For me, it’s difficult to understand the problem. Could you help me?

Thanks.

Grigou

D:\dia>dia.py
Determining platform type… PC host environment assumed.

iDigi Device Integration Application Version 1.3.8
Using settings file: dia.yml
Core: initial garbage collection of 0 objects.
Core: post-settings garbage collection of 28 objects.
Starting Scheduler…
Starting Channel Manager…
Starting Device Driver Manager…
STransform(count_by_two): WARNING: cannot update property, it may not exist yett
arting Presentation Manager…


Exception during dynamic class load:
Traceback (most recent call last):
File “./src\common\abstract_service_manager.py”, line 195, in service_load
service_class = classloader(module_path, class_name)
File “./src\common\classloader.py”, line 52, in classloader
a_module = import(module_name, globals(), locals(), [‘’])
File “./src\presentations\console\console.py”, line 57, in
from presentations.console.console_tcp_server
File “./src\presentations\console\console_tcp_server.py”, line 33, in

from presentations.console.console_interface import ConsoleInterface

File “./src\presentations\console\console_interface.py”, line 56, in
import digi_cmd as cmd
File “./lib\digi_cmd.py”, line 77, in
from digi_readline import raw_input, socket_input
File “./lib\digi_readline.py”, line 38, in
from lib.serial import Serial
File “D:\dia\lib\serial_init_.py”, line 20, in
from serialwin32 import *
File “D:\dia\lib\serial\serialwin32.py”, line 9, in
import win32file # The base COM port and file IO functions.
ImportError: No module named win32file

Exception during core initialization:
Traceback (most recent call last):
File “./src\core\core_services.py”, line 251, in epoch
CoreServices.PresentationManager(core_services=self)
File “./src\presentations\presentation_manager.py”, line 60, in init
AbstractServiceManager.init(self, core_services, (‘presentations’,))
File “./src\common\abstract_service_manager.py”, line 105, in init
setting_defs=settings_list)
File “./src\settings\settings_base.py”, line 177, in init
accepted, rejected, not_found = self.apply_settings()
File “./src\common\abstract_service_manager.py”, line 121, in apply_settings
self._reenumerate_services()
File “./src\common\abstract_service_manager.py”, line 148, in _reenumerate_ser
vices
self.service_load(service[“driver”])
File “./src\common\abstract_service_manager.py”, line 201, in service_load
“unable to load ‘%s’: %s:%s” % (name, e.class, str(e))
ASMClassLoadError: unable to load ‘presentations.console.console:Console’: :No module named win32file
CoreServices: fatal exception caught! Halting execution.

I may be completely wrong here, so someone correct me if thats the case. Try installing the PyWin extensions (make sure you grab it for the correct version of python):

http://sourceforge.net/projects/pywin32/

Which version of python are you running? 2.4?

The PyWin extensions is always a good idea on a Windows machine (I’ve always preferred the IDE it offers, less like a UNIX editor).

I believe to run the CONSOLE presentation, you also need pyserial … but I do think Dia includes this already in the src/lib/serial directory.

As per our Dia online documentation:

Note
From iDigi Dia 1.3 onward, to run it on a PC you must install pywin previously. Please, install pywin for Python 2.4. It may be downloaded from this link:
http://sourceforge.net/projects/pywin32/files/