-
Notifications
You must be signed in to change notification settings - Fork 23
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
"NameError: name 'calendar' is not defined" when running calendar-cli #94
Comments
Did you install from the master branch? How was it installed? The last commit I did seems to be broken, but your error message still doesn't make sense to me. I currently get this error message when installing it and running it:
|
I'm a bit busy right now, but I will try to fix the error above during the day. |
Yes, cloned the master branch and executed the setup file. |
Sorry the delay. Can you try again? |
Sadly the issue is not fixed.
|
That's a very weird traceback. What happens if you try the kal command? What happens if you run |
And what version of python do you use? (I'm on 3.10.8, not able to reproduce - I should set up github to run the test over different python versions eventually)
I'd daresay the problem is with the dash up there. It's a bit strange it's still there, I've done my best to rename the package from calendar-cli to calendar_cli to avoid such problems. Perhaps I should read more on packaging and try to update setup.py to the "best current practice". |
Yes, this works! Running both executables in other ways results in the error above. My Python version is 3.8.10. |
I still can't understand it. The traceback ends up on the shebang ( |
Ubuntu 20.04? I guess my best shot is to install the package on the same environment and see if I can reproduce it. |
Yes, 20.04 LTS. More specifically in WSL. |
WSL? I tried this on two relatively clean Ubuntu 20.04.5 LTS servers, I was not able to reproduce the problem. |
I tried to execute it with Python 3.10 ( |
|
After installing on Ubuntu (and interestingly, in Windows) and running calendar-cli, a python error is shown:
The text was updated successfully, but these errors were encountered: