Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668696 - app-eselect/eselect-repository-4: initial custom add prints confusing python error messages
Summary: app-eselect/eselect-repository-4: initial custom add prints confusing python ...
Status: RESOLVED DUPLICATE of bug 667884
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-15 09:38 UTC by fkater
Modified: 2018-10-15 18:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fkater 2018-10-15 09:38:42 UTC
When 

- adding a custom repository (eselect repository add ...)
- and never received repositories.xml before
  
you get a lot of error messages.  The operation succeeds nevertheless.  This
is a bit confusing.

Example output:

emerge respository add my-repo git https://...

> Traceback (most recent call last):                                                                                                                              
>   File "/usr/lib/eselect-repo/eselect-repo-helper", line 147, in <module>                                                                                       
>     main()                                                                                                                                                      
>   File "/usr/lib/eselect-repo/eselect-repo-helper", line 134, in main                                                                                           
>     args = p.parse_args()                                                                                                                                       
>   File "/usr/lib64/python3.6/argparse.py", line 1730, in parse_args                                                                                             
>     args, argv = self.parse_known_args(args, namespace)                                                                                                         
>   File "/usr/lib64/python3.6/argparse.py", line 1762, in parse_known_args                                                                                       
>     namespace, args = self._parse_known_args(args, namespace)                                                                                                   
>   File "/usr/lib64/python3.6/argparse.py", line 1968, in _parse_known_args                                                                                      
>     start_index = consume_optional(start_index)                                                                                                                 
>   File "/usr/lib64/python3.6/argparse.py", line 1908, in consume_optional                                                                                       
>     take_action(action, args, option_string)                                                                                                                    
>   File "/usr/lib64/python3.6/argparse.py", line 1820, in take_action                                                                                            
>     argument_values = self._get_values(action, argument_strings)                                                                                                
>   File "/usr/lib64/python3.6/argparse.py", line 2261, in _get_values                                                                                            
>     value = self._get_value(action, arg_string)                                                                                                                 
>   File "/usr/lib64/python3.6/argparse.py", line 2290, in _get_value                                                                                             
>     result = type_func(arg_string)                                                                                                                              
>   File "src/lxml/etree.pyx", line 3444, in lxml.etree.parse (src/lxml/etree.c:83185)                                                                            
>   File "src/lxml/parser.pxi", line 1834, in lxml.etree._parseDocument (src/lxml/etree.c:120757)                                                                 
>   File "src/lxml/parser.pxi", line 1860, in lxml.etree._parseDocumentFromURL (src/lxml/etree.c:121104)                                                          
>   File "src/lxml/parser.pxi", line 1764, in lxml.etree._parseDocFromFile (src/lxml/etree.c:120012)                                                              
>   File "src/lxml/parser.pxi", line 1161, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/etree.c:114561)                                                  
>   File "src/lxml/parser.pxi", line 598, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/etree.c:107738)                                            
>   File "src/lxml/parser.pxi", line 709, in lxml.etree._handleParseResult (src/lxml/etree.c:109447)                                                              
>   File "src/lxml/parser.pxi", line 636, in lxml.etree._raiseParseError (src/lxml/etree.c:108258)                                                                
> OSError: Error reading file '/root/.cache/eselect-repo/repositories.xml': failed to load external entity "/root/.cache/eselect-repo/repositories.xml"           
> !!! Error: helper failed to run                                                                                                                                 
> Adding my-repo to /etc/portage/repos.conf/eselect-repo.conf ...                                                                                              
> Repository my-repo added                                                                                                                                     
> exiting



Reproducible: Always
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-10-15 18:12:49 UTC

*** This bug has been marked as a duplicate of bug 667884 ***