Forum Discussion

baxatob's avatar
baxatob
Community Hero
9 years ago

Re: pyhon yaml library

In TestComplete all python non-native libs should be placed in C:\Program Files (x86)\SmartBear\TestComplete 11\Bin\Extensions\Python\Python34\Lib\site-packages

 

I am not sure about TestExecute, but may be it can't find your modules? 

Try to wrap your module imports in try/except:

 

try:
    import yourModule
except ImportError as e:
    Log.Error(e)

 

2 Replies

  • aadlv's avatar
    aadlv
    New Contributor

    Yes.

    The same folder path is for test execute.

    In that folder i have yaml library.

    When i start python form cmd, i can import all libraries, including yaml...

     

    Very strange...

    • aadlv's avatar
      aadlv
      New Contributor

      And btw...

       

      try:
          import yourModule
      except ImportError as e:
          Log.Error(e)

       This didn't help. No error at all...