Feed Notifier Source Code Released
2010 July 19
I have released Feed Notifier’s source code under a BSD license. I have no reason to keep the source code to myself and I can’t keep up with the feature requests and bug fixes as quickly as I would like. If anyone wants to contribute software patches, I will be happy to review them and possibly include them in future versions of the software. Check out the Download page and enjoy!
19 Responses
leave one →
Hi, thanks for releasing the source code. This will help other programmer to take this app to greater accessibility. I am downloading the source and let you know if i could be any help.
Thanks!
Dear Mr. Fogelman,
First of all I like your application, its simple easy to use and has a fair amount of features.
My employers have opted to use your application as part of a desktop alert system that uses an underlying Feed.
They have requested me to modify your open source project to fit some of the constraints of the organization (disabling options in the pop-up menu, so that employees cannot unsubscribe themselves from a work feed, or subscribe to a non-work feed).
I have been attempting to get the source code to re-compile into a binary executable but am running into multiple issues.
1.) Firstly, which version of Python did you use to build this application?
2.) Would you be willing to post the list of modules that you used in order to build this application? I am having a lot of difficulty setting up the development environment correctly in order to just recompile the .exe file… btw, I am using Eclipse (Helios) w/ PyDev IDE.
3.) The reason Feed Notifier fails to successfully recompile the .exe from script, it is missing the following modules:
- _scproxy (this module appears to be a deprecated module from Python 2.4 and lower?)
- chardet (I’m having trouble unpacking the .egg file)
- chardet.constants (I’m having trouble unpacking the .egg file)
- cjkcodecs.aliases (CJK is only available for Python 2.3?)
- mx.Tidy (searched and found this module, however it only works on Python 2.5?)
- tidy (related to mx.Tidy?)
4.) I have attempted to compile this project by using Python 2.5, Python 2.6 and Python 2.7, varying degrees of success, got closest (fewest missing modules, least amount of “showstopper” errors) with Python 2.7…
5.) I am a newbie to Python, but I have previous OOP and Scripting experience with C, C++, C#, & PHP, etc., so if you would toss me any hints that you think might help, I would greatly appreciate it!
Thanks in advance!
Jesse
Hi JDP,
1. Python 2.6
2. wxPython 2.8.10.1, PLY 3.3, feedparser 4.1, py2exe
3. I have no idea why you’re seeing those failures, I don’t even recognize most of those module names. Have you just tried running “python main.py” to see if you can just run the app from source?
You’re doing this on Windows? What version? I’ve only built and tested on XP, but I don’t think that’s the issue here.
Michael
Michael,
Thank you so much for the feedback!
As for OS, all the computers here are XP, so that shouldn’t be the issue…
The information helps out a lot, especially the Python Version number you used, and the corresponding modules that are needed.
I think part of the issue I’m having is that I’m using a computer at work that does not have write permissions to the system32 folder, which is where I believe Python is looking for certain DLL’s.
When I try and just run main.py, the program gives me the error: “wx Module missing”, so hopefully after I am able to secure write access to the system32 folder, I can copy the module .dll files over to that folder, and hopefully that will solve the issue of being able to just run the source code.
After that I’ll work on re-compiling the .exe. I will post the results of my efforts back to this site, so that if any other developers wanting to work with your program will have a FAQ to refer to.
Thanks again!
Jesse
Michael,
I have an update for you:
1.) I acquired administrator rights to my machine at work.
2.) I reinstalled Python 2.6 after I removed all versions of Python from my work computer.
3.) I reinstalled all the modules you named, PLY, FeedParser, wx, py2exe, etc.
4.) I attempted to recompile the project into an executable, but it says that there are still required modules that are missing (same as above)
5.) I took your advice and attempted to execute the program from source code and it worked!
So the only issue I need to resolve is the problem with compiling your project from source code into a .exe file. Any suggestions, hints, tips or other advice? I am stuck…
Thanks for your help in advance.
Jesse
Michael,
One final update for you and any other users that may wish to utilize your program.
I finally got the compiled script to execute properly!
The trick turned out to be that you need three folders included along with the executable.
1. Icons
2. Sounds
3. Microsoft.VC90.CRT
These three folders can be obtained by simply downloading the installation package you provide off of this website. Just make sure these three folders and their contents are in the “dist” folder where Feed Notifier gets compiled to!
Thanks again for your helpful hints and for releasing this project as open source freeware!
Regards,
Jesse
Edit to my 10-20-2010 posting:
The compiler warnings are still in the compilation output, but as long as you have those folders in there the scripts will compile into an executable file that will run. For reference I am referring to item # 3 in my post dated 9-20-2010, those python modules are apparently not needed in order to get it to compile.
Ignore these following missing modules warnings (if they come up for you too during script compilation):
- _scproxy (this module appears to be a deprecated module from Python 2.4 and lower?)
- chardet (I’m having trouble unpacking the .egg file)
- chardet.constants (I’m having trouble unpacking the .egg file)
- cjkcodecs.aliases (CJK is only available for Python 2.3?)
- mx.Tidy (searched and found this module, however it only works on Python 2.5?)
- tidy (related to mx.Tidy?)
You WILL however need the Modules that Mr. Fogelman mentioned:
Python 2.6 (approximate version works fine, but must be 2.6.x)
“wxPython 2.8.10.1, PLY 3.3, feedparser 4.1, py2exe” (approximate versions seem to work just fine)
Just thought I would share my difficulties and solutions/work-arounds with the community. :)
j
Than’X Mr. Fogleman, excellent work!
2 J D P
Source code works perfectly!
You must install some components:
1. python-2.6.6.msi
2. pywin32-214.win32-py2.6.exe
3. py2exe-0.6.9.win32-py2.6.exe
4. wxPython2.8-win32-unicode-2.8.11.0-py26.exe
5. ply-3.3.tar.gz
6. feedparser-4.1.zip
and as You said, you must copy
1. Icons
2. Sounds
3. Microsoft.VC90.CRT
P.S. I am a newbie to Python and I have one question
in defaults.py
# Initial Setup
DEFAULT_FEED_URLS = [
'http://.........',
]
I want change default feed to https://…. but after changes notifier dont ask login and password at first run
Anybody know how to fix it?
Than’X
As a beginner with wxPython, sharing your source code is a marvelous base of inspiration to see / know how things are working together on a complet application. Your code is really clean and readable, great job.
Did you use any software as Boa Constructor or wxGlade ? Or did you manage to do all this code by hand ?
Cheers from France :-)
Successfully compiled, after:
installing:
python-2.7.1
py2exe-0.6.9.win32-py2.7
ply-3.4
feedparser-5.0.1
wxPython2.8.11.0-py27
pywin32-216
copying 1. Icons 2. Sounds 3. Microsoft.VC90.CRT into ./dist folder
copying ./Microsoft.VC90.CRT/msvcp90.dll into C:/Python27/DLLs folder.
works great.
When a new item is detected, this program will show up a balloon for 1~60 seconds, configurable. I would like the option to keep the balloon until user click it. Modified the code as http://benincampus.blogspot.com/2011/03/rss-notifier.html
Диеты. Вы смотрите раздел Диеты. Разделы. Первые блюда · Вторые блюда · Салаты · Закуски · Выпечка · Напитки · Десерты · Десерты · Соусы
На Slimmers Вы узнаете все свежее, модное и актуальное о фитнесе, современных диетах и местах, где, собственно, правильное питание и культивируется.
Подборка эффективных диет. Свежие новости Украины и мира на UKR.NET.
Как похудеть на Кремлевской диете, таблица, рецепты, отзывы о диете.
Все диеты: эффективная диета, быстрая диета – Smak.ua. Диета от Smak.ua приходит вам на помощь – быстрая диета, которая оперативно вернет форму;
Nice app… thanks for releasing the source code, others could help now and study.
Hi there, is there a way to “pre-configure” this app with a feed? Thanks!
in defaults.py
# Initial Setup
DEFAULT_FEED_URLS = [
'http://.........',
]
hello!,I like your writing very much! percentage we keep up a correspondence extra about your article on AOL? I need a specialist on this area to unravel my problem. May be that is you! Having a look forward to see you.
Hi,
hey edited the source code to use the program in our company and I can run I by running the main.py directly. but if i want to compile it, I get a couple of errors.
Can anybody compile it for me?
Just for reference I ran into an error when creating running notifier.exe in the dist folder:
Traceback (most recent call last):
File “main.py”, line 47, in
File “main.py”, line 34, in main
File “zipextimporter.pyo”, line 82, in load_module
File “ipc.pyo”, line 13, in
File “zipextimporter.pyo”, line 98, in load_module
ImportError: MemoryLoadLibrary failed loading win32file.pyd
This was resolved by changing the bundle_files option for py2exe from 1 (bundle everything) to 3 (don’t bundle) in setup.py:
# Build the distribution.
setup(
options = {“py2exe”:{
“compressed”: 1,
“optimize”: 1,
“bundle_files”: 3,
…
I don’t know why that makes a difference in the version of py2exe that I have (py2exe-0.6.9.win32-py2.7.exe) but it was a relatively common suggestion in several other posts around the internet as well. I’m fine with not having things bundled so that’s as far as I took it.
Also on another note if you want to run build.bat and have the installer built you need to install “Inno Setup 5″ (any version 5 should do. I used 5.5.1) and create a folder called “installer” at the root project level (./installer).
I appreciate all of these back and forth comments here. I am working on getting the compile done, because we want to change the icons from an RSS icon to “alarms” or something else.
I got all of the python extensions installed so that I can run:
c:\python27\python.exe setup.py py2exe
After this successfully runs (with “bundle_files”: 3 in the setup.py file) I run the installer.iss file in Inno Setup Compiler 5.5.3 and dump the installer into an “installer2″ folder. I have the installer and get it installed, but when I run it, nothing shows up in my taskbar (as opposed to the stock install which does).
I had replaced most of the .png files in the “icons” folder with alarm icons of the same size and same name (i.e. 16.png, 32.png etc.), but I am obviously doing something wrong. Perhaps I need to be using the batch files in the source code folder?
Some step by step instructions on how change the icons and then successfully compile into an installer would be extremely helpful!