 |
 | Problem with compiling and installer building |  |
svs
Joined: 16 Aug 2010 |
Posts: 0 |
|
|
 |
Posted: Tue Aug 17, 2010 1:13 am |
|
 |
 |
 |
 |
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.
|
|
 |
 | |  |
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Tue Aug 17, 2010 6:06 am |
|
 |
 |
 |
 |
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.
|
|
svs
Joined: 16 Aug 2010 |
Posts: 0 |
|
|
 |
Posted: Tue Aug 17, 2010 7:56 am |
|
 |
 |
 |
 |
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?
|
|
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Wed Aug 18, 2010 12:01 am |
|
 |
 |
 |
 |
no, setup_all.py should do that for you
|
|
svs
Joined: 16 Aug 2010 |
Posts: 0 |
|
|
 |
Posted: Wed Aug 18, 2010 1:18 am |
|
 |
 |
 |
 |
Thank you!
|
|
svs
Joined: 16 Aug 2010 |
Posts: 0 |
|
|
 |
Posted: Wed Aug 18, 2010 12:27 pm |
|
 |
 |
 |
 |
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?
|
|
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Wed Aug 18, 2010 2:26 pm |
|
 |
 |
 |
 |
did you install clamscan.exe and libclamav dlls into clamwin\bin too?
|
|
svs
Joined: 16 Aug 2010 |
Posts: 0 |
|
|
 |
Posted: Thu Aug 19, 2010 6:22 am |
|
 |
 |
 |
 |
Yes I did.
Please see attached bitmap
https://www.postimage.org/image.php?v=PqmAU7r 
|
|
svs
Joined: 16 Aug 2010 |
Posts: 0 |
|
|
 |
Posted: Thu Aug 19, 2010 9:57 am |
|
 |
 |
 |
 |
ClamWin is started but when I try to run 'Scan' - doesn't nothing.
No errors, warnings or log files. Just nothing....
Any ideas, please.
|
|
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Thu Aug 19, 2010 3:01 pm |
|
 |
 |
 |
 |
check %tmp%\clamwin.log file after you click scan
|
|
 |
 | |  |
svs
Joined: 16 Aug 2010 |
Posts: 0 |
|
|
 |
Posted: Fri Aug 20, 2010 1:11 am |
|
 |
 |
 |
 |
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?
|
|
 |
 | |  |
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Fri Aug 20, 2010 2:11 am |
|
 |
 |
 |
 |
I would have no idea. You need to debug it in Python by running clamwin.py from a python shell
|
|
svs
Joined: 16 Aug 2010 |
Posts: 0 |
|
|
 |
Posted: Fri Aug 20, 2010 6:57 am |
|
 |
 |
 |
 |
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.
|
|
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Fri Aug 20, 2010 7:08 am |
|
 |
 |
 |
 |
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
|
|
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
|
|
|
Powered by phpBB © phpBB Group
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.
|  |