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

Remove None values before invoking setup command #4246

Closed

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Jul 10, 2020

We think/hope this fixes #4032.
I'm not sure if there is a good unit test to confirm this? (just looking at tests/cmdline/commands/test_setup.py)

@chrisjsewell chrisjsewell requested a review from ltalirz July 10, 2020 11:34
@giovannipizzi
Copy link
Member

Just tested with Mohammad and it does not seem to be enough.
Maybe you can start adding a test that reproduces the problem, if possible?

@chrisjsewell
Copy link
Member Author

Just tested with Mohammad and it does not seem to be enough.

damn

Maybe you can start adding a test that reproduces the problem, if possible?

well yes the million dollar question: it is a mac only bug and not so easy to reproduce. But I will have a try

@flavianojs
Copy link
Contributor

It did work for me. I just had to make sure to relaunch the environment.

@giovannipizzi
Copy link
Member

Just checked - the problem is that indeed the host is set to None, but this makes then SQLA crash. Is it set to None on purpose? Why it's not set to localhost as it should be, I think?

@giovannipizzi
Copy link
Member

The problem is here I believe:

engine_url = 'postgresql://{user}:{password}@{hostname}{separator}{port}/{name}'.format(

That of course will set the string to ...@None...
I'm not even sure if it's possible to specify the engine string if you don't have a hostname.

So again my question: is it not set to localhost for a specific reason?
Pinging @sphuber and @ltalirz as well

(And who sets it to None rather than localhost? pgsu?

@chrisjsewell
Copy link
Member Author

well this was my initial suggestion that seemed to work for me: #4032 (comment)

@chrisjsewell
Copy link
Member Author

but as mentioned below that by Leo, it may not be a global fix

@chrisjsewell
Copy link
Member Author

I think this can be closed in favour of #4255, @ltalirz and @giovannipizzi?

@ltalirz
Copy link
Member

ltalirz commented Jul 13, 2020

I think so, yes.
The conversion to "None" seems to have happened in the sql connect string, not inside click, see also #4032 (comment)

@ltalirz ltalirz closed this Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

verdi quicksetup failure on MacOS
4 participants