Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2215  / 3 Years ago, sat, october 23, 2021, 8:56:31

I already tried several options like these, but all I am getting are errors, like this one:


python setup.py 
build_ui
build_py -c -d .
build_mo
running build_ui
running build_py
running build_mo
HGRCPATH= python thg version
Traceback (most recent call last):
File "thg", line 99, in <module>
tortoisehg.hgqt.run.run()
File "/usr/lib/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/user/thg/tortoisehg/hgqt/run.py", line 499, in <module>
_('repository root directory or symbolic path name')),
File "/home/user/thg/tortoisehg/util/i18n.py", line 109, in agettext
return hglib.fromunicode(u)
File "/usr/lib/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/user/thg/tortoisehg/util/hglib.py", line 351, in <module>
readmergestate = mergemod.mergestate.read
File "/usr/lib/python3.8/importlib/util.py", line 256, in __getattribute__
return getattr(self, attr)
AttributeError: module 'mercurial.merge' has no attribute 'mergestate'
make: *** [Makefile:25: local] Error 1

Or this one after installing pyqt5:


    from PyQt5.QtCore import *
ImportError: No module named PyQt5.QtCore
make: *** [Makefile:24: local] Error 1

In case it is needed, my python version is 3.8.2


More From » 20.04

 Answers
2

Ok, here is what I did:



  1. I followed the instructions of this answer until #8 make local

  2. Then and skipping duplicated instructions, I have followed this until #5 sudo python3 setup.py install


[#2676] Saturday, October 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tresein

Total Points: 197
Total Questions: 113
Total Answers: 112

Location: Hungary
Member since Wed, Nov 9, 2022
2 Years ago
tresein questions
Tue, Jun 28, 22, 17:57, 2 Years ago
Sun, Apr 3, 22, 07:11, 2 Years ago
Thu, Feb 3, 22, 18:03, 2 Years ago
Sat, May 13, 23, 13:00, 1 Year ago
;