Coder Social home page Coder Social logo

Comments (3)

pcvolkmer avatar pcvolkmer commented on August 26, 2024

Removing line breaks in line 228 fixed this for me. You should insert a comment into README.md that this must be done if using the provided link to arsnova.properties.example

from arsnova-setuptool.

pushPatrol avatar pushPatrol commented on August 26, 2024

This error still shows up. I followed the installation guide and did the changes mentioned here: https://github.com/thm-projects/arsnova-backend/blob/master/src/site/markdown/installation.md#configuration

I get the following error:

Traceback (most recent call last):
File "tool.py", line 61, in
(db, conn) = couchconnection.arsnova_connection("/etc/arsnova/arsnova.properties")
File "/root/arsnova/arsnova-setuptool/couchconnection.py", line 66, in arsnova_connection
config.readfp(io.BytesIO("[arsnova]" + properties))
File "/usr/lib/python2.7/ConfigParser.py", line 324, in readfp
self._read(fp, filename)
File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: <???>
[line 7]: '\n'
[line 134]: ' \n'
[line 138]: ' \n'
[line 143]: ' \n'
[line 148]: ' \n'
[line 152]: ' \n'
[line 175]: '\n'
[line 189]: '\n'
[line 196]: '\n'
[line 259]: '\n'
[line 267]: '\n'
[line 282]: ' \n'
[line 290]: ' \n'
[line 298]: ' \n'
[line 304]: '\n'
[line 308]: '\n'
[line 313]: '\n'
And so on. I tried to fix all these parsing issues, but the couchconnection.py couldn't find the setting for host, port, db, user and password. So I set them in couchconnection.py directly and could run the tool.py script - finally.

from arsnova-setuptool.

dgerhardt avatar dgerhardt commented on August 26, 2024

My guess is this error was caused by copy-and-pasting the content of the configuration file which might have led to unintended charset or indentation changes. I can not reproduce this error when using the arsnova.properties files distributed with ARSnova Backend releases.

New lines in property values have to be indented with at least one space. The line break itself has to be escaped with a backslash.

I'm closing this for now. Feel free to reopen but please include an affected config file to reproduce the issue in this case.

from arsnova-setuptool.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.