-
-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError 'LANG' Unix (MacOs) #1014
Comments
haven't you got an old windows laptop you could try using instead? |
unfortunately no |
Install requirements 🤦🏻♂️ |
I did everything that was required, including in #122, none of the suggestions corrected the situation. |
correct situation is:
more or less this. or try : ... except: export "LANG" = "en-US" |
ex: # languages setting
lgn = None
try:
lgn = os.environ['LANG'].split("_")[0]
except:
lgn = "English"
langlayout = widgets.QHBoxLayout()
self.langcombo = widgets.QComboBox()
langlabels = widgets.QLabel(_("Interface language (need save and close)"))
langlayout.addWidget(langlabels)
langlayout.addWidget(self.langcombo)
for s in options.lang_list:
self.langcombo.addItem(s)
if options.lang_list[s].split("_")[0] == lgn:
self.langcombo.setCurrentText(s)
# self.langcombo.setCurrentIndex(0)
layout.addLayout(langlayout)
# this teoricaly set English by default is not exists |
or set environement var
|
try uses python 3.12 |
Not exactelly related but I've fully documented my successfull installation on a Mac, It could maybe help some ? Installation DDT4all - MacOS Catalina february 2024 1) Install Python 3.12 (latest at the time of writing, see for ex. [(https://www.pythonguis.com/installation/install-pyqt-mac/]this page)) Copy / paste the following in your favorite browser
Once the installer is downloaded, run the installer (python-3.12.2-macos11.pkg) found in your downloads folder At the installation's end, do not forget to update the certificates for your machine Go to Macintosh HD -> Applications -> Python 3.12 Double-clic on Install Certificates.command and inform your Mac that it nows runs with the latest Python version Stay in Macintosh HD -> Applications -> Python 3.12 Double-clic on Update Shell Profile.command WARNING Go to /Library/Frameworks/Python.framework/Versions/ and trash the full folder (E.g. 3.11) 2) Install DDT4all and it's dependencies Go to Macintosh HD -> Applications -> Utilities Open Terminal run the following command followed by a return (Wait for the download to resume)
Point to the directory
Install the dependencies
Your computer should now be ready for: Upgrade the modules
3) Test the application DDT4all
Run the application
4) make a shortcut to be able to open it without Terminal Go to Macintosh HD -> Applications Open TextEdit -> Make a new document -> Convert it to text format Copy / paste the following
Save the document where you want to find it (E.g. Desktop folder), name it for ex. DDT4allStarter Right-clic on the saved document and change it's name ending in "sh" (DDT4allStarter.sh) While you have the Information window open, also select Open with and point to Macintosh HD -> Applications -> Utilities -> Terminal Open Terminal Copy / paste the following (note the empty space et the end of the command, keep it)
and drag / drop after the empty space the file you just created previously, you should have for ex:
You now just have to double-clic DDT4allStarter to start DDT4All Enjoy, you should be ready for connection... but do not forget to install the latest database |
pip3 install -r requirements.txt |
^ merci / thank you Furtif, previous post updated and enhanced. |
great, thanks for this perfect explanation! |
Help please, i dont know how startup this software.
The text was updated successfully, but these errors were encountered: