Skip to content
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

No module named dateutil #1086

Closed
pllim opened this issue Jan 24, 2024 · 4 comments
Closed

No module named dateutil #1086

pllim opened this issue Jan 24, 2024 · 4 comments

Comments

@pllim
Copy link
Collaborator

pllim commented Jan 24, 2024

This is the first time in a long time I install Ginga on a fresh environment. Now I use Python 3.12. When I try to test #1084 , I ran into a different problem:

ginga\ginga\rv\plugins\Drawing.py", line 36, in <module>
    from dateutil import tz
ModuleNotFoundError: No module named 'dateutil'

from dateutil import tz

Is dateutil an undeclared dependency? It didn't get installed automatically when I installed Ginga.

@ejeschke
Copy link
Owner

I thought that dateutil was part of the standard library, but I guess that it is not. I've fixed this in commit bc2606d.

@ejeschke
Copy link
Owner

dateutil was added to deal with a deprecation of a couple of API calls in recent versions (python 3.12?) of datetime.

@ejeschke
Copy link
Owner

@pllim, can you confirm in your python 3.12 envt and close this if fixed? Tnx!

@pllim
Copy link
Collaborator Author

pllim commented Feb 2, 2024

Yes, Ginga now pulls in the extra dependency and error is gone. Thanks!

@pllim pllim closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants