fc4 icon indicating copy to clipboard operation
fc4 copied to clipboard

Run in Python3

Open Baymax-chen opened this issue 5 years ago • 4 comments

in step b), when I run 'show_pathces.py', it would appear the following bug. I can't find the solution about this bug? QObject:: moveToThread: Current thread (0x1e60d60) is not the object's thread (0x2e6dca0). Cannot move to target thread (0x1e60d60)

I also want to know, whether the 'show_patches.py' is for data argument? is it necessary to run this code? And are there any other considerations when I run your code in Python 3?

Baymax-chen avatar Jul 23 '19 02:07 Baymax-chen

Some differences did exit between python3 and 2, while 'show_patches.py' is not necessary. I think you need to translate the language from python 2 to python3 in your future simulation. ''And are there any other considerations when I run your code in Python 3?''----Yes, same as the step b)

Jeffreyshen1992 avatar Nov 02 '20 02:11 Jeffreyshen1992

hi,i met another problem which show :async = AsyncTaskManager(task) SyntaxError: invalid syntax any problem with the code?

bryanlinnan avatar Dec 17 '20 07:12 bryanlinnan

async become a Keyword in python3 ,so you should not use it as a variable name,change it will be recommended. Besides,When you run the show_patch in python3, you should also add:from datasets import ImageRecord in the code,So you can load the .pkl successfully

Zhi-Feng-Zhang avatar Feb 19 '21 09:02 Zhi-Feng-Zhang

FYI we have a version ported to Python3 at https://github.com/hurlbertvisionlab/fc4-python3, let me know if there was an interest in PR.

jantheman avatar Jun 23 '21 14:06 jantheman