ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Problem with compiling and installer building
svs


Joined: 16 Aug 2010
Posts: 0
Reply with quote
Hello

1.
I'm trying to build the Python modules (using your instructions from https://wiki.clamwin.com/index.php/Building_ClamWin)

when I run 'setup_all.py py2exe'
I have following error:
-----------------
The following modules appear to be missing
['BalloonTip', 'mx', 'pyc', 'pywin.dialogs', 'pywin.dialogs.list']
-----------------

What does it mean? Is it required modules for ClamWin installer building?



2.
When I run the installer setup I have:
...... dist\lib\clamwin.zip does not exist
Source: py2exe\dist\lib\clamwin.zip; DestDir: {app}\lib; Components: ClamWin; Flags: restartreplace uninsrestartdelete

Following your instruction:
===========
Build the Python modules
.....
- Edit setup_all.py and comment out the line with lib\clamwin.zip
...
===========
What the ZIP contains?


Thank you.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
you need to build balloontip.pyd and pyc.pyd c++ modules from the included source code. The others are not needed.

pyc: https://clamwin.svn.sourceforge.net/viewvc/clamwin/trunk/addons/pyc/ (you can skip pyc if you do not intend to clamwin Outlook plugin)
balloontip: https://clamwin.svn.sourceforge.net/viewvc/clamwin/trunk/clamwin/py/BalloonTip/ (you can skip balloontip if you do not intend to run clamwin on Win9x)

clamwin.zip file contains the built python modules and clamwin will not work without it.
View user's profileSend private message
svs


Joined: 16 Aug 2010
Posts: 0
Reply with quote
OK, so I need zip the folder 'bin' (or his contents???) from ...\Setup\py2exe\dist and copy the zip file to py2exe\dist\lib\clamwin.zip.
Correct?
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
no, setup_all.py should do that for you
View user's profileSend private message
svs


Joined: 16 Aug 2010
Posts: 0
Reply with quote
Thank you!
View user's profileSend private message
svs


Joined: 16 Aug 2010
Posts: 0
Reply with quote
I built the installer and installed ClamWin (in accordance with your description, without any problems).
BUT started ClanWin doesn't run scanning, any error/warnings ...

What I do wrong? How I can check where is problem?
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
did you install clamscan.exe and libclamav dlls into clamwin\bin too?
View user's profileSend private message
svs


Joined: 16 Aug 2010
Posts: 0
Reply with quote
Yes I did.

Please see attached bitmap
https://www.postimage.org/image.php?v=PqmAU7r
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
svs wrote:
Yes I did.

Please see attached bitmap
https://www.postimage.org/image.php?v=PqmAU7r


and what happens when you run clamwin.exe?
View user's profileSend private message
svs


Joined: 16 Aug 2010
Posts: 0
Reply with quote
ClamWin is started but when I try to run 'Scan' - doesn't nothing.
No errors, warnings or log files. Just nothing....

Any ideas, please.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
check %tmp%\clamwin.log file after you click scan
View user's profileSend private message
svs


Joined: 16 Aug 2010
Posts: 0
Reply with quote
I found the log:
System Locale: ('ru_RU', 'cp1251')
Default Encoding: cp1251
command line path:
Scanning: "D:\tmp"
clamscan.exe command line: "C:\Program Files\ClamWin\bin\clamscan.exe" --tempdir "c:\docume~1\svs\locals~1\temp" --keep-mbox --stdout --database="C:\Documents and Settings\All Users\.clamwin\db" --log="c:\docume~1\svs\locals~1\temp\tmpqjoqit" --infected --max-files=500 --max-scansize=150M --max-recursion=50 --max-filesize=100M --show-progress --recursive --exclude="[^\]*\.dbx$" --exclude="[^\]*\.tbb$" --exclude="[^\]*\.pst$" --exclude="[^\]*\.dat$" --exclude="[^\]*\.log$" --exclude="[^\]*\.evt$" --exclude="[^\]*\.nsf$" --exclude="[^\]*\.ntf$" --exclude="[^\]*\.chm$" --kill "D:\tmp"
Traceback (most recent call last):
File "wxFrameMain.pyo", line 387, in OnScanButton
File "wxDialogUtils.pyo", line 150, in wxScan
File "wxDialogStatus.pyo", line 109, in create
File "wxDialogStatus.pyo", line 191, in __init__
TypeError: __init__() got an unexpected keyword argument


What does it mean? How I can fix it?
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
I would have no idea. You need to debug it in Python by running clamwin.py from a python shell
View user's profileSend private message
svs


Joined: 16 Aug 2010
Posts: 0
Reply with quote
I found similar problem:
"how to compile clamWin sources?" - https://forums.clamwin.com/viewtopic.php?t=332

The post contains solution:
======================
.....
TypeError: __init__() got an unexpected keyword argument 'useParentBackground'
WTF?!

After copying Libs from original install -- works great. Thank you alch.
......
======================
What is "copying Libs from original install"?


Second - "You need to debug it in Python by running clamwin.py from a python shell".
I didn't work with Python. Can you help how I can run the debug?
Thank you.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
most likely you are not using the required (old) version of wxWidgets - 2.4.2.4

the libs would be built modules in clamwin\lib folder
View user's profileSend private message
Problem with compiling and installer building
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 2  

  
  
 Reply to topic