-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Bug]: Failing to build extension using projects/extension/build.py install #250
Comments
@Abhayraj-pipesort thanks for your interest in pgai. We're aware that it's currently not possible to use it on Windows. My colleague was recently working on fixing this here: #237. I'm not sure how sonn we'll get that change merged, but you might be able to use some of the pieces of that pull request in the meantime. |
Hey @Abhayraj-pipesort I was working on the Windows PR, I was trying to add the Windows tests as part of the Ci, but failed to do it. The github actions that installed PostgreSQL in windows didn't have some packages I needed to install pgvector, which is a dependency. The one action that's the same that pgvector uses, only supports PG14 and we require 16 or greater. I had to stop work on this branch. I plan to retake it, just to do some manual tests. I was testing everything via the windows-latest github runner, while trying to implement the Ci. It would be really helpful if you can test the branch locally. |
[Question] Is my understanding correct? |
Hey @Abhayraj-pipesort . There are multiple things with native postgres in Windows: I tried first by adding CI to it, and failed. The github actions I found that set up Postgres in Windows, either didn't have the dev dependencies to build some of the python devs, or in the case of the one used by pgvector, didn't support PG16 which is our baseline. I tried then to do a manual install on an ec2 Windows machine. That's the latest force-push of the branch. The installation worked, but the postgres functions were failing because the If you want to try out what I did, maybe you can fix it, or maybe it was a problem with my setup:
Things that failed for me at different times: SRE module mismatch
This error was because my plpython3u interpreter was python 3.11 while the extension was installed with python 3.10. Make sure the pg version from plpython3u matches the one you used to install the extension. You can check the plpython3u version with:
Any query using plpython3u causes the pg server to restart I had to set ** version is not part of ai or something like that When you run any of the
If the You can see it by doing:
If the value returned is This is were I got stuck. |
What happened?
Followed all steps for installation from source but after installing the build.py file using projects/extension/build.py install command it is failing to create extension properly.
It is expecting a file to be there named as pgai/projects/extension/sql/ai--0.4.2.-dev.sql
pgai extension affected
0.4.2
pgai library affected
No response
PostgreSQL version used
16
What operating system did you use?
Windows 11
What installation method did you use?
Source
What platform did you run on?
Other
Relevant log output and stack trace
No response
How can we reproduce the bug?
Are you going to work on the bugfix?
None
The text was updated successfully, but these errors were encountered: