Package: sopel
Version: 6.5.0-1
Severity: important

Dear Maintainer,

Thank you for creating the sopel package for Debian.


   * What led up to the situation?

I installed the package and tried to configure it by using the commands
which were in the README.Debian file.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I ran the following commands as root:
chown sopel /etc/sopel.cfg
sudo -u sopel sopel --config /etc/sopel.cfg --configure-all

   * What was the outcome of this action?

Creating a config directory at ~/.sopel...
Please answer the following questions to create your configuration file:

Encountered an error while writing the config file. This shouldn't happen. 
Check permissions.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sopel/config/types.py", line 338, in 
parse
    os.makedirs(value)
  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/etc/logs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sopel/config/types.py", line 59, in 
__init__
    getattr(self, value)
  File "/usr/lib/python3/dist-packages/sopel/config/types.py", line 306, in 
__get__
    return self.parse(main_config, this_section, value)
  File "/usr/lib/python3/dist-packages/sopel/config/types.py", line 341, in 
parse
    "Value must be an existing or creatable directory.")
ValueError: Value must be an existing or creatable directory.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/sopel", line 11, in <module>
    load_entry_point('sopel==6.5.0', 'console_scripts', 'sopel')()
  File "/usr/lib/python3/dist-packages/sopel/run_script.py", line 111, in main
    _wizard('all', opts.config)
  File "/usr/lib/python3/dist-packages/sopel/config/__init__.py", line 217, in 
_wizard
    _create_config(configpath)
  File "/usr/lib/python3/dist-packages/sopel/config/__init__.py", line 250, in 
_create_config
    config = Config(configpath, validate=False)
  File "/usr/lib/python3/dist-packages/sopel/config/__init__.py", line 64, in 
__init__
    validate=validate)
  File "/usr/lib/python3/dist-packages/sopel/config/__init__.py", line 118, in 
define_section
    setattr(self, name, cls_(self, name, validate=validate))
  File "/usr/lib/python3/dist-packages/sopel/config/types.py", line 63, in 
__init__
    str(e))
ValueError: Invalid value for core.logdir: Value must be an existing or 
creatable directory.

   * What outcome did you expect instead?

The possibility to configure sopel.

To be able to configure sopel, the command should be:
sudo -u sopel sopel --config /etc/sopel --configure-all

Notice there is no .cfg at the end of the config file.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sopel depends on:
ii  adduser              3.115
ii  init-system-helpers  1.46
ii  lsb-base             9.20161125
ii  python3-enchant      1.6.7-1
ii  python3-requests     2.12.4-1
ii  python3-tz           2016.7-0.2
pn  python3:any          <none>

Versions of packages sopel recommends:
ii  ipython3            5.1.0-3
ii  python3-feedparser  5.1.3-3
ii  python3-lxml        3.6.4-1
ii  python3-praw        3.3.0-1
ii  python3-xmltodict   0.10.2-1

sopel suggests no packages.

-- Configuration Files:
/etc/sopel.cfg changed [not included]

-- no debconf information

Reply via email to