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

Problem installing the Visualizer #46

Open
Joul1 opened this issue May 12, 2022 · 6 comments
Open

Problem installing the Visualizer #46

Joul1 opened this issue May 12, 2022 · 6 comments
Assignees
Labels

Comments

@Joul1
Copy link

Joul1 commented May 12, 2022

I have an issue using the asprilo visualizer.
I use the asprilo visualizer via anaconda on windows 10.
Opening, using and saving instances wasn’t a problem but when I tried to save an instance I would always get this Error:

„attributeerror: 'control' object has no attribute 'builder'“.

After a bit of research I thought this might have something to do with the current python version that anaconda uses. But when I tried to update python anaconda would say: „all requested packages already installed“.

I also tried uninstalling and reinstalling the asprilo visualiser itself but when I tried to install it again, it would give the following error:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  • asprilo-visualizer
    -> python[version='>=3.9']

Your python: python=3.7

I also tried to install a specific version of python via “conda install python=3.9”. But doing so, seems to make it stuck in a loop when this line appears:
[04:22<00:03, 2.59it/s]/Examining conflict for conda-content-trust cycler ipython_genutils idna prompt-toolkit backports.shutil_get_terminal_\

I don’t know a lot about how anaconda works so any help is verry appreciated.

@J-Behrens
Copy link

Hi Julian,
Could be a problem with windows. I recommend to use a Linux distribution like Ubuntu. Regarding conda: Conda Cheat Sheet

@Joul1
Copy link
Author

Joul1 commented May 12, 2022

Hi Julian, Could be a problem with windows. I recommend to use a Linux distribution like Ubuntu. Regarding conda: Conda Cheat Sheet

Thank you for the fast answer.
Strangely enough I just managed to update python and reinstall the visualizer. But I have no Idea why it worked all of the sudden.

I still have the issue, that I can save but not load instances with the visualizer, but the Error message is verry different:

TypeError: arguments did not match any overloaded call:
QRect(): too many arguments
QRect(int, int, int, int): argument 1 has unexpected type 'float'
QRect(QPoint, QPoint): argument 1 has unexpected type 'float'
QRect(QPoint, QSize): argument 1 has unexpected type 'float'
QRect(QRect): argument 1 has unexpected type 'float'

Do you think this also has something to do with windows? Or is this something I could fix?

@J-Behrens
Copy link

Hi Julian,
Yes Windows caused problems with the visualizer before. Have you tried to load the instance manually (not via the terminal)?

@pobermei
Copy link
Collaborator

TypeError: arguments did not match any overloaded call:
QRect(): too many arguments
QRect(int, int, int, int): argument 1 has unexpected type 'float'
QRect(QPoint, QPoint): argument 1 has unexpected type 'float'
QRect(QPoint, QSize): argument 1 has unexpected type 'float'
QRect(QRect): argument 1 has unexpected type 'float'

@Joul1 Seems like a conversion problem. Are you using python 3.10.x? If so, please try to downgrade to 3.9.x and see if this helps.

@Joul1
Copy link
Author

Joul1 commented May 13, 2022

Yes, downgrading to 3.9 worked. Thank you so much for your help!

@pobermei
Copy link
Collaborator

@Joul1: Thanks for your trying this out!

We have to investigate how we can resolve this incompatibility of pyqt5 and python 3.10 in our code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants