amor71/LiuAlgoTrader

UnboundLocalError on quickstart

savex83 opened this issue · 6 comments

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):

  • OS: Apple MacOS Ventura 13.0.1 (22A400)
  • Python 3.10.6

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

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

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

@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

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

@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!

Stale issue message