asprilo icon indicating copy to clipboard operation
asprilo copied to clipboard

Problem installing the Visualizer

Open Joul1 opened this issue 2 years ago • 6 comments

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.

Joul1 avatar May 12 '22 16:05 Joul1

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

J-Behrens avatar May 12 '22 17:05 J-Behrens

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?

Joul1 avatar May 12 '22 17:05 Joul1

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

J-Behrens avatar May 13 '22 06:05 J-Behrens

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.

pobermei avatar May 13 '22 11:05 pobermei

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

Joul1 avatar May 13 '22 12:05 Joul1

@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.

pobermei avatar May 13 '22 18:05 pobermei