Monday, April 29, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 802  / 2 Years ago, sat, february 26, 2022, 6:53:53

I've developed a program for the App Developer Showdown, with quickly, in python, and it works as expected when I package and install it normally -in /usr. However when packaged for installation in /opt it doesn't run -and I'm not getting (or can't find) an error message of any sort, as to what the problem might be. I was wondering if someone here has the answer.



The app does require root access -using gksudo- to function.



Application:




More From » application-development

 Answers
5

If you remove the gksudo stuff in bin/aplomb you see the error message:



Traceback (most recent call last):
File "/opt/extras.ubuntu.com/aplomb/bin/aplomb", line 48, in <module>
import aplomb
File "/opt/extras.ubuntu.com/aplomb/aplomb/__init__.py", line 26, in <module>
from aplomb import AplombWindow
File "/opt/extras.ubuntu.com/aplomb/aplomb/AplombWindow.py", line 23, in <module>
locale.bindtextdomain('aplomb', '/opt/extras.ubuntu.com/aplomb/share/locale')
NameError: name 'locale' is not defined

[#37207] Sunday, February 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ncharm

Total Points: 255
Total Questions: 105
Total Answers: 118

Location: Virgin Islands (U.S.)
Member since Sat, May 6, 2023
1 Year ago
ncharm questions
;