OceanParcels / Parcels

Main code for Parcels (Probably A Really Computationally Efficient Lagrangian Simulator)
https://www.oceanparcels.org
MIT License
295 stars 136 forks source link

Git related error message when importing parcels #1250

Closed VeckoTheGecko closed 2 years ago

VeckoTheGecko commented 2 years ago

Platform: Windows 10 (WSL)

I've been encountering this error message when running import parcels for the first time in a session:

>>> import parcels
fatal: not a git repository (or any of the parent directories): .git

It doesn't actually affect anything, and parcels functions as normal. Its just a bit...weird. I also don't know when I first started encountering it.

Is this a quirk that is known? I'm happy to look into this issue more, was just getting a feel for whether this is a widespread problem.

@mheen feel free to include any other info here 😄

erikvansebille commented 2 years ago

Hmm, I've seen these warnings pop up too. They may be related to the way we determine the version of Parcels? See https://github.com/OceanParcels/parcels/blob/master/parcels/_version.py#L4

Can you check if the same warning occurs when you do

from parcels._version import version
VeckoTheGecko commented 2 years ago

Can you check if the same warning occurs when you do

from parcels._version import version

Yep, same warning occurs when I do that

erikvansebille commented 2 years ago

Hi @VeckoTheGecko, I have just released v2.4.0 of parcels via conda; could you check if this issue indeed disappears with the latest version on your system?

VeckoTheGecko commented 2 years ago

Yes, that fixed it 🚀🚀