openmeteo / loggertodb

Insert meteorological station data to Enhydris
Other
1 stars 3 forks source link

Create Windows executable #4

Closed aptiko closed 5 years ago

aptiko commented 5 years ago

Child of aptiko/openhi#60.

The solution for this is to use pyinstaller + NSIS.

aptiko commented 5 years ago

This isn't very hard, but it isn't trivial either. Let's leave it out until we have a concrete case of needing to run loggertodb on Windows.

One difficulty is that at the moment pyinstaller can package only "normal" Python scripts, whereas in this case the script is generated by setup.py through the entry_points argument. Searching the net will reveal that this is a yet unsolved problem in pyinstaller for which a workaround exists. However the workaround is complicated and maybe a simpler solution is to create a "normal" Python script to be used for Windows only (same as was done in pthelma).

dimitrisal commented 5 years ago

Hello any news on installer? is there any workaround for windows?

aptiko commented 5 years ago

@dimitrisal Could you explain why you are interested in this?

dimitrisal commented 5 years ago

@aptiko We have 2 davis that was sending data in openmeteo with pthelma but we saw now that we get an error 403.

aptiko commented 5 years ago

@dimitrisal This 403 error is unrelated. Please email me at antonis@antonischristofides.com for more.