holoviz / param

Param: Make your Python code clearer and more reliable by declaring Parameters
https://param.holoviz.org
BSD 3-Clause "New" or "Revised" License
412 stars 69 forks source link

In Windows, `import param` pops up a command line window #875

Closed nglee closed 8 months ago

nglee commented 8 months ago

On Windows GUI, doing import param calls this line which, in turn, pops up a command line window to run git commands. Our product is a GUI based product in Windows and it is awkward to see a command line window pop up and close. We are hoping that param could be updated so that it does not receive version information from git in runtime.

An alternative would be to have a separate __version__.py file that is created during package build. The file stores version information. In runtime, param will get the version information from __version__.py directly without calling git command to retrieve version information from server.

maximlt commented 8 months ago

Hi, this line is no longer used in Param 2.0 that is meant to be released soon.

This however suggests a bug in version.py.

jbednar commented 8 months ago

OMG, that's horrible! Popping up a command line window must have made sense for someone, but that's really bizarre. Definitely something we need to understand how to avoid, even for Param 1.x.

maximlt commented 7 months ago

Hi @nglee, we have released Param 2.0.1 with a tentative fix for the issue you reported. Could you please try that new version and report whether it fixes your issue? Asking since I haven't been able to reproduce it.