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

Config import error on Debian 6.0 #1

Open
Shaps opened this issue Nov 7, 2012 · 3 comments
Open

Config import error on Debian 6.0 #1

Shaps opened this issue Nov 7, 2012 · 3 comments

Comments

@Shaps
Copy link

Shaps commented Nov 7, 2012

After installing synapse-client on a fresh install Debian Squeezy 6.0, I was getting this error when testing on localhost:

Traceback (most recent call last):
  File "/usr/bin/synapse-client", line 5, in <module>
    from syncli import main
  File "/usr/lib/pymodules/python2.6/syncli/main.py", line 4, in <module>
    from syncli.config import get_config_path
  File "/usr/lib/pymodules/python2.6/syncli/config.py", line 45, in <module>
    config.read(get_config_path('synapse-client.conf'))
  File "/usr/lib/python2.6/ConfigParser.py", line 281, in read
    for filename in filenames:
TypeError: 'NoneType' object is not iterable

Fixed:

In this file

/usr/lib/pymodules/python2.6/syncli/config.py

synapse-client searches for the config file, in the "/etc/synapse" directory,
exactely on line 33:

    etc_path = join("/etc/synapse", filename)

which is wrong. The correct path on Debian is "/etc/synapse-client", so updating the line with

        etc_path = join("/etc/synapse-client", filename)

It works fine.

-Shaps

@raphdg
Copy link
Contributor

raphdg commented Nov 7, 2012

Have you tried doing a git pull ?

This has been fixed in last commit (ref. 02810f2)

Thanks for your contribution in any case !

@Shaps
Copy link
Author

Shaps commented Nov 7, 2012

No, didn't try with git, i just downloaded from the comodit repo. Should keep github repo as deafult?

@raphdg
Copy link
Contributor

raphdg commented Nov 8, 2012

I'm updating the rpm and deb repos asap !

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