-
Notifications
You must be signed in to change notification settings - Fork 154
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
Same as ContextualVersionConflict exception in Google Colab issue #108 #112
Comments
If you ever get a |
@Lothiraldan closed? |
Sadly, this error seems to persist... try any new colab notebook with the following code (reproducible), it will give this same error.
Similarly, in existing colab notebooks when they are started on a new instance (on open or when Runtime > Factory restart) same ContextualVersionConflict error will pop up every time. The following: My current workaround after this error is to restart kernel after refreshing instance (Runtime > Factory restart & Runtime > Restart and run all) which seems messy. In any case, the error also pops up when `from codecarbon import EmissionsTracker' is used. |
@Lothiraldan in my experience this issue still persists.. Can i contribute anything to solving this? |
@grimelda After installing packages on Google Colab (I recommend using
And it looks like that the old version |
I'm trying to get my team to log the use of intensive scripts, and the decorator seems like a great and easy to implement option that i can ask my team to adopt, however I can hardly ask them to restart their kernel every time a script is loaded. A workaround involving I could instruct to
Additional attempts to run codecarbon in colab without triggering this warning on first run that have failed:
|
Would this make the kernel re-read files and update the in-memory version of tzlocal?
|
Tried something similar which didn't work, and updated it to vict0rsch' method, sadly does not work. I saved a bunch of attempts in the gist below for documentation. My main finding is that the error pops up earlier by the importing of pytz which is a dependency of tzlocal and APScheduler. The error in fist instance is silent, and is only raised when codecarbon is imported. This goes over my head wrt how to solve this. Is this a colab issue?
https://gist.github.com/grimelda/2f1d1e382b0b3984e95f9f2582848613 edit: included workaround using kernel restart prompt in gist |
Description
Describe what you were trying to get done. Your example
Tell us what happened, what went wrong, and what you expected to happen.
Example works fine before 2021/01/15 never after
What I Did
Your example
The text was updated successfully, but these errors were encountered: