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

Running the standard installation on MacOS throws an encoding error #581

Closed
fso42 opened this issue Oct 20, 2021 · 3 comments
Closed

Running the standard installation on MacOS throws an encoding error #581

fso42 opened this issue Oct 20, 2021 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@fso42
Copy link
Contributor

fso42 commented Oct 20, 2021

At least that seems to be the problem from google results.

QGIS version: 3.18.0-Zürich
Qt version: 5.15.2
GDAL version: 3.2.0
GEOS version: 3.9.0-CAPI-1.16.2
PROJ version: Rel. 7.2.0, November 1st, 2020
Processing algorithm…
Algorithm 'AvaFrameConnector' starting…
Input parameters:
{ 'DEM' : '/avaWog/Inputs/avaWog.asc', 'ENT' : None, 'FOLDEST' : 't/avaWog/outputs', 'PROFILE' : 't/avaWog/Inputs/LINES/pathAB.shp', 'REL' : ['/avaWog/Inputs/REL/relWog.shp'], 'RES' : None, 'SMALLAVA' : False, 'SPLITPOINTS' : '/avaWog/Inputs/POINTS/splitPoint.shp' }

/Users/c71617/mist/avaWog/Inputs/avaWog.asc
Starting the simulations
Traceback (most recent call last):
File "/Users/c71617/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/avaframeConnector/avaframeConnector_algorithm.py", line 269, in processAlgorithm
abResultsSource, rasterResults = runOp.runOperational(str(targetDir))
File "/Users/c71617/Library/Python/3.9/lib/python/site-packages/avaframe/runOperational.py", line 73, in runOperational
_, _, _, _, plotDict, reportDictList = com1DFA.com1DFAMain(avalancheDir, cfgMain)
File "/Users/c71617/Library/Python/3.9/lib/python/site-packages/avaframe/com1DFA/com1DFA.py", line 79, in com1DFAMain
modCfg, variationDict = dP.getParameterVariationInfo(avalancheDir, com1DFA, cfgFile, variationDict)
File "/Users/c71617/Library/Python/3.9/lib/python/site-packages/avaframe/com1DFA/deriveParameterSet.py", line 162, in getParameterVariationInfo
modCfg, modInfo = cfgUtils.getModuleConfig(com1DFA, fileOverride=cfgFile, modInfo=True)
File "/Users/c71617/Library/Python/3.9/lib/python/site-packages/avaframe/in3Utils/cfgUtils.py", line 106, in getModuleConfig
cfg, modDict = compareConfig(iniFile, modName, compare, modInfo)
File "/Users/c71617/Library/Python/3.9/lib/python/site-packages/avaframe/in3Utils/cfgUtils.py", line 221, in compareConfig
cfg.read(iniFile)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 697, in read
self._read(fp, filename)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 1017, in _read
for lineno, line in enumerate(fp, start=1):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1449: ordinal not in range(128)
Execution failed after 0.03 seconds

Loading resulting layers
Algorithm 'AvaFrameConnector' finished

reported by R. Sailer

@fso42 fso42 added the bug Something isn't working label Oct 20, 2021
@fso42 fso42 self-assigned this Oct 20, 2021
@fso42
Copy link
Contributor Author

fso42 commented Oct 20, 2021

I cannot reproduce this error so far, I got it to completely run on MacOS with the standard install.
The steps I took are:

  • created a new (clean) user
  • installed miniconda3 as explained on their homepage

in a terminal:

  • created a conda environment named avaframe, activated it
  • installed QGis via conda install -c conda-forge qgis . This installed 3.18
  • installed pip via conda install pip
  • installed avaframe via pip install avaframe
  • opened qgis by calling qgis (still in the terminal with the activated avaframe environment)

in QGis:

  • installed the Avaframeconnector plugin as per our documentation
  • created a test project and ran the connector
  • results came out as expected, no error

@fso42
Copy link
Contributor Author

fso42 commented Nov 5, 2021

custom environment in Settings
LC_ALL = en_US.UTF-8 helps for the encoding

@fso42 fso42 added this to the Version 0.7 milestone Nov 8, 2021
@fso42
Copy link
Contributor Author

fso42 commented Nov 8, 2021

AvaFrame is running on multiple Macs successfully, closing

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

1 participant