Page MenuHomePhabricator

not running
Closed, WontfixPublic

Description

OpenSuse Thumbleweed. Enlightenment.

darkstarx@linux:~/projects/epour> sudo ./setup.py install
running install
running build
running build_py
running build_scripts
running build_i18n
intltool-update -p -g epour
running build_icons
running build_help
running install_lib
creating /usr/lib/python2.7/site-packages/epour
creating /usr/lib/python2.7/site-packages/epour/gui
copying build/lib/epour/gui/Preferences.py -> /usr/lib/python2.7/site-packages/epour/gui
copying build/lib/epour/gui/TorrentProps.py -> /usr/lib/python2.7/site-packages/epour/gui
copying build/lib/epour/gui/Widgets.py -> /usr/lib/python2.7/site-packages/epour/gui
copying build/lib/epour/gui/intrepr.py -> /usr/lib/python2.7/site-packages/epour/gui
copying build/lib/epour/gui/TorrentSelector.py -> /usr/lib/python2.7/site-packages/epour/gui
copying build/lib/epour/gui/__init.py -> /usr/lib/python2.7/site-packages/epour/gui
copying build/lib/epour/Epour.py -> /usr/lib/python2.7/site-packages/epour
copying build/lib/epour/
init.py -> /usr/lib/python2.7/site-packages/epour
copying build/lib/epour/session.py -> /usr/lib/python2.7/site-packages/epour
byte-compiling /usr/lib/python2.7/site-packages/epour/gui/Preferences.py to Preferences.pyc
byte-compiling /usr/lib/python2.7/site-packages/epour/gui/TorrentProps.py to TorrentProps.pyc
byte-compiling /usr/lib/python2.7/site-packages/epour/gui/Widgets.py to Widgets.pyc
byte-compiling /usr/lib/python2.7/site-packages/epour/gui/intrepr.py to intrepr.pyc
byte-compiling /usr/lib/python2.7/site-packages/epour/gui/TorrentSelector.py to TorrentSelector.pyc
byte-compiling /usr/lib/python2.7/site-packages/epour/gui/
init.py to init.pyc
byte-compiling /usr/lib/python2.7/site-packages/epour/Epour.py to Epour.pyc
byte-compiling /usr/lib/python2.7/site-packages/epour/
init.py to init__.pyc
byte-compiling /usr/lib/python2.7/site-packages/epour/session.py to session.pyc
running install_scripts
copying build/scripts-2.7/epour -> /usr/bin
changing mode of /usr/bin/epour to 755
running install_data
creating /usr/share/doc/epour
copying README -> /usr/share/doc/epour
copying build/mo/ko/LC_MESSAGES/epour.mo -> /usr/share/locale/ko/LC_MESSAGES
copying build/share/applications/epour.desktop -> /usr/share/applications
copying data/icons/128x128/apps/epour.png -> /usr/share/icons/hicolor/128x128/apps
copying data/icons/16x16/apps/epour.png -> /usr/share/icons/hicolor/16x16/apps
copying data/icons/192x192/apps/epour.png -> /usr/share/icons/hicolor/192x192/apps
copying data/icons/22x22/apps/epour.png -> /usr/share/icons/hicolor/22x22/apps
copying data/icons/24x24/apps/epour.png -> /usr/share/icons/hicolor/24x24/apps
copying data/icons/256x256/apps/epour.png -> /usr/share/icons/hicolor/256x256/apps
copying data/icons/32x32/apps/epour.png -> /usr/share/icons/hicolor/32x32/apps
copying data/icons/36x36/apps/epour.png -> /usr/share/icons/hicolor/36x36/apps
copying data/icons/48x48/apps/epour.png -> /usr/share/icons/hicolor/48x48/apps
copying data/icons/64x64/apps/epour.png -> /usr/share/icons/hicolor/64x64/apps
copying data/icons/72x72/apps/epour.png -> /usr/share/icons/hicolor/72x72/apps
copying data/icons/96x96/apps/epour.png -> /usr/share/icons/hicolor/96x96/apps
running install_egg_info
Writing /usr/lib/python2.7/site-packages/epour-0.6.9-py2.7.egg-info

WARNING: the following files are not recognized by DistUtilsExtra.auto: epour.png

darkstarx@linux:~/projects/epour> epour
Traceback (most recent call last):

File "/usr/bin/epour", line 5, in <module>
  from epour.Epour import Epour
File "/usr/bin/epour.py", line 5, in <module>
  from epour.Epour import Epour

ImportError: No module named Epour

What is wrong?

se.darkzonex updated the task description. (Show Details)
bu5hm4n added a project: Restricted Project.Aug 25 2016, 12:08 AM
bu5hm4n added a subscriber: DaveMDS.
DaveMDS assigned this task to kuuko.Aug 25 2016, 1:52 AM

Yes. Branch master.

kuuko added a comment.Aug 25 2016, 8:32 AM

I don't know why it's not finding the installed package. But in any case, Python 2 is no longer supported in git master, you'll need at least version 3.2. Upgrade and let us know how it works there.

kuuko added a comment.Aug 25 2016, 9:20 AM

Okay as I was testing with different Python versions I found out that Python distutils doesn't re-install the script that goes in /usr/bin when you switch between versions, so you may end up with a script there that points to a different site-packages location than what you had installed it with.

As a workaround you should either edit /usr/bin/epour to point to correct version, or remove it and reinstall the whole package again.

I have no idea how this can be fixed properly though. @DaveMDS have you had experience with this?

hmm, yes indeed the bin scripts do not always get updated correctly.

On my system the bin get correctly updated when I re-install with py2, but not when re-install for py3.

I have no idea on how to fix this issue, but the user should always uninstall before installing for a different version

...oh, wait, I have an idea: stop supporting py2 and make py3 mandatory in all our apps :)

kuuko closed this task as Wontfix.Nov 9 2016, 11:53 AM