<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to installing python libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a12a2b368a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a12a2b368a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a12a2b368a/</id><updated>2020-02-27T14:50:00.604000Z</updated><subtitle>Recent posts to installing python libraries</subtitle><entry><title>installing python libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a12a2b368a/?limit=25#136e" rel="alternate"/><published>2020-02-27T14:50:00.604000Z</published><updated>2020-02-27T14:50:00.604000Z</updated><author><name>esskaey</name><uri>https://forge.codesys.com/u/esskaey/</uri></author><id>https://forge.codesys.com90da621a57679a1b52298ebe9971d1bbbfc7d3b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am also interested in knowing how best to install external packages.&lt;/p&gt;
&lt;p&gt;&lt;a class="user-mention" href="/u/toschu72/"&gt;@toschu72&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;regarding external svn client in codesys env, try loading sharpsvn.dll using your script.  &lt;/p&gt;
&lt;p&gt;Link: &lt;a class="" href="https://sharpsvn.open.collab.net/servlets/ProjectProcess;jsessionid=526295FB8D449875A8528B997003010B?pageID=3794" rel="nofollow"&gt;https://sharpsvn.open.collab.net/servle ... ageID=3794&lt;/a&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;\&lt;span class="c1"&gt;# necessary to import dlls&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;clr&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;sys&lt;/span&gt;
\&lt;span class="c1"&gt;# add reference to path where the dll is located&lt;/span&gt;
&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"add location of dll here"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
\&lt;span class="c1"&gt;# Add reference to dll&lt;/span&gt;
&lt;span class="n"&gt;clr&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AddReference&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SharpSvn.dll"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
\&lt;span class="c1"&gt;# import sharp svn&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;SharpSvn&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You can find the documentation here : &lt;a class="" href="http://docs.sharpsvn.net/current/" rel="nofollow"&gt;http://docs.sharpsvn.net/current/&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>installing python libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a12a2b368a/?limit=25#5635" rel="alternate"/><published>2020-02-27T14:49:58.973000Z</published><updated>2020-02-27T14:49:58.973000Z</updated><author><name>toschu72</name><uri>https://forge.codesys.com/u/toschu72/</uri></author><id>https://forge.codesys.comb70b736a862b6d85a9b6fa441a892313ab2eed36</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'd like to do the same with the pysvn module (&lt;a class="" href="https://pysvn.sourceforge.io/" rel="nofollow"&gt;https://pysvn.sourceforge.io/&lt;/a&gt;) to create a build script that executes svn commands independent from CODESYS projects (e.g. creating a tag from whole trunk). I installed the pysvn install kit py27-pysvn-svn1819-1.9.6-1961-Win64.exe but I don't find any pysvn.py file in the installation folder to copy to the CODESYS' library folder. I copied the whole pysvn folder from &lt;/p&gt;
&lt;p&gt;C:\Python27\Lib\site-packages &lt;/p&gt;
&lt;p&gt;to &lt;/p&gt;
&lt;p&gt;C:\Program Files\3S CODESYS\CODESYS\ScriptLib\3.5.10.40\site-packages&lt;/p&gt;
&lt;p&gt;But still the script doesn't find pysvn module&lt;/p&gt;
&lt;p&gt;Do I have to execute some installation procedure to make it visible for IronPython? Looks like the module comes just as a compiled one: _pysvn_2_7.pyd and I thought that each folder in "site-packages" is used as a module if it contains the &lt;strong&gt;init&lt;/strong&gt;.py &lt;/p&gt;
&lt;p&gt;Any hints?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>installing python libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a12a2b368a/?limit=25#6a10" rel="alternate"/><published>2020-02-27T14:49:58.383000Z</published><updated>2020-02-27T14:49:58.383000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com952ab717353f5f6c36d89571391e80cc8fb3dd8b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;etamgul hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I'm not really familiar with python framework management and how to install a 3rd party libraries so this may sound stupid:&lt;br/&gt;
Is there a way to install 'pyserial' module to codesys used python framework?&lt;br/&gt;
I know that there is a .NET Serial class which I could use but since I have a few classes thats are using 'pyserial' I dont want to&lt;br/&gt;
port and maintain them using the .NET class.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Right now, the CODESYS IronPython environment does not yet look "like a normal Python installation", so things like "pip install" etc. do not work.&lt;/p&gt;
&lt;p&gt;However, it seems that the &lt;a class="" href="https://github.com/pyserial/pyserial" rel="nofollow"&gt;pyserial&lt;/a&gt; project does actually support IronPython, so it should also work in CODESYS.&lt;/p&gt;
&lt;p&gt;You should be able to download the source package, unpack it, and then either add the unpacked directory to sys.path before calling the other modules, or copy the unpacked directory to the ScriptLib\3.X.X.0 subdirectory in your CODESYS installation.&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>installing python libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a12a2b368a/?limit=25#59d2" rel="alternate"/><published>2020-02-27T14:49:57.799000Z</published><updated>2020-02-27T14:49:57.799000Z</updated><author><name>etamgul</name><uri>https://forge.codesys.com/u/etamgul/</uri></author><id>https://forge.codesys.com624427e27658e5e6cffe6d16230285a1349b8714</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm not really familiar with python framework management and how to install a 3rd party libraries so this may sound stupid:&lt;/p&gt;
&lt;p&gt;Is there a way to install 'pyserial' module to codesys used python framework?&lt;br/&gt;
I know that there is a .NET Serial class which I could use but since I have a few classes thats are using 'pyserial' I dont want to&lt;br/&gt;
port and maintain them using the .NET class.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>