Unable to import StatusCode from parcels #1708
-
Hello! I am trying to use to the StatusCode Jennifer |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
@VeckoTheGecko, can you have a lok what's going on here? |
Beta Was this translation helpful? Give feedback.
-
Hi @jwongala . import parcels
print(parcels.__version__) # let us know what this says It also looks like this code you're running is from an older version of parcels, as we no longer have |
Beta Was this translation helpful? Give feedback.
-
Hi @VeckoTheGecko Thanks! After running the code you sent, it says I am using version 2.4.1. The code I am working on doesn't mention the version, but I originally started using it in 2020. I thought I updated Parcels, but I don't think I did it correctly. What directions should I follow to update? |
Beta Was this translation helpful? Give feedback.
-
Hi @VeckoTheGecko I just created a new environment called |
Beta Was this translation helpful? Give feedback.
Hi @jwongala .
from parcels import StatusCode
works for me. What version of Parcels are you running?It also looks like this code you're running is from an older version of parcels, as we no longer have
ErrorCode
orplotTrajectoriesFile
. Does the code you're working from mention the version of Parcels they were using?