Facing problem in setting up environment

Hi I am Dinesh. I have been trying to set up environment for cloning mailman repo but the terminal is displaying an error again and again. I looked up on internet for solution and tried all these solutions but nothing worked https://itsfoss.com/dpkg-returned-an-error-code-1/
Please help Thanks Dinesh

Hi Dinesh,
Please paste your error log here. Images will be filtered away.
Yours truly, Xiaoxing Ye http://www.linkedin.com/in/yexiaoxing
From: Dinesh Bhagat <db.dineshbhagat07@gmail.com> Sent: Tuesday, March 5, 2019 1:08 AM To: mailman-developers@python.org Subject: [Mailman-Developers] Facing problem in setting up environment
Hi I am Dinesh. I have been trying to set up environment for cloning mailman repo but the terminal is displaying an error again and again. I looked up on internet for solution and tried all these solutions but nothing worked https://itsfoss.com/dpkg-returned-an-error-code-1/
Please help Thanks Dinesh
Mailman-Developers mailing list -- mailman-developers@python.org To unsubscribe send an email to mailman-developers-leave@python.org https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3
Security Policy: https://wiki.list.org/x/QIA9

dinesh@dinesh-G3-3579:~$ sudo apt-get install python-setuptools python-virtualenv python3-dev git gcc node-less nodejs postfix
[sudo] password for dinesh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version (39.0.1-2).
gcc is already the newest version (4:7.3.0-3ubuntu2.1).
git is already the newest version (1:2.17.1-1ubuntu0.4).
nodejs is already the newest version (8.10.0~dfsg-2ubuntu0.4).
The following packages were automatically installed and are no longer required:
liblockfile-bin liblockfile1 libsigsegv2 lockfile-progs m4 sendmail-base
sendmail-cf sensible-mda
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
dh-python libpython3-dev libpython3.6-dev node-amdefine node-source-map
python3.6-dev
Suggested packages:
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb
postfix-sqlite sasl2-bin dovecot-common resolvconf postfix-cdb postfix-doc
The following packages will be REMOVED:
sendmail sendmail-bin
The following NEW packages will be installed:
dh-python libpython3-dev libpython3.6-dev node-amdefine node-less
node-source-map postfix python-virtualenv python3-dev python3.6-dev
0 upgraded, 10 newly installed, 2 to remove and 262 not upgraded.
1 not fully installed or removed.
Need to get 0 B/46.7 MB of archives.
After this operation, 79.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 2: /etc/environment: Syntax error: Unterminated quoted string
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please check you /etc/environment file. Seems to be a missing quote or something somewhere.
On 2019/3/5, 2:10 AM, "Dinesh Bhagat" <db.dineshbhagat07@gmail.com> wrote:
/usr/sbin/update-info-dir: 2: /etc/environment: Syntax error: Unterminated quoted string

On running command .....: "python manage.py migrate" after mailman-suite installation.
This is showing the below Given error. Please help me out.
Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/management/__init__.py", line 357, in execute django.setup() File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/apps/registry.py", line 89, in populate app_config = AppConfig.create(entry) File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import

Hi Dinesh,
The error message is missing a part? But I guess you are missing sassc or paintstore.
If it is saying "ModuleNotFoundError: No module named 'paintstore'.", please remove paintstore from INSTALLED_APPS in setttings.py file of Hyperkitty
If talking about sassc, please install it.
If not, please paste the full error message here again.

