facing issue in installing smart api library.


  • hello,
    i am trying to install,

    pip install smartapi
    

    but its showing error

    Collecting smartapi
      Using cached SmartAPI-1.1.0-py3-none-any.whl
    Collecting rdflib (from smartapi)
      Using cached rdflib-7.0.0-py3-none-any.whl.metadata (11 kB)
    Collecting rdflib-jsonld (from smartapi)
      Using cached rdflib_jsonld-0.6.2-py2.py3-none-any.whl.metadata (3.4 kB)
    Collecting simplejson (from smartapi)
      Using cached simplejson-3.19.2-cp312-cp312-win_amd64.whl.metadata (3.2 kB)
    Requirement already satisfied: pytz in c:\users\www.abcom.in\appdata\local\programs\python\python312\lib\site-packages (from smartapi) (2023.3.post1)
    Requirement already satisfied: python-dateutil in c:\users\www.abcom.in\appdata\local\programs\python\python312\lib\site-packages (from smartapi) (2.8.2)
    Collecting PyCrypto (from smartapi)
      Using cached pycrypto-2.6.1.tar.gz (446 kB)
      Preparing metadata (setup.py) ... done
    Collecting isodate (from smartapi)
      Using cached isodate-0.6.1-py2.py3-none-any.whl.metadata (9.6 kB)
    Requirement already satisfied: six in c:\users\www.abcom.in\appdata\local\programs\python\python312\lib\site-packages (from isodate->smartapi) (1.16.0)
    Requirement already satisfied: pyparsing<4,>=2.1.0 in c:\users\www.abcom.in\appdata\local\programs\python\python312\lib\site-packages (from rdflib->smartapi) (3.1.1)
    Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB)
    Using cached rdflib-7.0.0-py3-none-any.whl (531 kB)
    Using cached rdflib_jsonld-0.6.2-py2.py3-none-any.whl (4.0 kB)
    Using cached simplejson-3.19.2-cp312-cp312-win_amd64.whl (75 kB)
    Building wheels for collected packages: PyCrypto
      Building wheel for PyCrypto (setup.py) ... error
      error: subprocess-exited-with-error
    
      × python setup.py bdist_wheel did not run successfully.
      │ exit code: 1
      ╰─> [2 lines of output]
          warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
          error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for PyCrypto
      Running setup.py clean for PyCrypto
    Failed to build PyCrypto
    ERROR: Could not build wheels for PyCrypto, which is required to install pyproject.toml-based projects
    

    please guide me.
    ThankYou.
    Rajat Mishra


  • Hello @mst_rajatmishra

    1- Can you please unistall the smartAPI with the below command
    pip uninstall smartapi
    2- Then reinstall smartAPI with the below command.
    pip install smartapi-python

    Reagrds,
    SmartAPI Team


  • @Moderator_3 said in facing issue in installing smart api library.:

    pip install smartapi-python

    Hello
    I did this too but still no use.


  • Hello @mst_rajatmishra

    Please execute the below command
    pip install smartapi-python

    Regards,
    SmartAPI Team


  • Hey @Mnagesh
    i did as you informed but still no changes.
    Thanks and regards,
    Rajat Mishra


  • @Moderator_3
    Hello,
    I did but still showing error in the smartapi library.
    Thanks and Regards,
    Rajat Mishra


  • @Moderator_3 said in facing issue in installing smart api library.:

    equirements_dev.txt and remove pycrypto and crypto for now and

    hello,
    thanks i will do that.
    Rajat Mishra


  • Hello @Mnagesh i will try to install all one by one.
    Thankyou.
    Rajat Mishra.


  • @mst_rajatmishra

    1. Without pycryto smartapi will work
    2. install one by one rather then using requirement in one go.
    3. better to use python 3.10.13 otherwise TA-LIB will not be installed

  • Hello @mst_rajatmishra

    You can edit their requirements_dev.txt and remove pycrypto and crypto for now and we will fix this soon

    Regards,
    SmartAPI Team