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

Running go-pro does not create a production config #12

Open
Ganonmaster opened this issue Jul 24, 2018 · 12 comments
Open

Running go-pro does not create a production config #12

Ganonmaster opened this issue Jul 24, 2018 · 12 comments

Comments

@Ganonmaster
Copy link

Environment: Ubuntu 18.04, dependencies up-to-date.

  1. Run setup with bash/curl pipe provided at bunq.com/api
  2. Run ./go-pro
  3. Scan the QR code and confirm in the app
  4. go-pro returns with the title GO PRO title and the message "You're ready to use the PRODUCTION environment." and the help options with the --production flags.
  5. No bunq-production.conf is created, so none of the commands work.
@OGKevin
Copy link
Contributor

OGKevin commented Jul 25, 2018

@Ganonmaster there should be an error message somewhere. Its highly unlikely that it fails without an error message. Can you check for an error ?

@Ganonmaster
Copy link
Author

image
No error, no production config.

Python 3.6.5, pip 18, pipenv 11.8.3.

@Ganonmaster
Copy link
Author

Note that in the Bunq app, the API key still shows as "unassigned" as well.

@OGKevin
Copy link
Contributor

OGKevin commented Jul 25, 2018

Interesting, ill have a look and will let you know what my findings are.

@OGKevin
Copy link
Contributor

OGKevin commented Jul 25, 2018

hmm, i just ran it on macos and it seems to work as expected. 🤔

Can you try to trace the execution of go pro and see if the bash script is actually running like it should.

https://stackoverflow.com/questions/951336/how-to-debug-a-bash-script/

@Ganonmaster
Copy link
Author

Found some debug output that might indicate where this is going wrong:

+ tinker/create_production_configuration.py --api-key <REMOVED>
/usr/bin/env: ‘.venv/bin/python -W ignore’: No such file or directory

It is making the assumption that my python binary is literally named python, when it actually is not.

image

@OGKevin
Copy link
Contributor

OGKevin commented Jul 25, 2018

no, the bash script should create a dir ./.venv and in there there should indeed be a executable named python so it seems that the installation failed.

it seems that

tinker_python/setup.sh

Lines 146 to 149 in dfe9812

function pipenvInstall
{
PIPENV_VENV_IN_PROJECT=1 pipenv install
}

is not executed correctly then 🤔

@Ganonmaster
Copy link
Author

image

@Ganonmaster
Copy link
Author

Ganonmaster commented Jul 25, 2018

I think I found the problem. I had setup a custom alias for the default python version on ubuntu (because the default is 2.7)

Edit: no luck it seems. It's still not finding the python binary.

@OGKevin
Copy link
Contributor

OGKevin commented Jul 25, 2018

by the look of the screen shot, are you in a virtual env ? might that be it ?

@Ganonmaster
Copy link
Author

The virtualenv I enter is the one that the setup script creates. Is that not how it's supposed to work? Either way, I just tested without entering the virtualenv, and it makes no difference.

@OGKevin
Copy link
Contributor

OGKevin commented Jul 25, 2018

No, at least not for me on macos 🤔

might it have something to do with #3 ?

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

No branches or pull requests

2 participants