<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 May 2014 03:42, William Woodall <span dir="ltr"><<a href="mailto:william@osrfoundation.org" target="_blank">william@osrfoundation.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Daniel, that is a CMake warning, the less than optimal 'catkin_basic' which was created before my time is naively trying to find package all of your dependencies, the fact that it is not finding catkin_pkg is expected.<div>


<br></div><div>I think that is a red herring, and has nothing to do with your problems. This is actually the problem:</div><div><br></div><div>```</div><div><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">
/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/rocon_tools/rocon_interactions/doc/modules.rst:72: WARNING: autodoc: failed to import module u'rocon_interactions.web_interactions'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 335, in import_object
    __import__(self.modname)
  File "/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs/lib/python2.7/dist-packages/rocon_interactions/__init__.py", line 20, in <module>
    from .manager import InteractionsManager
  File "/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs/lib/python2.7/dist-packages/rocon_interactions/manager.py", line 31, in <module>
    import rocon_uri
  File "/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs/lib/python2.7/dist-packages/rocon_uri/__init__.py", line 23, in <module>
    from uri import parse, is_compatible, RoconURI
  File "/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs/lib/python2.7/dist-packages/rocon_uri/uri.py", line 150, in <module>
    class RoconURI(object):
  File "/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs/lib/python2.7/dist-packages/rocon_uri/uri.py", line 176, in RoconURI
    ebnf_rules = rules.load_ebnf_rules()
  File "/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs/lib/python2.7/dist-packages/rocon_uri/rules.py", line 107, in load_ebnf_rules
    yaml_rules = load_rules_into_dictionary()
  File "/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs/lib/python2.7/dist-packages/rocon_uri/rules.py", line 48, in load_rules_into_dictionary
    with open(yaml_filename) as f:
IOError: [Errno 2] No such file or directory: u'/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs/share/rocon_uri/yaml/rules.yaml'</pre>```</div></div></blockquote>
<div><br></div><div>How did I miss that? Thanks William. However it does raise another question..</div><div><br></div><div>That import above is crawling through the <b><span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap">doc_stacks/2014-05-05_10-39-35.247521/local_installs/lib/python2.7/dist-packages/rocon_uri</span><i> </i></b>directory instead of the source installed <span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap"><b>doc_stacks/2014-05-05_10-39-35.247521/rocon_tools/rocon_uri</b></span><span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap">. </span>This is a result of a call to  <span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap"><b>roslib.packages.get_pkg_dir('rocon_uri')</b></span> which picks up the deb installed not the local installed dir. This problem will go away as soon as the deb release catches up with the sources and that install rule is fixed.</div>
<div><br></div><div>However, if the build changes:</div><div><br></div><div><span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap">ROS_PACKAGE_PATH=/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521:$ROS_PACKAGE_PATH</span></div>
<div><br></div><div>to:</div><div><br></div><div><div><span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap">ROS_PACKAGE_PATH=</span><span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap">/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/rocon_tools:</span><span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap">/home/rosbuild/hudson/workspace/doc-indigo-rocon_tools/doc_stacks/2014-05-05_10-39-35.247521/local_installs:$ROS_PACKAGE_PATH</span></div>
</div><div><span style="color:rgb(0,0,0);font-size:11px;white-space:pre-wrap"><br></span></div><div>then would it avoid inadvertantly importing old released modules instead of the ones we are trying to doc? </div><div><br>
</div><div>Additionally, and I guess this is a pythonic thing, I perhaps shouldn't be loading up file data into a class variable. I can think of workarounds to that but it will take a little while to get that to happen.</div>
<div><br></div><div>Again, thanks William.</div><div>Daniel.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, May 5, 2014 at 11:30 AM, Daniel Stonier <span dir="ltr"><<a href="mailto:d.stonier@gmail.com" target="_blank">d.stonier@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">

<div dir="ltr"><div><br></div><div>Hi,</div><div><br></div><div>I have recently been using sphinx and just tried auto-configuring the version in the <i>conf.py</i> by including the following lines at the top:</div><div><br>



</div><div><pre style="font-family:courier,monospace;font-size:13px;white-space:pre-wrap;padding:5pt;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;background-color:rgb(243,245,247);border:1pt solid rgb(174,189,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
import os
<span></span> import catkin_pkg.package
<span></span> catkin_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 
<span></span> catkin_package = catkin_pkg.package.parse_package(os.path.join(catkin_dir, catkin_pkg.package.PACKAGE_MANIFEST_FILENAME))</pre></div><div>and further down:</div><div><br></div><div>
<pre style="font-family:courier,monospace;font-size:13px;white-space:pre-wrap;padding:5pt;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;background-color:rgb(243,245,247);border:1pt solid rgb(174,189,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
 version = catkin_package.version
<span></span> release = catkin_package.version</pre></div><div><br></div><div>This works fine locally with python-catkin-pkg installed. However on the build farm, it's running into a problem not being able to find catkin_pkg for importing:</div>



<div><br></div><div><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:10.909090995788574px">CMake Warning at /opt/ros/indigo/share/catkin_basic/cmake/catkin_basicConfig.cmake:12 (find_package):
  By not providing "Findpython-catkin-pkg.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "python-catkin-pkg", but CMake did not find one.

  Could not find a package configuration file provided by "python-catkin-pkg"
  with any of the following names:

    python-catkin-pkgConfig.cmake
    python-catkin-pkg-config.cmake

  Add the installation prefix of "python-catkin-pkg" to CMAKE_PREFIX_PATH or
  set "python-catkin-pkg_DIR" to a directory containing one of the above
  files.  If "python-catkin-pkg" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin_basic/cmake/catkin_basicConfig.cmake:54 (select_catkin_dependencies)
  rocon_tools/rocon_icons/CMakeLists.txt:3 (catkin_basic)
</pre></div><div><br></div><div><br></div><div>Full log <a href="http://jenkins.ros.org/job/doc-indigo-rocon_tools/11/consoleFull" target="_blank">here</a>.</div><div><br></div><div>Is there currently a correct way to make this happen?  I'm out of ideas.</div>



<div><br></div><div>Cheers,</div><div>Daniel.</div>
</div>
<br></div></div>_______________________________________________<br>
ros-release mailing list<br>
<a href="mailto:ros-release@code.ros.org" target="_blank">ros-release@code.ros.org</a><br>
<a href="http://lists.ros.org/mailman/listinfo/ros-release" target="_blank">http://lists.ros.org/mailman/listinfo/ros-release</a><br>
<br></blockquote></div><span class=""><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">William Woodall<div>ROS Development Team</div><div><a href="mailto:william@osrfoundation.org" target="_blank">william@osrfoundation.org</a></div>


<div><a href="http://wjwwood.io/" target="_blank">http://wjwwood.io/</a></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>Home: <a href="http://snorriheim.dnsdojo.com/" target="_blank">http://snorriheim.dnsdojo.com/</a><br><div>Yujin R&D: <a href="http://rnd.yujinrobot.com/" target="_blank">http://rnd.yujinrobot.com/<br>
</a><br></div>
</div></div>