mytonctrl icon indicating copy to clipboard operation
mytonctrl copied to clipboard

[Ubuntu] stops before compilation

Open kesha-antonov opened this issue 4 years ago • 5 comments

Hi!

Script stops on this step https://github.com/igroman787/mytonctrl/blob/393e07c777d3ecbcd2b64443ea271f99635ec7bf/scripts/toninstaller.sh#L107

kesha-antonov avatar Aug 04 '21 15:08 kesha-antonov

Ok, it now works.

But after installation I have error

$ mytonctrl
Traceback (most recent call last):
  File "/usr/src/mytonctrl/mytonctrl.py", line 9, in <module>
    local = MyPyClass(__file__)
  File "/usr/src/mytonctrl/mypylib/mypylib.py", line 161, in __init__
    self.Refresh()
  File "/usr/src/mytonctrl/mypylib/mypylib.py", line 179, in Refresh
    os.makedirs(self.buffer[_myWorkDir], exist_ok=True)
  File "/usr/lib/python3.8/os.py", line 223, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/ubuntu/.local/share/mytonctrl/'

kesha-antonov avatar Aug 04 '21 20:08 kesha-antonov

Yes, this problem occurs if the user did not have a /.local/share/ folder. MyTonCtrl creates this folder, but forgets to change the rights of this folder. Soon I will solve this problem inside mtc. However, right now you can change the rights to this folder yourself: chown -R ubuntu:ubuntu /home/ubuntu/.local/

igroman787 avatar Aug 06 '21 05:08 igroman787

Yes, this problem occurs if the user did not have a /.local/share/ folder. MyTonCtrl creates this folder, but forgets to change the rights of this folder. Soon I will solve this problem inside mtc. However, right now you can change the rights to this folder yourself: chown -R ubuntu:ubuntu /home/ubuntu/.local/

Thanks

kesha-antonov avatar Aug 06 '21 06:08 kesha-antonov

Ok, it now works.

But after installation I have error

$ mytonctrl
Traceback (most recent call last):
  File "/usr/src/mytonctrl/mytonctrl.py", line 9, in <module>
    local = MyPyClass(__file__)
  File "/usr/src/mytonctrl/mypylib/mypylib.py", line 161, in __init__
    self.Refresh()
  File "/usr/src/mytonctrl/mypylib/mypylib.py", line 179, in Refresh
    os.makedirs(self.buffer[_myWorkDir], exist_ok=True)
  File "/usr/lib/python3.8/os.py", line 223, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/ubuntu/.local/share/mytonctrl/'

how did you solve the problem stops before compiling?

exhang avatar Nov 04 '21 13:11 exhang

Да, эта проблема возникает, если у пользователя не было /.local/share/папки. MyTonCtrl создает эту папку, но забывает изменить права этой папки. Скоро решу эту проблему внутри mtc. Однако прямо сейчас вы можете самостоятельно изменить права на эту папку: chown -R ubuntu:ubuntu /home/ubuntu/.local/

Спасибо

Здравствуйте, вам удалось решить проблему остановки перед компиляцией?

grifits avatar Jan 02 '22 16:01 grifits

This issue has been fixed by the commit: https://github.com/ton-blockchain/mytonctrl/commit/84f1aaee32282636d87e251813b78566133e9e57

igroman787 avatar Nov 26 '22 14:11 igroman787