<?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 arcpy on linux in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719622#M55739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our users are preparing to upgrade their ESRI client tools (ArcCatalog, etc) from 10.2 to 10.4.1.&amp;nbsp;Our SDE database is an Oracle 11g database (11.2.0.4)&amp;nbsp;running on Oracle Linux. Our users have python scripts to register tables to the geodatabase. They would like these scripts to run on the database server instead of their client PC's. The database server has python 2.6.6 installed. I do not think the server has any SDE server products installed or running on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to run a python script on the server and I get an error - "no module named arcpy" - on the "import arcpy" line of the script.&lt;/P&gt;&lt;P&gt;Hope this makes sense, I am new with ESRI tools and processes.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2016 19:56:40 GMT</pubDate>
    <dc:creator>DanielPaske</dc:creator>
    <dc:date>2016-12-21T19:56:40Z</dc:date>
    <item>
      <title>arcpy on linux</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719622#M55739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our users are preparing to upgrade their ESRI client tools (ArcCatalog, etc) from 10.2 to 10.4.1.&amp;nbsp;Our SDE database is an Oracle 11g database (11.2.0.4)&amp;nbsp;running on Oracle Linux. Our users have python scripts to register tables to the geodatabase. They would like these scripts to run on the database server instead of their client PC's. The database server has python 2.6.6 installed. I do not think the server has any SDE server products installed or running on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to run a python script on the server and I get an error - "no module named arcpy" - on the "import arcpy" line of the script.&lt;/P&gt;&lt;P&gt;Hope this makes sense, I am new with ESRI tools and processes.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 19:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719622#M55739</guid>
      <dc:creator>DanielPaske</dc:creator>
      <dc:date>2016-12-21T19:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy on linux</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719623#M55740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you really need to run them on the server with Oracle, the easiest way in my opinion would be to install the ArcGIS Desktop software on that server.&amp;nbsp; That way all the Arcpy modules and paths will be set, and the ArcGIS software will already know what python paths is has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, ArcCatalog on a user machine should work just as well when working with SDE databases, and is the preferred way vs external commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the reasoning behind running the commands on the Oracle server itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do need to get the Python setup on that server without installing the software, check out some of the links on &lt;A href="https://community.esri.com/blogs/dan_patterson/2016/05/09/the-links?sr=search&amp;amp;searchId=f606304c-d8cc-4d09-b05c-08b3771f0a08&amp;amp;searchIndex=0"&gt;/blogs/dan_patterson/2016/05/09/the-links?sr=search&amp;amp;searchId=f606304c-d8cc-4d09-b05c-08b3771f0a08&amp;amp;searchIndex=0&lt;/A&gt;‌ and I'll cc &lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;‌ who wrote that blog and might have some suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btw - I use SDE for SQL, not Oracle, but the process should be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should probably be moved to &lt;A href="https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=57a74b7b-e003-403a-afe7-986b8c667c5a&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=57a74b7b-e003-403a-afe7-986b8c667c5a&amp;amp;searchIndex=0&lt;/A&gt;‌ or &lt;A href="https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=2ae99f5a-d0c5-4120-ab58-5ad6e1bc768e&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=2ae99f5a-d0c5-4120-ab58-5ad6e1bc768e&amp;amp;searchIndex=0&lt;/A&gt;‌ space (vs the esri tech support) since those areas will get more views. &lt;A href="https://community.esri.com/docs/DOC-2258?sr=search&amp;amp;searchId=6f8c3648-b770-4bf2-8bec-5aedb8a8bdac&amp;amp;searchIndex=0"&gt;https://community.esri.com/docs/DOC-2258?sr=search&amp;amp;searchId=6f8c3648-b770-4bf2-8bec-5aedb8a8bdac&amp;amp;searchIndex=0&lt;/A&gt; &amp;nbsp; &amp;nbsp; I also just @ tagged them above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 20:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719623#M55740</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-12-21T20:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy on linux</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719624#M55741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A local install of ArcMap on the server machine would be the simplest and it also ensures that the proper version of python is installed... having said that, you better check python dependencies for other programs that reside on that machine before doing anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it purely a convenience issue... I would skip it&amp;nbsp;...&amp;nbsp;messing with a server just so you can do import arcpy&amp;nbsp;and a few trivial things doesn't seem worth the risk. &amp;nbsp;Machines are cheap... time is not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719624#M55741</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-12-21T21:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy on linux</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719625#M55742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your quick response. The workflow for our geodatabase has&lt;/P&gt;&lt;P&gt;been set up so the processing is done on the database server and is a bit&lt;/P&gt;&lt;P&gt;complicated. This is a database process and is written in PL/SQL. The GIS&lt;/P&gt;&lt;P&gt;analyst creates a process to copy business data into the geodatabase. The&lt;/P&gt;&lt;P&gt;analyst identifies the location data elements and the process generates&lt;/P&gt;&lt;P&gt;geometries based on the data elements. After the data has been loaded into&lt;/P&gt;&lt;P&gt;the database, the new tables need to be registered with the geodatabase&lt;/P&gt;&lt;P&gt;before the data can be presented on maps or edited. We would like to&lt;/P&gt;&lt;P&gt;include registering the table to the geodatabase in the workflow. I hope&lt;/P&gt;&lt;P&gt;this makes sense, I am still trying to learn the programming that has been&lt;/P&gt;&lt;P&gt;set up for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this can be easily done in ESRI tools. But this workflow has already&lt;/P&gt;&lt;P&gt;been created and we have to follow it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will search the blog to see if I can find how to install the ArcSDE&lt;/P&gt;&lt;P&gt;server tools on the Linux server. Thank you again for the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, Dec 21, 2016 at 1:56 PM, Rebecca Strauch, GISP &amp;lt;geonet@esri.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719625#M55742</guid>
      <dc:creator>DanielPaske</dc:creator>
      <dc:date>2016-12-21T21:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy on linux</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719626#M55743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, you may want to look at &lt;A class="link-titled" href="https://blogs.esri.com/esri/supportcenter/2013/10/04/do-this-not-that-alternatives-to-using-sde-command-line-tools/" title="https://blogs.esri.com/esri/supportcenter/2013/10/04/do-this-not-that-alternatives-to-using-sde-command-line-tools/"&gt;https://blogs.esri.com/esri/supportcenter/2013/10/04/do-this-not-that-alternatives-to-using-sde-command-line-tools/&lt;/A&gt;&amp;nbsp;&amp;nbsp; and some of the command line resources for ArcSDE.&amp;nbsp; Not sure how well or if they will work with 10.4.1 and Oracle, so proceed with caution.&amp;nbsp; And I really wouldn't do anything until you understand what the custom scripts you have are doing.&amp;nbsp; With the upgrade, don't assume the black box is going to work the same.&amp;nbsp; Just my opinion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 22:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-on-linux/m-p/719626#M55743</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-12-21T22:05:10Z</dc:date>
    </item>
  </channel>
</rss>

