<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unable to install SmartApi module]]></title><description><![CDATA[<p dir="auto">I'm encountering an issue while trying to install the SmartApi module, and despite attempting to install the PyCrypto module as well, the problem persists. Could you please assist me in resolving this issue?</p>
<p dir="auto"><img src="/assets/uploads/files/1704264099790-18a11575-222b-4604-896d-5b77f56ba3d2-image.png" alt="18a11575-222b-4604-896d-5b77f56ba3d2-image.png" class=" img-responsive img-markdown" width="1506" height="938" /></p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/topic/4157/unable-to-install-smartapi-module</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 20:37:39 GMT</lastBuildDate><atom:link href="https://smartapi.angelone.in/smartapi/forum/topic/4157.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Jan 2024 06:43:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to install SmartApi module on Sun, 11 Feb 2024 05:48:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Please refer the below link for error message resolution, but need confirmation from someone at AngelOne...</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/68618362/cannot-install-build-pycrypto-python/75099672#75099672" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/68618362/cannot-install-build-pycrypto-python/75099672#75099672</a></p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/post/15566</link><guid isPermaLink="true">https://smartapi.angelone.in/smartapi/forum/post/15566</guid><dc:creator><![CDATA[GSM]]></dc:creator><pubDate>Sun, 11 Feb 2024 05:48:35 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to install SmartApi module on Mon, 08 Jan 2024 06:51:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://smartapi.angelone.in/smartapi/forum/uid/22639">@rk_kondabathini</a></p>
<p dir="auto">Apologies for delayed response.<br />
Please find the steps for installation below:</p>
<p dir="auto">Software Requirements:<br />
Python<br />
Visual Studio Code or any editor<br />
Venv (virtual environment) for python</p>
<p dir="auto">Python Installation :<br />
Download and Install python from the link below based upon your operating system.<br />
<a href="https://www.python.org/downloads/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.python.org/downloads/</a><br />
Make sure you are installing python with the pip (python package index) so that you can install the necessary plugins and middleware in the sdk.</p>
<p dir="auto">Venv Environment Setup in Editor :</p>
<p dir="auto">Here we are going to use the Virtual environment for python to execute the api in the python sdk.<br />
To create the Venv environment in editor you can follow the below steps :<br />
Create a new folder and open the created folder in vs code.<br />
Then open the powershell and click on the git base. Then run the below command to create venv environment.</p>
<pre><code>                         pip install virtualenv
</code></pre>
<p dir="auto">The above command will create the venv for python. Then you want to activate the venv by running the below command.</p>
<pre><code>                       source venv/Scripts/activate    
</code></pre>
<p dir="auto">This command will activate the venv environment. Now we installed the virtual environment and activated it for the sdk execution.</p>
<p dir="auto">SDK Installation :</p>
<p dir="auto">You can install the smartapi python sdk from the following link smartapi-python  and to run the pip install smartapi-python command as there in the webpage.<br />
The above command will install the smartapi python and you can see inside the venv folder.Then want to install the following middleware pyotp, logzero and websocket-client as required to run the python sdk. You can install through by running the pip install command with the middleware name.<br />
Then you can create a sample file like <a href="http://sample.py" target="_blank" rel="noopener noreferrer nofollow ugc">sample.py</a> or <a href="http://test.py" target="_blank" rel="noopener noreferrer nofollow ugc">test.py</a> in the same folder.Then you can import the smartConnect by below and you can use the methods to access the api in the sdk.</p>
<p dir="auto">from SmartApi.smartConnect import SmartConnect<br />
obj=SmartConnect(api_key="your api key here")<br />
#login api call<br />
data = obj.generateSession("clientId","mpin","totp")</p>
<p dir="auto">The above method will get logged into sdk to access the api’s in the sdk and then you can access the other methods to access the order, GTT, profiles, Candle Data and logout.</p>
<p dir="auto">Thanks &amp; Regards,<br />
SmartAPI team</p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/post/14949</link><guid isPermaLink="true">https://smartapi.angelone.in/smartapi/forum/post/14949</guid><dc:creator><![CDATA[Moderator_2]]></dc:creator><pubDate>Mon, 08 Jan 2024 06:51:17 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to install SmartApi module on Mon, 08 Jan 2024 06:28:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://smartapi.angelone.in/smartapi/forum/uid/22639">@rk_kondabathini</a></p>
<p dir="auto">Apologies for delayed response.<br />
For installing the smartapi for python we would like to recommend PIP(Package installer python) and Virtual environment(Venv) to run the sdk.</p>
<p dir="auto">Thanks &amp; Regards,<br />
SmartAPI team</p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/post/14923</link><guid isPermaLink="true">https://smartapi.angelone.in/smartapi/forum/post/14923</guid><dc:creator><![CDATA[Moderator_2]]></dc:creator><pubDate>Mon, 08 Jan 2024 06:28:14 GMT</pubDate></item></channel></rss>