Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#48137 - [diffuse] incompatible with anaconda

Attached to Project: Community Packages
Opened by Joseph Fox-Rabinovitz (MadPhysicist) - Thursday, 11 February 2016, 10:46 GMT
Last edited by Lukas Jirkovsky (6xx) - Sunday, 21 February 2016, 09:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Jirkovsky (6xx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Diffuse, and most likely other python-based software does not play well with anaconda. If a anaconda is installed with a python2 environment that does not contain pygtk, diffuse crashes with the following error:

Traceback (most recent call last):
File "/usr/bin/diffuse", line 124, in <module>
import pygtk
ImportError: No module named pygtk


Additional info:
* diffuse 0.4.8-1

Steps to reproduce:

[run] pacman -S diffuse
[install anaconda or miniconda from AUR, from continuum.io]
[run] conda create -n test python=2
[run] source activate test
[run] diffuse
[error occurs]

Two solutions seem to work:

1) Install pygtk and all other dependencies in all conda environments. This is not desirable since it partially defeats the purpose of anaconda and may become cumbersome for many environments/many software packages besides diffuse.
2) Change the shebang in /usr/bin/diffuse from "#!/usr/bin/env python2" to "#!/usr/bin/python2". This seems to work since python2 is a dependency and the anaconda path setting does not affect the python setup this way.
This task depends upon

Closed by  Lukas Jirkovsky (6xx)
Sunday, 21 February 2016, 09:34 GMT
Reason for closing:  Won't fix
Additional comments about closing:  If you break your default python installation by installing unsupported packages, you are on your own. It will likely break much more than just diffuse anyway.
Comment by Doug Newgard (Scimmia) - Thursday, 11 February 2016, 14:43 GMT
3rd solution: AUR packages are unsupported. If you screw with the python2 path like that, it's on you to make things work.

Loading...