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

Issue running on Ubuntu/macOS #15

Closed
garygrossgarten opened this issue Jan 12, 2021 · 3 comments
Closed

Issue running on Ubuntu/macOS #15

garygrossgarten opened this issue Jan 12, 2021 · 3 comments

Comments

@garygrossgarten
Copy link

Hey there,

I'm getting the following error trying to run the main.py on both Ubuntu and macOS.

Traceback (most recent call last):
  File "main.py", line 101, in <module>
    main()
  File "main.py", line 98, in main
    print_tbl(results_tbl, args.filename, args.allsub, args.yahoo, args.csv)
  File "/app/auto-dd/AutoDD.py", line 378, in print_tbl
    writer.writerow(row)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2014' in position 87: ordinal not in range(128)

Do you have any idea on what I can do to get it running? It seems to have trouble printing the table after gathering the data. I can get it running on Windows though.

Thanks in advance!

@Napo2k
Copy link
Collaborator

Napo2k commented Jan 13, 2021

This is odd, I have a Mac and I was able to run it without trouble yesterday night (~12 hours ago?)

@kaito1410
Copy link
Owner

Hey there,

I'm getting the following error trying to run the main.py on both Ubuntu and macOS.

Traceback (most recent call last):
  File "main.py", line 101, in <module>
    main()
  File "main.py", line 98, in main
    print_tbl(results_tbl, args.filename, args.allsub, args.yahoo, args.csv)
  File "/app/auto-dd/AutoDD.py", line 378, in print_tbl
    writer.writerow(row)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2014' in position 87: ordinal not in range(128)

Do you have any idea on what I can do to get it running? It seems to have trouble printing the table after gathering the data. I can get it running on Windows though.

Thanks in advance!

I would double check if you have python3 installed and running. Python3 by default encodes string in Utf-8 which shouldn't have this issue. Report back if it's not fixed and I can try to set the encoding manually.

@garygrossgarten
Copy link
Author

It's working on my Mac now. Thanks for your help!

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

3 participants