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

Unable to create new project #444

Closed
nidhin077 opened this issue Oct 21, 2022 · 7 comments
Closed

Unable to create new project #444

nidhin077 opened this issue Oct 21, 2022 · 7 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@nidhin077
Copy link

I encountered an error "TypeError at /api/tables/columns/" while setting up a new project. I've included the entire screenshot of the error. kindly have a look.

image

I connected the pgml dashboard to my local Postgres database, I have made changes in allowed hosts entry in the following files which are under the directory pgml_dashboard .env, and settings.py

kindly inform me of the best way to handle this error.

@montanalow
Copy link
Contributor

Which version of the pgml extension do you have installed? You can check with

 psql postgres://postgres@127.0.0.1:5433/pgml_development -c "select * from pgml.version();"

The dashboard in master expects extension version 2.0. You can also checkout a 1.0 tag from github if you'd like to work with an old version of the dashboard and extension. Upgrading an existing 1.0 installation to 2.0 is covered here, if that turns out to be the issue.

@nidhin077
Copy link
Author

@montanalow I have upgraded the postgresml to 2.1.0. However, the issue is still there. Could you please check the same?

image

@montanalow
Copy link
Contributor

Where you able to run the 1.0 to 2.0 migration script?

https://postgresml.org/user_guides/setup/v2/upgrade-from-v1/

@nidhin077
Copy link
Author

nidhin077 commented Oct 28, 2022

@montanalow Actually, I had just set up a fresh instance of PostgresML and linked the dashboard to the database. After that, I encountered the above described issue while attempting to create a new project.

@montanalow
Copy link
Contributor

I see the issue now. This is a bug in the new project wizard related to tables in the public schema. We'll need a patch to get this sorted. In the mean time a fix has already been applied to the command line version of project creation with pgml.train().

@nidhin077
Copy link
Author

@montanalow Once the bug has been sorted. Please update here.

@levkk levkk added bug Something isn't working good first issue Good for newcomers labels Nov 8, 2022
@montanalow
Copy link
Contributor

The new project wizard has been removed until we can design it to cover more use cases, in favor of a direct SQL workflow that utilizes the APIs, which is supported via the console and notebooks (as well as standalone SQL clients).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants