Page 1 of 1

Built egg files never install/enable

Posted: Fri Jun 17, 2016 6:22 pm
by qqzx
I have followed the plugin wiki for building an egg file however the resulting file never seems to install properly.

I forked this plugin (https://github.com/omaralvarez/deluge-a ... us/core.py) and made some trivial change, such as changing the way it sorts to descending instead of ascending.

However, the resulting egg file never works.

In fact, if I make any change to the source, the egg just fails to be enabled; even if I make an even more trivial change such as adding an extra word or letter to a text description. This is true for 2.6 or 2.7 python versions.

Code: Select all

python setup.py bdist_egg
running bdist_egg
running egg_info
writing AutoRemovePlus.egg-info\PKG-INFO
writing top-level names to AutoRemovePlus.egg-info\top_level.txt
writing dependency_links to AutoRemovePlus.egg-info\dependency_links.txt
writing entry points to AutoRemovePlus.egg-info\entry_points.txt
reading manifest file 'AutoRemovePlus.egg-info\SOURCES.txt'
writing manifest file 'AutoRemovePlus.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\bdist.win32\egg
creating build\bdist.win32\egg\autoremoveplus
copying build\lib\autoremoveplus\common.py -> build\bdist.win32\egg\autoremovepl
us
copying build\lib\autoremoveplus\core.py -> build\bdist.win32\egg\autoremoveplus

creating build\bdist.win32\egg\autoremoveplus\data
copying build\lib\autoremoveplus\data\autoremoveplus.js -> build\bdist.win32\egg
\autoremoveplus\data
copying build\lib\autoremoveplus\data\config.glade -> build\bdist.win32\egg\auto
removeplus\data
copying build\lib\autoremoveplus\gtkui.py -> build\bdist.win32\egg\autoremoveplu
s
copying build\lib\autoremoveplus\webui.py -> build\bdist.win32\egg\autoremoveplu
s
copying build\lib\autoremoveplus\__init__.py -> build\bdist.win32\egg\autoremove
plus
byte-compiling build\bdist.win32\egg\autoremoveplus\common.py to common.pyc
byte-compiling build\bdist.win32\egg\autoremoveplus\core.py to core.pyc
byte-compiling build\bdist.win32\egg\autoremoveplus\gtkui.py to gtkui.pyc
byte-compiling build\bdist.win32\egg\autoremoveplus\webui.py to webui.pyc
byte-compiling build\bdist.win32\egg\autoremoveplus\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying AutoRemovePlus.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying AutoRemovePlus.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying AutoRemovePlus.egg-info\dependency_links.txt -> build\bdist.win32\egg\EG
G-INFO
copying AutoRemovePlus.egg-info\entry_points.txt -> build\bdist.win32\egg\EGG-IN
FO
copying AutoRemovePlus.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\AutoRemovePlus-0.5.1-py2.6.egg' and adding 'build\bdist.win32\egg
' to it
removing 'build\bdist.win32\egg' (and everything under it)
Resulting egg file (2.6) can be found attached to this post.

Does anyone know why this is happening, and the egg files never work after I build them?

Re: Built egg files never install/enable

Posted: Sun Jun 19, 2016 8:00 am
by kones
Had the same problem with the same plugin. Same thing happens even if I made an egg without touching any files.
How I fixed.
deleted the AutoRemovePlus-0.5.1-py2.x.egg in /deluge/plugins folder
deleted the AutoRemovePlus.conf files
restarted deluge

installed new egg and it worked :)
made an account to share.. had me frustrated for a while and found your post while trying to figure it out.

Re: Built egg files never install/enable

Posted: Mon Jun 20, 2016 7:21 pm
by qqzx
kones wrote:Had the same problem with the same plugin. Same thing happens even if I made an egg without touching any files.
How I fixed.
deleted the AutoRemovePlus-0.5.1-py2.x.egg in /deluge/plugins folder
deleted the AutoRemovePlus.conf files
restarted deluge

installed new egg and it worked :)
made an account to share.. had me frustrated for a while and found your post while trying to figure it out.
Thank you :)

It seems deluge daemon required a restart after changing the source. Now everything works as expected.

Re: Built egg files never install/enable

Posted: Sat Jun 25, 2016 4:11 pm
by XxOsurfer3xX
I will put this in the README on the repository in case other users run into the same issues.