<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13741</bug_id>
          
          <creation_ts>2020-01-20 17:58:39 +0000</creation_ts>
          <short_desc>python-twisted declares PyHamcrest&gt;=1.9.0 in requirements.txt but it is not in RDEPENDS (not even needed?)</short_desc>
          <delta_ts>2020-01-29 21:29:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>3.0.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gianluigi Tiesi">sherpya</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sherpya</cc>
    
    <cc>tvgamblin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86070</commentid>
    <comment_count>0</comment_count>
    <who name="Gianluigi Tiesi">sherpya</who>
    <bug_when>2020-01-20 17:58:39 +0000</bug_when>
    <thetext>Twisted-19.7.0 declares in requires.txt:

PyHamcrest&gt;=1.9.0

the dependency is not added in the recipe, but looks like it&apos;s only needed for conch tests, unfortunately twisted calls pkg_resources that parses package requirements at runtime:

Traceback (most recent call last):
  File &quot;/usr/bin/twistd&quot;, line 6, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 3250, in &lt;module&gt;
    @_call_aside
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 3234, in _call_aside
    f(*args, **kwargs)
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 3263, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 583, in _build_master
    ws.require(__requires__)
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The &apos;PyHamcrest&gt;=1.9.0&apos; distribution was not found and is required by Twisted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86120</commentid>
    <comment_count>1</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-01-25 19:56:36 +0000</bug_when>
    <thetext>Hi Gianluigi,

It looks like there are a few modules that /usr/bin/twistd looks for but won&apos;t find in the current configuration. I&apos;m currently looking at a patch to fix this. In the meantime, you could add the following packages to your build manually via local.conf to see if it solves the issue for you:

python-pyhamcrest
python-debugger
python-unixadmin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86136</commentid>
    <comment_count>2</comment_count>
    <who name="Gianluigi Tiesi">sherpya</who>
    <bug_when>2020-01-29 14:39:22 +0000</bug_when>
    <thetext>unfortunately there is no python3-pyhamcrest so I had to patch twisted package</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86137</commentid>
    <comment_count>3</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-01-29 14:43:11 +0000</bug_when>
    <thetext>Right. I actually have submitted patches for the zeus branch, but in the meantime you may have to make manual additions if you are using python3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86138</commentid>
    <comment_count>4</comment_count>
    <who name="Gianluigi Tiesi">sherpya</who>
    <bug_when>2020-01-29 14:44:16 +0000</bug_when>
    <thetext>nevermind, it&apos;s not a big deal, I&apos;ve made a small patch for twisted and it works, I&apos;ll removed it when it will be merged</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86139</commentid>
    <comment_count>5</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-01-29 14:45:53 +0000</bug_when>
    <thetext>Sounds good. I&apos;ll close this then if you have a workaround for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86166</commentid>
    <comment_count>6</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-01-29 21:29:19 +0000</bug_when>
    <thetext>Reporter has a workaround, and patches have been submitted to fix the dependencies for master and zeus.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>