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

progress bar error on upload schematisation on linux #477

Open
daanvaningen opened this issue Jun 29, 2023 · 0 comments
Open

progress bar error on upload schematisation on linux #477

daanvaningen opened this issue Jun 29, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@daanvaningen
Copy link

Contact Details

[email protected]

Complexity

easy

Priority

medium prio

What happened?

progress bar error on upload schematisation on linux

TypeError: setValue(self, int): argument 1 has unexpected type 'float' 
Traceback (most recent call last):
  File "/home/daan/.local/share/QGIS/QGIS3/profiles/default/python/plugins/threedi_models_and_simulations/widgets/upload_overview.py", line 82, in on_upload_context_change
    self.on_update_upload_progress(self.current_upload_row, *self.upload_progresses[self.current_upload_row])
  File "/home/daan/.local/share/QGIS/QGIS3/profiles/default/python/plugins/threedi_models_and_simulations/widgets/upload_overview.py", line 185, in on_update_upload_progress
    self.pbar_current_task.setValue(task_progress)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'


Python version: 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] 
QGIS version: 3.30.3-'s-Hertogenbosch 's-Hertogenbosch, c006973ad1

Local fix:

self.pbar_current_task.setValue(int(task_progress))
self.pbar_total_upload.setValue(int(total_progress))

How to Reproduce?

Upload a schematisation on linux,
Python version: 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
QGIS version: 3.30.3-'s-Hertogenbosch 's-Hertogenbosch, c006973ad1

What did you expect and what was the actual result?

no error and smooth sailing

Add screenshots, video's etc

No response

Relevant log output

TypeError: setValue(self, int): argument 1 has unexpected type 'float' 
Traceback (most recent call last):
  File "/home/daan/.local/share/QGIS/QGIS3/profiles/default/python/plugins/threedi_models_and_simulations/widgets/upload_overview.py", line 82, in on_upload_context_change
    self.on_update_upload_progress(self.current_upload_row, *self.upload_progresses[self.current_upload_row])
  File "/home/daan/.local/share/QGIS/QGIS3/profiles/default/python/plugins/threedi_models_and_simulations/widgets/upload_overview.py", line 185, in on_update_upload_progress
    self.pbar_current_task.setValue(task_progress)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'


Python version: 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] 
QGIS version: 3.30.3-'s-Hertogenbosch 's-Hertogenbosch, c006973ad1


### Additional info

:unicorn: 
@daanvaningen daanvaningen added the bug Something isn't working label Jun 29, 2023
@leendertvanwolfswinkel leendertvanwolfswinkel changed the title [Bug]: setValue(self, int): argument 1 has unexpected type 'float' progress bar error on upload schematisation on linux Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants