You are not logged in.
Hello,
I'm trying to get the Mercurial extension HgActivity work. But I'm getting error that are probably clashes between Python 2.7 and 3.3 libraries. I'm no Python hero - and so I have no clue where to look now. Does anybody in here made it work with a recent Arch release ?
It's probably obvious to the experienced eye, but I don't have a clue how to fix it... :-)
TIA !
Jan
-------------------
What I've done so far:
1) Downloaded and extracted the extension from http://sources.freehackers.org/Hgactivi … ve/tip.zip.
2) Set ~/.hgrc as
[extensions]
activity=/opt/linux/hgactivity/activity (<== this is a directory)
3) Run hg activity --mode=gui
There are 318 changesets
Hg activity, checking options: you need matplotlib in your python path in order to use the hg activity extension.
4) Install matplotlib: sudo pacman -S python-matplotlib + export PYTHONPATH=/usr/lib/python3.3/site-packages/matplotlib
hg activity --mode=gui
Traceback (most recent call last):
File "/usr/bin/hg", line 36, in <module>
mercurial.util.setbinary(fp)
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
self._load()
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 209, in <module>
collections.deque.remove
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
self._load()
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
File "/usr/lib/python3.3/site-packages/matplotlib/collections.py", line 14, in <module>
import numpy.ma as ma
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
self._load()
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
ImportError: No module named numpy
5) Install numpy : sudo pacman -S python-numpy + export PYTHONPATH=/usr/lib/python3.3/site-packages/matplotlib:/usr/lib/python3.3/site-packages/numpy
hg activity --mode=gui
Traceback (most recent call last):
File "/usr/bin/hg", line 36, in <module>
mercurial.util.setbinary(fp)
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
self._load()
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 209, in <module>
collections.deque.remove
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
self._load()
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
File "/usr/lib/python3.3/site-packages/matplotlib/collections.py", line 14, in <module>
import numpy.ma as ma
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
self._load()
File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
ImportError: No module named numpy
Offline
nobody ?
Offline
Please don't bump your thread: https://wiki.archlinux.org/index.php/Fo … te#Bumping
Clean up the original post with code tags and make it easy for people to read. Post any additional details about what you have done in the interim; web searching, reading documentation etc, and then just be patient, it is probably a niche area that will only attract specialist knowledge.
There are also python environment managers that you could look at--whether they are relevant or not is beyond me, though...
# edit: and not a scripting issue, moving to Apps & DEs
Offline
My apologies for the bumping - I thought it be allowed. Sorry again, I didn't mean to be rude.
Offline