<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic node-gyp in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265974#M27666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if someone has used node-gyp in the image generated by Yocto?&lt;/P&gt;&lt;P&gt;When I try to use this, then I get following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py", line 15, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import gyp&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import gyp.input&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from compiler.ast import Const&lt;/P&gt;&lt;P&gt;ImportError: No module named compiler.ast&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also get the same error if I try to use this in cross compiling environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Niklas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 23:46:06 GMT</pubDate>
    <dc:creator>niklasmolin</dc:creator>
    <dc:date>2014-01-29T23:46:06Z</dc:date>
    <item>
      <title>node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265974#M27666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if someone has used node-gyp in the image generated by Yocto?&lt;/P&gt;&lt;P&gt;When I try to use this, then I get following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py", line 15, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import gyp&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import gyp.input&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from compiler.ast import Const&lt;/P&gt;&lt;P&gt;ImportError: No module named compiler.ast&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also get the same error if I try to use this in cross compiling environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Niklas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 23:46:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265974#M27666</guid>
      <dc:creator>niklasmolin</dc:creator>
      <dc:date>2014-01-29T23:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265975#M27667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you include the recipe? adding its metadata into sources directory and then installing it through local.conf?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 14:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265975#M27667</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-01-30T14:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265976#M27668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to first compile it on the ARM, after I installed node-gyp (which is done with npm, and that part went well).&lt;/P&gt;&lt;P&gt;I also tried to do the node-gyp in the cross-compile environment on my desktop, but get the same result.&lt;/P&gt;&lt;P&gt;It seems like the compiler.ast is missing for the python setup (both in the ARM a and the cross-compiler environment), since when I start python and try to import that package, it can't find it (which I can do if I start python in my "normal" desktop).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:14:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265976#M27668</guid>
      <dc:creator>niklasmolin</dc:creator>
      <dc:date>2014-01-30T15:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265977#M27669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to install Python 2.7.6, direct on the ARM.&lt;/P&gt;&lt;P&gt;Then it worked.&lt;/P&gt;&lt;P&gt;So now I can run the node-gyp configure (also manage to build the code I tried to build, when I faced this problem).&lt;/P&gt;&lt;P&gt;Not sure why the Python that is included in the Yocto build doesn't support the compiler.ast .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:30:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265977#M27669</guid>
      <dc:creator>niklasmolin</dc:creator>
      <dc:date>2014-01-30T20:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265978#M27670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be the case that the the Python Yocto version is older than the one you install, and it does not include that library/module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One fast way to check the recipe version is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ bitbake python -e | grep PV=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that is the case, update python's recipe version and bake again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:50:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265978#M27670</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-01-30T20:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265979#M27671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked both the version running on my desktop and the one on the ARM, and both where 2.7.3 (which should be okay).&lt;/P&gt;&lt;P&gt;I can try to figure out what happens when Yocto installs the python, why this is not included.&lt;/P&gt;&lt;P&gt;But for now I can go for my manually installed version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:57:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265979#M27671</guid>
      <dc:creator>niklasmolin</dc:creator>
      <dc:date>2014-01-30T20:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265980#M27672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the steps you did when manually installing should match the steps indicating by the recipe. To really check what bitbake will do&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;bitbake -e python &amp;gt; python.env&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;In case you want, try to spend more time fixing the issue on Yocto. You may get a patch to send to the community :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 15:52:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265980#M27672</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-01-31T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265981#M27673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll see if I have some time during the weekend to look at it.&lt;/P&gt;&lt;P&gt;First I just wanted to check if someone in the community knew if there is a reason why some "parts" were missing in Python build in the Linux image.&lt;/P&gt;&lt;P&gt;I have a few other things that I need to check why they are missing (for instance e2fsprogs and that I only have a "light" version of the binutils), even though I have included them in my build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265981#M27673</guid>
      <dc:creator>niklasmolin</dc:creator>
      <dc:date>2014-01-31T16:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: node-gyp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265982#M27674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case anyone else has this problem... I ran into this same issue and ended up resolving it by adding "python-compiler" to IMAGE_INSTALL_append:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IMAGE_INSTALL_APPEND += " python-compiler "&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:48:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/node-gyp/m-p/265982#M27674</guid>
      <dc:creator>stevezilla</dc:creator>
      <dc:date>2015-02-05T22:48:10Z</dc:date>
    </item>
  </channel>
</rss>

