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

NNJoin #37

Open
TNogatz opened this issue May 30, 2024 · 1 comment
Open

NNJoin #37

TNogatz opened this issue May 30, 2024 · 1 comment

Comments

@TNogatz
Copy link

TNogatz commented May 30, 2024

Hello Håvard,
I've installed NNJoin on a clean QGIS environment without further third party plugins. I've tried with QGIS 3.34.7 and 3.36.3 running on Windows 10. I've tried on two different computers.

When I start NNJoin the following python error occures:

2024-05-30T17:50:25 WARNING Traceback (most recent call last):
File "C:\Users/snbuser/AppData/Roaming/QGIS/QGIS3\profiles\20240530/python/plugins\NNJoin\NNJoin_plugin.py", line 137, in run
self.dlg.progressBar.setValue(0.0)
TypeError: setValue(self, value: int): argument 1 has unexpected type 'float'

So NNJoin does not start.

Best wishes, Thomas

@BoyuanGIT
Copy link

I encountered the same problem, here is how I solved it:
1.Locate the File:
Navigate to the directory where the plugin is stored. According to the error message, the file is located at:
C:\Users...\python\plugins\NNJoin\NNJoin_plugin.py
2.Open the File, Open NNJoin_plugin.py with a text editor that you are comfortable using, such as Notepad++, Visual Studio Code (WHAT I USE), or PyCharm.
3.Search for the line in the file where the error occurs. It should look like this:
self.dlg.progressBar.setValue(0.0)
4.Change the float 0.0 to an integer 0 to ensure compatibility with the setValue() method, which expects an integer. Update the
line to:
self.dlg.progressBar.setValue(0)
A restart of QGIS is needed.

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

2 participants