<?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 Import folder (no .whl or .jar files) and run the `python3 setup.py bdist_wheel` for lib install in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/import-folder-no-whl-or-jar-files-and-run-the-python3-setup-py/m-p/50243#M569</link>
    <description>&lt;P&gt;I want to import the &lt;STRONG&gt;ibapi&lt;/STRONG&gt;&amp;nbsp;python module in Azure Databricks Notebook.&lt;/P&gt;&lt;P&gt;Before this, I downloaded the the TWS API folder from &lt;A href="https://interactivebrokers.github.io/#" target="_self"&gt;https://interactivebrokers.github.io/#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to go through the following steps to install the API:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Download and install TWS Gateway or Client&lt;/LI&gt;&lt;LI&gt;Download and install Python to C:\Program Files\python...&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Setup additional PATH environment variables (see pip warnings)&lt;/LI&gt;&lt;LI&gt;Install wheel, i.e. type in the command line:&amp;nbsp;&lt;STRONG&gt;py -m pip install wheel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Download "API Latest" (or latest version that contains python) from&amp;nbsp;&lt;A href="http://interactivebrokers.github.io/" rel="noreferrer" target="_blank"&gt;http://interactivebrokers.github.io/&lt;/A&gt;&amp;nbsp;and install into the folder X as proposed (but for python the directory shouldn't matter)&lt;/LI&gt;&lt;LI&gt;Go to X/.../source/pythonclient/ (cd in command line)&lt;/LI&gt;&lt;LI&gt;Build a wheel, i.e.&amp;nbsp;&lt;STRONG&gt;py setup.py bdist_wheel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Look up the whl file in folder ./dist: should be something like&amp;nbsp;ibapi-9.7x.x..&lt;/LI&gt;&lt;LI&gt;Install the wheel, i.e.&amp;nbsp;&lt;STRONG&gt;py -m pip install --user --upgrade dist/ibapi-9.73.7-py3-none-any.whl&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/57618117/installing-the-ibapi-package/59829707#59829707" target="_blank"&gt;https://stackoverflow.com/questions/57618117/installing-the-ibapi-package/59829707#59829707&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I checked the Databricks Install library methods. It seems the closest solution is to import JAR or Python Whl files.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;However, the API folder does not have JAR or .whl files.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;May I know whether there is any method that allows me to do the following things in Databricks?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;- import the entire folder &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;- &lt;STRONG&gt;cd&lt;/STRONG&gt;&amp;nbsp;the folder and run &lt;STRONG&gt;py setup.py bdist wheel&lt;/STRONG&gt;&amp;nbsp; bash script. (For this operation, write privilege folder right is needed)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Thank you!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2023 03:51:59 GMT</pubDate>
    <dc:creator>Dicer</dc:creator>
    <dc:date>2023-11-01T03:51:59Z</dc:date>
    <item>
      <title>Import folder (no .whl or .jar files) and run the `python3 setup.py bdist_wheel` for lib install</title>
      <link>https://community.databricks.com/t5/administration-architecture/import-folder-no-whl-or-jar-files-and-run-the-python3-setup-py/m-p/50243#M569</link>
      <description>&lt;P&gt;I want to import the &lt;STRONG&gt;ibapi&lt;/STRONG&gt;&amp;nbsp;python module in Azure Databricks Notebook.&lt;/P&gt;&lt;P&gt;Before this, I downloaded the the TWS API folder from &lt;A href="https://interactivebrokers.github.io/#" target="_self"&gt;https://interactivebrokers.github.io/#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to go through the following steps to install the API:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Download and install TWS Gateway or Client&lt;/LI&gt;&lt;LI&gt;Download and install Python to C:\Program Files\python...&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Setup additional PATH environment variables (see pip warnings)&lt;/LI&gt;&lt;LI&gt;Install wheel, i.e. type in the command line:&amp;nbsp;&lt;STRONG&gt;py -m pip install wheel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Download "API Latest" (or latest version that contains python) from&amp;nbsp;&lt;A href="http://interactivebrokers.github.io/" rel="noreferrer" target="_blank"&gt;http://interactivebrokers.github.io/&lt;/A&gt;&amp;nbsp;and install into the folder X as proposed (but for python the directory shouldn't matter)&lt;/LI&gt;&lt;LI&gt;Go to X/.../source/pythonclient/ (cd in command line)&lt;/LI&gt;&lt;LI&gt;Build a wheel, i.e.&amp;nbsp;&lt;STRONG&gt;py setup.py bdist_wheel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Look up the whl file in folder ./dist: should be something like&amp;nbsp;ibapi-9.7x.x..&lt;/LI&gt;&lt;LI&gt;Install the wheel, i.e.&amp;nbsp;&lt;STRONG&gt;py -m pip install --user --upgrade dist/ibapi-9.73.7-py3-none-any.whl&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/57618117/installing-the-ibapi-package/59829707#59829707" target="_blank"&gt;https://stackoverflow.com/questions/57618117/installing-the-ibapi-package/59829707#59829707&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I checked the Databricks Install library methods. It seems the closest solution is to import JAR or Python Whl files.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;However, the API folder does not have JAR or .whl files.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;May I know whether there is any method that allows me to do the following things in Databricks?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;- import the entire folder &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;- &lt;STRONG&gt;cd&lt;/STRONG&gt;&amp;nbsp;the folder and run &lt;STRONG&gt;py setup.py bdist wheel&lt;/STRONG&gt;&amp;nbsp; bash script. (For this operation, write privilege folder right is needed)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Thank you!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 03:51:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/import-folder-no-whl-or-jar-files-and-run-the-python3-setup-py/m-p/50243#M569</guid>
      <dc:creator>Dicer</dc:creator>
      <dc:date>2023-11-01T03:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import folder (no .whl or .jar files) and run the `python3 setup.py bdist_wheel` for lib install</title>
      <link>https://community.databricks.com/t5/administration-architecture/import-folder-no-whl-or-jar-files-and-run-the-python3-setup-py/m-p/66968#M1084</link>
      <description>&lt;P&gt;You can try to upload the folder in the workspace location and try to cd in the desired folder and try to install in via notebook. But it would be a notebook scope installation. If you are looking for a cluster scoped installation then you would need jar or wl file.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 20:48:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/import-folder-no-whl-or-jar-files-and-run-the-python3-setup-py/m-p/66968#M1084</guid>
      <dc:creator>arpit</dc:creator>
      <dc:date>2024-04-22T20:48:31Z</dc:date>
    </item>
  </channel>
</rss>

