Opened 5 years ago
Closed 5 years ago
#3306 closed defect (fixed)
ChimeraX startup: unsupported locale setting
| Reported by: | Owned by: | Greg Couch | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Core | Version: | |
| Keywords: | Cc: | Conrad Huang | |
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
The following bug report has been submitted: Platform: Windows-10-10.0.17763 ChimeraX Version: 1.0rc202005242323 (2020-05-24 23:23:37 UTC) Description I started ChimeraX and these was a startup error Log: Startup Errors --- error | Bundle 'ChimeraX-Registration' custom initialization failed warning | Traceback (most recent call last): File "D:\ChimeraX 1.0rc202005242323\bin\lib\site- packages\chimerax\core\toolshed\info.py", line 342, in initialize api._api_caller.initialize(api, session, self) File "D:\ChimeraX 1.0rc202005242323\bin\lib\site- packages\chimerax\core\toolshed\\__init__.py", line 1571, in initialize return cls._get_func(api, "initialize")(session, bi) File "D:\ChimeraX 1.0rc202005242323\bin\lib\site- packages\chimerax\registration\\__init__.py", line 41, in initialize nag(session) File "D:\ChimeraX 1.0rc202005242323\bin\lib\site- packages\chimerax\registration\nag.py", line 28, in nag if not check_registration(logger=session.logger): File "D:\ChimeraX 1.0rc202005242323\bin\lib\site- packages\chimerax\registration\nag.py", line 49, in check_registration return _check_expiration(param, logger) File "D:\ChimeraX 1.0rc202005242323\bin\lib\site- packages\chimerax\registration\nag.py", line 130, in _check_expiration expires = _expiration_time(param) File "D:\ChimeraX 1.0rc202005242323\bin\lib\site- packages\chimerax\registration\nag.py", line 151, in _expiration_time locale.setlocale(locale.LC_TIME, "en_US.UTF-8") File "D:\ChimeraX 1.0rc202005242323\bin\lib\locale.py", line 608, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting > cd "C:\Users\Tony Schaefer/Desktop" Current working directory is: C:\Users\Tony Schaefer\Desktop UCSF ChimeraX version: 1.0rc202005242323 (2020-05-24) © 2016-2020 Regents of the University of California. All rights reserved. How to cite UCSF ChimeraX OpenGL version: 3.3.0 NVIDIA 445.75 OpenGL renderer: GeForce RTX 2070/PCIe/SSE2 OpenGL vendor: NVIDIA Corporation Manufacturer: To Be Filled By O.E.M. Model: To Be Filled By O.E.M. OS: Microsoft Windows 10 Education (Build 17763) Memory: 17,107,533,824 MaxProcessMemory: 137,438,953,344 CPU: 16 AMD Ryzen 7 2700X Eight-Core Processor " PyQt version: 5.12.3 Compiled Qt version: 5.12.4 Runtime Qt version: 5.12.8
Change History (4)
comment:1 by , 5 years ago
| Cc: | added |
|---|---|
| Component: | Unassigned → Core |
| Owner: | set to |
| Platform: | → all |
| Project: | → ChimeraX |
| Status: | new → assigned |
| Summary: | ChimeraX bug report submission → ChimeraX startup: unsupported locale setting |
follow-up: 2 comment:2 by , 5 years ago
comment:3 by , 5 years ago
| Cc: | added; removed |
|---|---|
| Milestone: | → 1.1 |
| Owner: | changed from to |
Conrad is retired. Seems pretty important to not get registration errors on startup.
comment:4 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Changed code to use hardcoded strftime and strptime for our time format in English, instead of changing the locale. All registration dates, that are shown to the user, are in the user's locale.
Note:
See TracTickets
for help on using tickets.
I'm still getting this error on startup in 1.1.dev202006240047 I tried importing nag and running it myself in the shell. I did ``` from chimerax.registration.nag import nag nag(session) ``` I didn't get any error when I ran nag in the shell. I also added some debug lines to the locale module so I could see what it was using when locale.setlocale was run. I saw the same values right after startup and when I run nag in the shell. ________________________________ From: ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu> Sent: Tuesday, May 26, 2020 1:12 PM Cc: conrad@cgl.ucsf.edu <conrad@cgl.ucsf.edu>; gregc@cgl.ucsf.edu <gregc@cgl.ucsf.edu>; Anthony James Schaefer <tony.schaefer@uga.edu> Subject: Re: [ChimeraX] #3306: ChimeraX startup: unsupported locale setting (was: ChimeraX bug report submission) [EXTERNAL SENDER - PROCEED CAUTIOUSLY] #3306: ChimeraX startup: unsupported locale setting --------------------------------------+-------------------------- Reporter: tony.schaefer@… | Owner: Conrad Huang Type: defect | Status: assigned Priority: normal | Milestone: Component: Core | Version: Resolution: | Keywords: Blocked By: | Blocking: Notify when closed: | Platform: all Project: ChimeraX | --------------------------------------+-------------------------- Changes (by Eric Pettersen): * status: new => assigned * cc: Greg Couch (added) * component: Unassigned => Core * project: => ChimeraX * platform: => all * owner: (none) => Conrad Huang -- Ticket URL: <https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3306#comment:1> ChimeraX <http://www.rbvi.ucsf.edu/chimerax/> ChimeraX Issue Tracker