You are not logged in.
I've recently upgraded a week or two ago and today I've noticed some errors with python it seems:
docker-compose
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/jsonschema/_format.py", line 206, in <module>
import strict_rfc3339
ModuleNotFoundError: No module named 'strict_rfc3339'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.22.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
return ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.6/site-packages/compose/cli/main.py", line 22, in <module>
from ..bundle import get_image_digests
File "/usr/lib/python3.6/site-packages/compose/bundle.py", line 12, in <module>
from .config.serialize import denormalize_config
File "/usr/lib/python3.6/site-packages/compose/config/__init__.py", line 6, in <module>
from .config import ConfigurationError
File "/usr/lib/python3.6/site-packages/compose/config/config.py", line 49, in <module>
from .validation import match_named_volumes
File "/usr/lib/python3.6/site-packages/compose/config/validation.py", line 12, in <module>
from jsonschema import Draft4Validator
File "/usr/lib/python3.6/site-packages/jsonschema/__init__.py", line 15, in <module>
from jsonschema._format import (
File "/usr/lib/python3.6/site-packages/jsonschema/_format.py", line 213, in <module>
@_checks_drafts("date-time", raises=(ValueError, isodate.ISO8601Error))
AttributeError: module 'isodate' has no attribute 'ISO8601Error'
And
sudo pip install strict-rfc3339
Invalid requirement: 'strict-rfc3339'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/packaging/requirements.py", line 93, in __init__
req = REQUIREMENT.parseString(requirement_string)
File "/usr/lib/python3.6/site-packages/pyparsing.py", line 1632, in parseString
raise exc
File "/usr/lib/python3.6/site-packages/pyparsing.py", line 1622, in parseString
loc, tokens = self._parse( instring, 0 )
File "/usr/lib/python3.6/site-packages/pyparsing.py", line 1379, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/usr/lib/python3.6/site-packages/pyparsing.py", line 3395, in parseImpl
loc, exprtokens = e._parse( instring, loc, doActions )
File "/usr/lib/python3.6/site-packages/pyparsing.py", line 1383, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions )
File "/usr/lib/python3.6/site-packages/pyparsing.py", line 3183, in parseImpl
raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected stringEnd (at char 14), (line:1, col:15)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 252, in from_line
req = Requirement(req)
File "/usr/lib/python3.6/site-packages/packaging/requirements.py", line 97, in __init__
requirement_string[e.loc:e.loc + 8]))
pip._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "''"
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
------------------------
Has anyone else faced these issues?
Offline
Do you frequently use pip as root? This is a recipe for disaster and very likely the cause of your problem. Python packages should always be installed with pacman so that you don't have untracked files. Or if you want to keep installing with pip, use a virtualenv and stop running it as root.
As for fixing your issues, I would start by ensuring that any pacman installed python packages are fine by using pacman -Qkk, and fix anything that needs fixing.
Offline
That import is guarded by a try/except block, and should never error out.
Additionally, that pip error makes no sense (but you shouldn't be using sudo pip anyway).
Is your entire python installation broken in some mysterious manner?
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Not a Pacman Issue, moving to AUR Issues...
Offline