Skip to content
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

what about Windows #121

Open
heinkurz opened this issue Dec 10, 2024 · 1 comment
Open

what about Windows #121

heinkurz opened this issue Dec 10, 2024 · 1 comment
Labels
📔 documentation Improvements or additions to documentation 😃 good first issue Good issue for new contributors because its easy to fix

Comments

@heinkurz
Copy link

Seems to be a great package but what about Windows?
With Windows 11 and Python 3.12.8 I did "pip install starplot" and got this error:
...
File "C:\Users\fickd\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2]
[end of output]

@steveberardi
Copy link
Owner

I don't have any machines running Windows, so haven't tried running Starplot there. But, as long as GDAL/GEOS can run on windows, then it should be possible. I'd welcome any PR with instructions on how to install Starplot on windows - see here :)

As an alternative, you could run Starplot through a Docker container on windows. Here's a basic Dockerfile that'll get you up and running:

FROM python:3.11.7-bookworm AS base

WORKDIR /starplot

# Install required system libraries (GEOS + GDAL)
RUN apt-get clean && apt-get update -y && apt-get install -y libgeos-dev libgdal-dev

RUN pip install starplot

Even on my mac, I prefer running everything through Docker like this to help keep environments isolated (and consistent across my machine, CI, etc).

Also, I'd recommend using Python 3.11 to run Starplot. Python 3.12 is supported, but many of Starplot's dependencies do not have binary wheels for 3.12 so installation can take longer.

@steveberardi steveberardi added 📔 documentation Improvements or additions to documentation 😃 good first issue Good issue for new contributors because its easy to fix labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📔 documentation Improvements or additions to documentation 😃 good first issue Good issue for new contributors because its easy to fix
Projects
None yet
Development

No branches or pull requests

2 participants