prabindh / euclid

Euclid object labeller for frictionless object detection training purposes in Machine learning frameworks (KITTI, YOLO)
45 stars 20 forks source link

different python versions (imports) #7

Closed dpogosov closed 7 years ago

dpogosov commented 7 years ago

Hi, it does not work with python 3.5.2, but if we change just 3 lines of the imports we can switch it to python 3.

these 3 lines for python 3

from tkinter import * from tkinter import messagebox as tkMessageBox from tkinter import filedialog as tkFileDialog

these 3 lines for python 2

from Tkinter import * import tkMessageBox import tkFileDialog

prabindh commented 7 years ago

I believe the below would work for Py3 instead ?

from tkinter import *
import messagebox as tkMessageBox
import filedialog as tkFileDialog
dpogosov commented 7 years ago

Yeah, it what I meant.

prabindh commented 7 years ago

Done. Please see latest commit.

prabindh commented 7 years ago

If this is closed, could you close please ? Thx

dpogosov commented 7 years ago

Please use (with 'from tkinter'): from tkinter import messagebox as tkMessageBox from tkinter import filedialog as tkFileDialog otherwise doses not work

prabindh commented 7 years ago

Finally tried it on Py3 myself, and needed some additional packages as below. Updated code. Please check master (ad84425784b205372b71e2562509fd69199e19c7).

Python 3

Python 3 + Pillow on Ubuntu, do the below

sudo apt-get install python-imaging-tk

sudo apt-get install python3-pil.imagetk

prabindh commented 7 years ago

Thx