amor71 / LiuAlgoTrader

Framework for algorithmic trading
MIT License
784 stars 129 forks source link

UnboundLocalError on quickstart #381

Closed savex83 closed 1 year ago

savex83 commented 1 year ago

Describe the bug After compiling the "liu quickstart" setup, you get an "UnboundLocalError: local variable 'user_name' referenced before assignment" error.

To Reproduce Steps to reproduce the behavior:

  1. Follow the QuickStart steps
  2. set all the envs
  3. See the error after pressing [ENTER] when "Ready to go?? Press [ENTER] to start the installation.."

Expected behavior Complete the quickstart process

Screenshots image

Desktop (please complete the following information):

Additional context DSN it's like driver://username:password@host:port/database

github-actions[bot] commented 1 year ago

Thank you for joining LiuAlgoTrader community and submitting your first issue. Feel free to check out Liu community: https://gitter.im/LiuAlgoTrader/community

amor71 commented 1 year ago

@savex83 thank you for reporting, are you still having this issue w/ the latest version?

jhuynh08 commented 1 year ago

@amor71 I'm seeing this exact same issue as well on the the latest version when I ran quickstart with the DSN variable set.

export DSN="postgres://redacted-username][redacted-pw]@[redacted-server]:5432/tradedb"

image
jhuynh08 commented 1 year ago

Seems to only happen if I want to view and download the samples. If I just select no, it finishes the installation.

amor71 commented 1 year ago

@jhuynh08 in Step #2, the quickstart requests you to enter a user-name. Which seems to be missing here. Can you confirm you entered a username? Would you be so kind as to send a screenshot of Step #2 an I'll handle it quickly? Thanks!

github-actions[bot] commented 1 year ago

Stale issue message