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

TypeError: setValue(self, value: int): argument 1 has unexpected type 'float' #27

Open
deepakshilkar opened this issue Nov 28, 2023 · 0 comments

Comments

@deepakshilkar
Copy link

After sucessful installation of the program using protocol provided, I receive the following error:

#$ AMDock
Traceback (most recent call last):
  File "/home/anaconda3/envs/AMDock/bin/AMDock", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/home/anaconda3/envs/AMDock/lib/python3.11/site-packages/AMDock/Docking_Program.py", line 160, in run
    splash = SplashScreen(QPixmap(v.splashscreen_path), app)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/anaconda3/envs/AMDock/lib/python3.11/site-packages/AMDock/splash_screen.py", line 37, in __init__
    progress_bar.setValue(ml)
TypeError: setValue(self, value: int): argument 1 has unexpected type 'float'

Do you think this can be fixed by converting the float value to an integer?

progress_bar.setValue(int(ml))

A second option but long-winded one I see is using different Splash widget altogether.

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

1 participant