Closed Ninie14 closed 1 year ago
Hi @Ninie14 Sorry but I can't immediately see the problem. On the face of it from this error listing it doesn't appear to be specific to the contour plugin. The contour plugin uses some QGIS python library functions, which in turn use some native python functions. It appears that the error is coming from the python installation. You can check this by running the following two lines in a python window
import platform
print(platform.platform())
If you get the same error from this then very likely there is a problem with your python installation. I'm afraid I am very unfamiliar with MacOS, so probably can't help with this :-(
Closing stale issue
Hi,
I get an error message when opening QGIS 3.10: "AttributeError: 'tuple' object has no attribute 'read'." I run QGIS on a MacBook Pro, version macOS Catalina 10.15.6. I need to get this plugin working asap. Can you please assist ? I don't know much about Python.
Thank you, Virginie
AttributeError: 'tuple' object has no attribute 'read' raceback (most recent call last): File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 334, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/virginiebrunetaud/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/contour/init.py", line 38, in classFactory from .ContourPlugin import ContourPlugin File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/virginiebrunetaud/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/contour/ContourPlugin.py", line 38, in from .ContourGeneratorProvider import ContourGeneratorProvider File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/virginiebrunetaud/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/contour/ContourGeneratorProvider.py", line 31, in from .ContourGeneratorAlgorithm import ContourGeneratorAlgorithm File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/virginiebrunetaud/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/contour/ContourGeneratorAlgorithm.py", line 47, in from .ContourGenerator import ContourGenerator, ContourType, ContourExtendOption File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/virginiebrunetaud/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/contour/ContourGenerator.py", line 11, in qgis_qhull_fails=platform.platform().startswith('Linux') File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", line 1182, in platform system, node, release, version, machine, processor = uname() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", line 857, in uname processor = _syscmd_uname('-p', '') File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", line 613, in _syscmd_uname output = subprocess.check_output(('uname', option), File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/init.py", line 145, in new process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/init.py", line 121, in create_process shlex.split(command), File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", line 311, in split return list(lex) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", line 300, in next token = self.get_token() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", line 109, in get_token raw = self.read_token() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", line 140, in read_token nextchar = self.instream.read(1) AttributeError: 'tuple' object has no attribute 'read'
Python version: 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18) [Clang 6.0 (clang-600.0.57)] QGIS version: 3.10.6-A Coruña A Coruña, exported
Python Path: /Applications/QGIS3.app/Contents/MacOS/../Resources/python /Users/virginiebrunetaud/Library/Application Support/QGIS/QGIS3/profiles/default/python /Users/virginiebrunetaud/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins /Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins /Library/Frameworks/SQLite3.framework/Versions/F/Python/3.8 /Library/Frameworks/Python.framework/Versions/3.8/lib/python38.zip /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8 /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages /Users/virginiebrunetaud/Library/Application Support/QGIS/QGIS3/profiles/default/python