ChrisKnott / Algojammer

An experimental code editor for writing algorithms
Apache License 2.0
2.92k stars 107 forks source link

Build error by python 3.5. #13

Closed lei-cao closed 5 years ago

lei-cao commented 5 years ago

I can build and run with python3.7 installed by homebrew. But it seems not working perfect. Not highlighted and not showing me the variables. image

Since you mentioned you are using python 3.5. So I installed python 3.5 from https://www.python.org/downloads/mac-osx/ but when I build the c extension, it errore d

~/p/c/A/c_ext ❯❯❯ python3 setup.py build install                                                                                       master ◼

running build
running build_ext
building 'algorecord' extension
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c algorecord.cpp -o build/temp.macosx-10.6-intel-3.5/algorecord.o -std=c++11 -O3
algorecord.cpp:5:10: fatal error: 'chrono' file not found
#include <chrono>
         ^~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

Seems it's not finding c++11 somehow. But I am not sure how to fix it. Any help?

Thank a lot.

Cheers, Lei

lei-cao commented 5 years ago

Closing this. made it work with python3.7