Warnings/Errors after upgrading 2.18-> 2.3.2

after upgrading from 2.1.8 to 2.3.2 I get some warnings/errors (see below), the Indico itself seems to be working ok as far as I can tell.
Any advice?
Thank you,

(.venv) indico@indico:~$ pip install -U indico-plugins
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting indico-plugins
  Downloading indico_plugins-2.3-py2-none-any.whl (1.4 kB)
Requirement already satisfied, skipping upgrade: indico-plugin-payment-manual<2.4.dev0,>=1.0.1 in ./.venv/lib/python2.7/site-packages (from indico-plugins) (1.0.1)
  Building wheel for boto3 (setup.py) ... done
  Created wheel for boto3: filename=boto3-1.16.50-py2.py3-none-any.whl size=127847 sha256=c9314832e996c62a5ef0c6166f949dc9af82ad44883dd096148bb43d2a52689b
  Stored in directory: /opt/indico/.cache/pip/wheels/1e/c4/e0/1cf0c6f694aee701173b5f9afa30fbf922584b65b8b071db6b
Successfully built boto3
Installing collected packages: indico-plugin-piwik, indico-plugin-livesync, indico-plugin-payment-paypal, jmespath, botocore, futures, s3transfer, boto3, indico-plugin-storage-s3, indico-plugin-vc-vidyo, indico-plugin-ursh, indico-plugin-search, indico-plugins
  Attempting uninstall: indico-plugin-piwik
    Found existing installation: indico-plugin-piwik 1.0
    Uninstalling indico-plugin-piwik-1.0:
      Successfully uninstalled indico-plugin-piwik-1.0
  Attempting uninstall: indico-plugin-livesync
    Found existing installation: indico-plugin-livesync 2.0
    Uninstalling indico-plugin-livesync-2.0:
      Successfully uninstalled indico-plugin-livesync-2.0
  Attempting uninstall: indico-plugin-payment-paypal
    Found existing installation: indico-plugin-payment-paypal 1.0
    Uninstalling indico-plugin-payment-paypal-1.0:
      Successfully uninstalled indico-plugin-payment-paypal-1.0
  Attempting uninstall: indico-plugin-vc-vidyo
    Found existing installation: indico-plugin-vc-vidyo 1.0
    Uninstalling indico-plugin-vc-vidyo-1.0:
      Successfully uninstalled indico-plugin-vc-vidyo-1.0
  Attempting uninstall: indico-plugin-search
    Found existing installation: indico-plugin-search 1.0.1
    Uninstalling indico-plugin-search-1.0.1:
      Successfully uninstalled indico-plugin-search-1.0.1
  Attempting uninstall: indico-plugins
    Found existing installation: indico-plugins 2.0.1
    Uninstalling indico-plugins-2.0.1:
      Successfully uninstalled indico-plugins-2.0.1
**ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.**
**botocore 1.19.50 requires urllib3<1.27,>=1.25.4; python_version != "3.4", but you'll have urllib3 1.22 which is incompatible.**
Successfully installed boto3-1.16.50 botocore-1.19.50 futures-3.3.0 indico-plugin-livesync-2.3 indico-plugin-payment-paypal-2.2 indico-plugin-piwik-2.3 indico-plugin-search-2.3 indico-plugin-storage-s3-2.3.2 indico-plugin-ursh-2.3 indico-plugin-vc-vidyo-2.3 indico-plugins-2.3 jmespath-0.10.0 s3transfer-0.3.3
(.venv) indico@indico:~$

 (.venv) indico@indico:~$ indico db upgrade
 /opt/indico/.venv/local/lib/python2.7/site-packages/indico/core/config.py:177: UserWarning: Ignoring unknown config key ASSETS_DIR
   warnings.warn('Ignoring unknown config key {}'.format(key))

For the ASSETS_DIR warning you can just remove that obsolete entry from your indico.conf.

Not sure where urllib3 1.22 is coming from… that’s a pretty old version. Maybe time to update some more stuff… pip install -U pip setuptools and pip install 'urllib3==1.25.11'.

How can I find the indico.conf in use? I inherited an old install and I find a number of [.]indico.conf

that did the trick, thank you !


Thank you, will check.

BTW, this is mentioned in the upgrade docs: https://docs.getindico.io/en/latest/installation/upgrade/#upgrading-from-2-x-to-2-2

Exactly, I am aware of that.
The sed oneliner deletes the ASSETS_DIR string from the configuration file in ~/etc/, where ~ is /opt/indico
I ran the oneliner when upgrading - point is the configuration file does not contain the ASSETS_DIR directive :slight_smile:
This is the nearest match:

AssetsDir = '/opt/indico/assets'

Indico.conf location is explained here , so I am wondering if the configuration file is overridden at some point.

Oh I see, looks like the config file is even older - we changed from camelcase to uppercase names (but normalize to uppercase) at some point between 1.9 and 2.0. I would recommend updating all the keys to the new values, because now that you reminded me of the normalization logic that’s something we’ll remove in 3.0.

1 Like