Hi Dinesh,
Your error message is not completed. I am guessing there are two possibilities,
- You have no sassc installed. In this case, please install using apt.
- It is asking for paintstore. As of the release on Feb 22,
paintstore
is no longer a dependency of Hyperkitty. This change requires that people change theirsettings.py
and removepaintstore
fromINSTALLED_APPS
. (See #72). Please try it - If none of them hits your problem, please reply with the complete error traceback.
On Wed, Mar 6, 2019 at 9:33 PM Dinesh Bhagat <db.dineshbhagat07@gmail.com> wrote:

Yes I also faced this issue and did the same thing as Xiaoxing mentioned. Removing the paintstore from Installed apps works for now. @aaryan It's not yet updated . We need to find an alternative for it.
On Wed, Mar 6, 2019 at 11:43 PM aaryan bhagat <aaryanbhagat377@gmail.com> wrote:

There is already an issue created for the same. Xiaoxing mention about in the threads. You can check the issue here https://gitlab.com/mailman/hyperkitty/issues/72
On Thu, Mar 7, 2019 at 12:04 AM aaryan bhagat <aaryanbhagat377@gmail.com> wrote:

I am also facing the same issue as KeyError 'file'. The complete traceback is shown below. Can someone please help me on this? KeyError at /postorius/lists/
'file'
Request Method: GET Request URL: http://127.0.0.1:8000/postorius/lists/ Django Version: 2.1.7 Exception Type: KeyError Exception Value:
'file'
Exception Location: /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/tempfile.py in __getattr__, line 616 Python Executable: /home/nayankhanna/Code/GSoC19/mailman/venv3/bin/python3 Python Version: 3.6.5 Python Path:
['/home/nayankhanna/Code/GSoC19/mailman/mailman-suite/mailman-suite_project', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python36.zip', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages', '/home/nayankhanna/Code/GSoC19/mailman/mailman/src', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.interface-4.6.0-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.event-4.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.configuration-4.3.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.component-4.5-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/SQLAlchemy-1.3.0-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/requests-2.21.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/passlib-1.7.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/lazr.config-2.2.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/importlib_resources-1.0.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.lock-3.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.i18n-2.0.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.bounce-3.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/falcon-2.0.0a1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/dnspython-1.16.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Click-7.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/atpublic-1.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/alembic-1.0.8-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/aiosmtpd-1.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.schema-4.9.3-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.i18nmessageid-4.3.1-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.hookable-4.2.0-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.deprecation-4.4.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.deferredimport-4.3-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/urllib3-1.24.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/idna-2.8-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/certifi-2018.11.29-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/lazr.delegates-2.0.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/python_dateutil-2.8.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/python_editor-1.0.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Mako-1.0.7-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/six-1.12.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.proxy-4.3.1-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/nose-1.3.7-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/MarkupSafe-1.1.1-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src', '/home/nayankhanna/Code/GSoC19/mailman/django-mailman3', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_compressor-2.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/pytz-2018.9-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_gravatar2-1.4.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_allauth-0.39.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/rjsmin-1.0.12-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/rcssmin-1.0.6-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_appconf-1.0.3-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/requests_oauthlib-1.2.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/python3_openid-3.1.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/oauthlib-3.0.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/defusedxml-0.5.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/postorius/src', '/home/nayankhanna/Code/GSoC19/mailman/hyperkitty', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_q-1.0.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/lockfile-0.12.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_extensions-2.1.6-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_haystack-2.8.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/networkx-2.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/robot_detection-0.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/djangorestframework-3.9.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_picklefield-2.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/blessed-1.15.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/arrow-0.13.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/mailman-hyperkitty', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages']
Server time: Wed, 6 Mar 2019 18:54:10 +0000 Traceback Switch to copy-and-paste view <http://127.0.0.1:8000/postorius/lists/#>
- /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in inner
response = get_response(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py in _get_response 1.
response =
self.process_exception_by_middleware(e, request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py in _get_response 1.
response = wrapped_callback(request,
*callback_args, **callback_kwargs)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py in list_index 1.
return list_index_authenticated(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/contrib/auth/decorators.py in _wrapped_view 1.
return view_func(request, *args, **kwargs)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py in list_index_authenticated 1.
choosable_domains = _get_choosable_domains(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py in _get_choosable_domains 1.
domains = Domain.objects.all()
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
- /home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/models.py in all
return getattr(get_mailman_client(),
self.resource_name_plural)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/client.py in domains 1.
response, content = self._connection.call('domains')
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/restbase/connection.py in call 1.
response.content, response, None)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
- During handling of the above exception (HTTP Error 500: b'A server error occurred. Please contact the administrator.'), another exception occurred:
- /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in inner
response = get_response(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/middleware.py in __call__ 1.
return self.get_response(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in inner 1.
response = response_for_exception(request, exc)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in response_for_exception 1.
response = handle_uncaught_exception(request,
get_resolver(get_urlconf()), sys.exc_info())
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in handle_uncaught_exception 1.
return debug.technical_500_response(request, *exc_info)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py in technical_500_response 1.
reporter = ExceptionReporter(request, exc_type, exc_value, tb)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py in __init__ 1.
self.template_info = getattr(self.exc_value,
'template_debug', None)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
- /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/tempfile.py in __getattr__
file = self.__dict__['file']
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
On Thu, Mar 7, 2019 at 12:12 AM aaryan bhagat <aaryanbhagat377@gmail.com> wrote:

@Mark Sapiro @Abhilash Raj Could you please help me in this? I have been working on this error since the past day and havent had any significant progress.
I had even referred to https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/P... But this didn't seem to work. Please help me in this.
Regards Nayan Khanna
On Thu, Mar 7, 2019 at 12:28 AM NAYAN KHANNA < f20170636@pilani.bits-pilani.ac.in> wrote:

On 3/6/19 11:57 AM, NAYAN KHANNA wrote:
It is very hard to follow the traceback. Note where you copied
It probably would be more readable if you had switched to copy/paste view.
Anyway, the issue appears to be that the call to self._connection.call('domains') here:
/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/client.py in domains 1.
response, content = self._connection.call('domains')
raises HTTPError in mailmanclient/restbase/connection.py at line 101, possibly because you have no domains defined, but the error detail isn't in your post.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Just created an issue for this. https://gitlab.com/mailman/mailman/issues/563
On Thu, Mar 7, 2019 at 2:36 AM Krishna Kumar Dey < krishnakumardey.dey@gmail.com> wrote:

#mailman-suite/mailman-suite_project/settings.py
# Mailman API credentials MAILMAN_REST_API_URL = 'http://localhost:8001' MAILMAN_REST_API_USER = 'restadmin' MAILMAN_REST_API_PASS = 'restpass' MAILMAN_ARCHIVER_KEY = 'SecretArchiverAPIKey' MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1')
This is the part of settings.py.
Output of bin/mailman conf:
[webservice] admin_pass: restpass [webservice] admin_user: restadmin [webservice] api_version: 3.1 [webservice] hostname: localhost [webservice] port: 8001 [webservice] show_tracebacks: yes [webservice] use_https: no
Also, as suggested by Krishna, I installed falcon but nothing changed. Btw, Thanks for the help.

Check the falcon version again. Also restart the mailman core. What is the error that you are getting when you open http://localhost:8001/3.1
On Thu, Mar 7, 2019 at 2:49 AM NAYAN KHANNA < f20170636@pilani.bits-pilani.ac.in> wrote:

Hi Nayan,
I have re-proed the issue. Please run
*pip install falcon==1.4.1*
to force install the latest stable release of falcon. Falcon 2.0.0a1 is not compatible with Mailman up to now. This should fix your problem.
On Thu, Mar 7, 2019 at 5:20 AM NAYAN KHANNA < f20170636@pilani.bits-pilani.ac.in> wrote:

Hello Arpit, please try the following;
The thing that worked for me:
pip install falcon==1.4.1
$sudo lsof -i:8000 #If you get a PID here, run $kill <PID>
$sudo lsof -i:8001 #If you get a PID here, run $kill <PID>
$sudo lsof -i:8002 #If you get a PID here, run $kill <PID>
$mailman stop $mailman start
On Sat, 9 Mar 2019, 10:42 am ARPIT sharma, <imarpit02@gmail.com> wrote:

On 3/8/19 9:12 PM, ARPIT sharma wrote:
For all of you who *think* you have the same problem, you may all be having different issues. This KeyError is a secondary error that occurs in Django's processing of the original exception. When you look at the full traceback, you'll see in it something similar to the following:
...
The line above and the traceback above that are the relevant things for your issue. Everything that follows is not relevant.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On Sat, Mar 9, 2019, at 8:25 AM, Mark Sapiro wrote:
To add to what Mark said, usually, KeyError is caused by missing log file or bad settings in Django. Some exception is raised and Django tries to log it to a "file" which is looks for in the LOGGING['loggers'] in exmaple_project/settings.py.
Please make sure that you figure out which logger are you missing. From looking at the traceback, I see that it is "django.template" logger. Which should ideally not cause problems, but it looks like it is.
-- thanks, Abhilash Raj (maxking)

On 3/6/19 10:34 AM, aaryan bhagat wrote:
<https://gitlab.com/mailman/hyperkitty/merge_requests/121> which removed paintstore removed it also from INSTALLED_APPS in hyperkitty/example_project/settings.py.
Also see <https://hyperkitty.readthedocs.io/en/latest/news.html#id1>.
Unfortunately, paintstore is still in mailman-suite/mailman-suite_project/settings.py. I just created <https://gitlab.com/mailman/mailman-suite/issues/15>. It should be easy to fix.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Hi Dinesh,
Please paste your error log here. Images will be filtered away.
Yours truly, Xiaoxing Ye http://www.linkedin.com/in/yexiaoxing
From: Dinesh Bhagat <db.dineshbhagat07@gmail.com> Sent: Tuesday, March 5, 2019 1:08 AM To: mailman-developers@python.org Subject: [Mailman-Developers] Facing problem in setting up environment
Hi I am Dinesh. I have been trying to set up environment for cloning mailman repo but the terminal is displaying an error again and again. I looked up on internet for solution and tried all these solutions but nothing worked https://itsfoss.com/dpkg-returned-an-error-code-1/
Please help Thanks Dinesh
Mailman-Developers mailing list -- mailman-developers@python.org To unsubscribe send an email to mailman-developers-leave@python.org https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3
Security Policy: https://wiki.list.org/x/QIA9

dinesh@dinesh-G3-3579:~$ sudo apt-get install python-setuptools python-virtualenv python3-dev git gcc node-less nodejs postfix
[sudo] password for dinesh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version (39.0.1-2).
gcc is already the newest version (4:7.3.0-3ubuntu2.1).
git is already the newest version (1:2.17.1-1ubuntu0.4).
nodejs is already the newest version (8.10.0~dfsg-2ubuntu0.4).
The following packages were automatically installed and are no longer required:
liblockfile-bin liblockfile1 libsigsegv2 lockfile-progs m4 sendmail-base
sendmail-cf sensible-mda
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
dh-python libpython3-dev libpython3.6-dev node-amdefine node-source-map
python3.6-dev
Suggested packages:
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb
postfix-sqlite sasl2-bin dovecot-common resolvconf postfix-cdb postfix-doc
The following packages will be REMOVED:
sendmail sendmail-bin
The following NEW packages will be installed:
dh-python libpython3-dev libpython3.6-dev node-amdefine node-less
node-source-map postfix python-virtualenv python3-dev python3.6-dev
0 upgraded, 10 newly installed, 2 to remove and 262 not upgraded.
1 not fully installed or removed.
Need to get 0 B/46.7 MB of archives.
After this operation, 79.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 2: /etc/environment: Syntax error: Unterminated quoted string
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please check you /etc/environment file. Seems to be a missing quote or something somewhere.
On 2019/3/5, 2:10 AM, "Dinesh Bhagat" <db.dineshbhagat07@gmail.com> wrote:
/usr/sbin/update-info-dir: 2: /etc/environment: Syntax error: Unterminated quoted string

On running command .....: "python manage.py migrate" after mailman-suite installation.
This is showing the below Given error. Please help me out.
Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/management/__init__.py", line 357, in execute django.setup() File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/apps/registry.py", line 89, in populate app_config = AppConfig.create(entry) File "/home/dinesh/Desktop/GSoC/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import

Hi Dinesh,
The error message is missing a part? But I guess you are missing sassc or paintstore.
If it is saying "ModuleNotFoundError: No module named 'paintstore'.", please remove paintstore from INSTALLED_APPS in setttings.py file of Hyperkitty
If talking about sassc, please install it.
If not, please paste the full error message here again.

Hi Dinesh,
Your error message is not completed. I am guessing there are two possibilities,
- You have no sassc installed. In this case, please install using apt.
- It is asking for paintstore. As of the release on Feb 22,
paintstore
is no longer a dependency of Hyperkitty. This change requires that people change theirsettings.py
and removepaintstore
fromINSTALLED_APPS
. (See #72). Please try it - If none of them hits your problem, please reply with the complete error traceback.
On Wed, Mar 6, 2019 at 9:33 PM Dinesh Bhagat <db.dineshbhagat07@gmail.com> wrote:

Yes I also faced this issue and did the same thing as Xiaoxing mentioned. Removing the paintstore from Installed apps works for now. @aaryan It's not yet updated . We need to find an alternative for it.
On Wed, Mar 6, 2019 at 11:43 PM aaryan bhagat <aaryanbhagat377@gmail.com> wrote:

There is already an issue created for the same. Xiaoxing mention about in the threads. You can check the issue here https://gitlab.com/mailman/hyperkitty/issues/72
On Thu, Mar 7, 2019 at 12:04 AM aaryan bhagat <aaryanbhagat377@gmail.com> wrote:

I am also facing the same issue as KeyError 'file'. The complete traceback is shown below. Can someone please help me on this? KeyError at /postorius/lists/
'file'
Request Method: GET Request URL: http://127.0.0.1:8000/postorius/lists/ Django Version: 2.1.7 Exception Type: KeyError Exception Value:
'file'
Exception Location: /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/tempfile.py in __getattr__, line 616 Python Executable: /home/nayankhanna/Code/GSoC19/mailman/venv3/bin/python3 Python Version: 3.6.5 Python Path:
['/home/nayankhanna/Code/GSoC19/mailman/mailman-suite/mailman-suite_project', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python36.zip', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages', '/home/nayankhanna/Code/GSoC19/mailman/mailman/src', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.interface-4.6.0-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.event-4.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.configuration-4.3.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.component-4.5-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/SQLAlchemy-1.3.0-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/requests-2.21.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/passlib-1.7.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/lazr.config-2.2.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/importlib_resources-1.0.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.lock-3.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.i18n-2.0.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.bounce-3.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/falcon-2.0.0a1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/dnspython-1.16.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Click-7.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/atpublic-1.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/alembic-1.0.8-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/aiosmtpd-1.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.schema-4.9.3-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.i18nmessageid-4.3.1-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.hookable-4.2.0-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.deprecation-4.4.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.deferredimport-4.3-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/urllib3-1.24.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/idna-2.8-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/certifi-2018.11.29-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/lazr.delegates-2.0.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/python_dateutil-2.8.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/python_editor-1.0.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Mako-1.0.7-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/six-1.12.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.proxy-4.3.1-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/nose-1.3.7-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/MarkupSafe-1.1.1-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src', '/home/nayankhanna/Code/GSoC19/mailman/django-mailman3', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_compressor-2.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/pytz-2018.9-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_gravatar2-1.4.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_allauth-0.39.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/rjsmin-1.0.12-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/rcssmin-1.0.6-py3.6-linux-x86_64.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_appconf-1.0.3-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/requests_oauthlib-1.2.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/python3_openid-3.1.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/oauthlib-3.0.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/defusedxml-0.5.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/postorius/src', '/home/nayankhanna/Code/GSoC19/mailman/hyperkitty', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_q-1.0.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/lockfile-0.12.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_extensions-2.1.6-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_haystack-2.8.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/networkx-2.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/robot_detection-0.4-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/djangorestframework-3.9.2-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/django_picklefield-2.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/blessed-1.15.0-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/arrow-0.13.1-py3.6.egg', '/home/nayankhanna/Code/GSoC19/mailman/mailman-hyperkitty', '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages']
Server time: Wed, 6 Mar 2019 18:54:10 +0000 Traceback Switch to copy-and-paste view <http://127.0.0.1:8000/postorius/lists/#>
- /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in inner
response = get_response(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py in _get_response 1.
response =
self.process_exception_by_middleware(e, request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py in _get_response 1.
response = wrapped_callback(request,
*callback_args, **callback_kwargs)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py in list_index 1.
return list_index_authenticated(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/contrib/auth/decorators.py in _wrapped_view 1.
return view_func(request, *args, **kwargs)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py in list_index_authenticated 1.
choosable_domains = _get_choosable_domains(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py in _get_choosable_domains 1.
domains = Domain.objects.all()
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
- /home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/models.py in all
return getattr(get_mailman_client(),
self.resource_name_plural)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/client.py in domains 1.
response, content = self._connection.call('domains')
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/restbase/connection.py in call 1.
response.content, response, None)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
- During handling of the above exception (HTTP Error 500: b'A server error occurred. Please contact the administrator.'), another exception occurred:
- /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in inner
response = get_response(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/middleware.py in __call__ 1.
return self.get_response(request)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in inner 1.
response = response_for_exception(request, exc)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in response_for_exception 1.
response = handle_uncaught_exception(request,
get_resolver(get_urlconf()), sys.exc_info())
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py in handle_uncaught_exception 1.
return debug.technical_500_response(request, *exc_info)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py in technical_500_response 1.
reporter = ExceptionReporter(request, exc_type, exc_value, tb)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py in __init__ 1.
self.template_info = getattr(self.exc_value,
'template_debug', None)
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
- /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/tempfile.py in __getattr__
file = self.__dict__['file']
...
▶ Local vars <http://127.0.0.1:8000/postorius/lists/#>
On Thu, Mar 7, 2019 at 12:12 AM aaryan bhagat <aaryanbhagat377@gmail.com> wrote:

@Mark Sapiro @Abhilash Raj Could you please help me in this? I have been working on this error since the past day and havent had any significant progress.
I had even referred to https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/P... But this didn't seem to work. Please help me in this.
Regards Nayan Khanna
On Thu, Mar 7, 2019 at 12:28 AM NAYAN KHANNA < f20170636@pilani.bits-pilani.ac.in> wrote:

On 3/6/19 11:57 AM, NAYAN KHANNA wrote:
It is very hard to follow the traceback. Note where you copied
It probably would be more readable if you had switched to copy/paste view.
Anyway, the issue appears to be that the call to self._connection.call('domains') here:
/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/client.py in domains 1.
response, content = self._connection.call('domains')
raises HTTPError in mailmanclient/restbase/connection.py at line 101, possibly because you have no domains defined, but the error detail isn't in your post.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Just created an issue for this. https://gitlab.com/mailman/mailman/issues/563
On Thu, Mar 7, 2019 at 2:36 AM Krishna Kumar Dey < krishnakumardey.dey@gmail.com> wrote:

#mailman-suite/mailman-suite_project/settings.py
# Mailman API credentials MAILMAN_REST_API_URL = 'http://localhost:8001' MAILMAN_REST_API_USER = 'restadmin' MAILMAN_REST_API_PASS = 'restpass' MAILMAN_ARCHIVER_KEY = 'SecretArchiverAPIKey' MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1')
This is the part of settings.py.
Output of bin/mailman conf:
[webservice] admin_pass: restpass [webservice] admin_user: restadmin [webservice] api_version: 3.1 [webservice] hostname: localhost [webservice] port: 8001 [webservice] show_tracebacks: yes [webservice] use_https: no
Also, as suggested by Krishna, I installed falcon but nothing changed. Btw, Thanks for the help.

Check the falcon version again. Also restart the mailman core. What is the error that you are getting when you open http://localhost:8001/3.1
On Thu, Mar 7, 2019 at 2:49 AM NAYAN KHANNA < f20170636@pilani.bits-pilani.ac.in> wrote:

Hi Nayan,
I have re-proed the issue. Please run
*pip install falcon==1.4.1*
to force install the latest stable release of falcon. Falcon 2.0.0a1 is not compatible with Mailman up to now. This should fix your problem.
On Thu, Mar 7, 2019 at 5:20 AM NAYAN KHANNA < f20170636@pilani.bits-pilani.ac.in> wrote:

Hello Arpit, please try the following;
The thing that worked for me:
pip install falcon==1.4.1
$sudo lsof -i:8000 #If you get a PID here, run $kill <PID>
$sudo lsof -i:8001 #If you get a PID here, run $kill <PID>
$sudo lsof -i:8002 #If you get a PID here, run $kill <PID>
$mailman stop $mailman start
On Sat, 9 Mar 2019, 10:42 am ARPIT sharma, <imarpit02@gmail.com> wrote:

On 3/8/19 9:12 PM, ARPIT sharma wrote:
For all of you who *think* you have the same problem, you may all be having different issues. This KeyError is a secondary error that occurs in Django's processing of the original exception. When you look at the full traceback, you'll see in it something similar to the following:
...
The line above and the traceback above that are the relevant things for your issue. Everything that follows is not relevant.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On Sat, Mar 9, 2019, at 8:25 AM, Mark Sapiro wrote:
To add to what Mark said, usually, KeyError is caused by missing log file or bad settings in Django. Some exception is raised and Django tries to log it to a "file" which is looks for in the LOGGING['loggers'] in exmaple_project/settings.py.
Please make sure that you figure out which logger are you missing. From looking at the traceback, I see that it is "django.template" logger. Which should ideally not cause problems, but it looks like it is.
-- thanks, Abhilash Raj (maxking)

On 3/6/19 10:34 AM, aaryan bhagat wrote:
<https://gitlab.com/mailman/hyperkitty/merge_requests/121> which removed paintstore removed it also from INSTALLED_APPS in hyperkitty/example_project/settings.py.
Also see <https://hyperkitty.readthedocs.io/en/latest/news.html#id1>.
Unfortunately, paintstore is still in mailman-suite/mailman-suite_project/settings.py. I just created <https://gitlab.com/mailman/mailman-suite/issues/15>. It should be easy to fix.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (10)
-
aaryan bhagat
-
Abhilash Raj
-
ARPIT sharma
-
Dinesh Bhagat
-
Krishna Kumar Dey
-
Mark Sapiro
-
NAYAN KHANNA
-
Xiaoxing Ye
-
Ye Xiaoxing
-
Ye Xiaoxing