Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Python3 compatibility #13

Open
amiltonwong opened this issue Jun 11, 2017 · 2 comments
Open

Python3 compatibility #13

amiltonwong opened this issue Jun 11, 2017 · 2 comments

Comments

@amiltonwong
Copy link

amiltonwong commented Jun 11, 2017

Hi, @fvisin ,

Thanks for releasing this useful package. I followed the install instruction. However, when I import dataser_loaders, I got the following error in parallel_loader.py as the following. (Currently, I only need to load Camvid dataset)

(tf_1.0) root@milton-All-Series:/data/code/dataset_loaders/dataset_loaders# python
Python 3.5.2 | packaged by conda-forge | (default, Jan 19 2017, 15:28:33) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dataset_loaders
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/code/dataset_loaders/dataset_loaders/__init__.py", line 3, in <module>
    from images.camvid import CamvidDataset  # noqa
  File "/data/code/dataset_loaders/dataset_loaders/images/camvid.py", line 5, in <module>
    from dataset_loaders.parallel_loader import ThreadedDataset
  File "/data/code/dataset_loaders/dataset_loaders/parallel_loader.py", line 519
    raise data_batch[0], data_batch[1], data_batch[2]
                       ^
SyntaxError: invalid syntax

Here is the setting in my config.ini

[camvid]
shared_path = /data/code/SegNet-Tutorial/

The Camvid dataset is located in the following folder structures (screen):
camvid_dataset

@amiltonwong
Copy link
Author

I use python 3.5

@fvisin
Copy link
Owner

fvisin commented Jun 12, 2017

Hi @amiltonwong , thank you for checking out our framework.
Unfortunately we do not support python 3 at the moment. I don't know how long it would take to make it python 3 compatible, but unfortunately we don't plan to work on that in the near future at the moment.

Contributions in this direction are very welcome though, if you want to give it a try!

@fvisin fvisin changed the title import dataset_loaders error Python3 compatibility Jun 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants