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

Run in Python3 #39

Open
Baymax-chen opened this issue Jul 23, 2019 · 4 comments
Open

Run in Python3 #39

Baymax-chen opened this issue Jul 23, 2019 · 4 comments

Comments

@Baymax-chen
Copy link

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?

@Jeffreyshen1992
Copy link

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)

@bryanlinnan
Copy link

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

@Zhi-Feng-Zhang
Copy link

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

@jantheman
Copy link

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.

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

5 participants