# PopthosSDR error indicating Python error

**URL:** <https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636>\
**Category:** General Discussion\
**Created:** [24 August 2017 22:16 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636 "2017-08-24T22:16:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjb789](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pjb789](https://discourse.myriadrf.org/u/pjb789)\
**Post date:** [24 August 2017 22:16 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/1 "2017-08-24T22:16:51Z")

</div>

Hi Guys,  
Just got PothosSDR up to run and I have Python installed (2.7.13 64 bit) and come up with an error  
that it is a Python problem along with a gateware problem. I was following the Pothos SDR environment tutorial  
to try and get this setup correctly. Exactly which python version is used and how do you upgrade gateware?

Thanks!

Paul

[21:34:31.454010] PothosGui.MainWindow: Welcome to Pothos v0.5.1-PothosSDR-2017.08.13-vc14-x64  
[21:34:31.594638] PothosGui.MainWindow: Initialization complete  
[21:36:07.956000] Pothos.PluginLoader.load: Plugin Module Error: Pothos::PluginModule(C:\Program Files\PothosSDR\lib\Pothos\modules0.5\proxy\environment\PythonSupport.dll): failed safe load  
[21:36:08.013000] : Win32; Microsoft Visual C++ version 14.0; Boost\_106300; UHD\_003.010.002.000-0-gbd6e21dc  
[21:37:15.571000] SoapySDR: Make connection: ‘USB 3.0 (LimeSDR-USB) [USB] 9061C02D12F13’  
[21:37:15.587000] SoapySDR ⇒  
Gateware version mismatch!  
Expected gateware version 2, revision 8  
But found version 2, revision 6  
Follow the FW and FPGA upgrade instructions:  
[http://wiki.myriadrf.org/Lime\_Suite#Flashing\_images](http://wiki.myriadrf.org/Lime_Suite#Flashing_images)  
Or run update on the command line: LimeUtil --update

[21:37:15.759000] SoapySDR: Estimated reference clock 30.7196 MHz  
[21:37:15.759000] SoapySDR: Selected reference clock 30.720 MHz  
[21:37:15.759000] SoapySDR: Device name: LimeSDR-USB  
[21:37:15.759000] SoapySDR: Reference: 30.72 MHz  
[21:37:15.759000] SoapySDR: Init LMS7002M(0)  
[21:37:15.759000] SoapySDR: LMS7002M cache C:\Users\Paul’s-i7-Torbo/.limesuite/LMS7002M\_cache\_values.db  
[21:37:15.759000] SoapySDR: Ver=7, Rev=1, Mask=1  
[21:37:15.790000] SoapySDR: LMS7002M calibration values caching Enable  
[21:37:16.118000] SoapySDR: Rx Filter calibrated from cache  
[21:37:16.118000] SoapySDR: Tx Filter calibrated from cache  
[21:37:16.149000] SoapySDR: Rx Filter calibrated from cache  
[21:37:16.149000] SoapySDR: Tx Filter calibrated from cache  
[21:40:16.337000] : Proxy server: No active connections - terminating  
[21:40:35.221000] Pothos.PluginLoader.load: Plugin Module Error: Pothos::PluginModule(C:\Program Files\PothosSDR\lib\Pothos\modules0.5\proxy\environment\PythonSupport.dll): failed safe load  
[21:40:35.299000] : Win32; Microsoft Visual C++ version 14.0; Boost\_106300; UHD\_003.010.002.000-0-gbd6e21dc  
[21:40:53.730000] SoapySDR: Make connection: ‘USB 3.0 (LimeSDR-USB) [USB] 9061C02D12F13’  
[21:40:53.754000] SoapySDR ⇒  
Gateware version mismatch!  
Expected gateware version 2, revision 8  
But found version 2, revision 6  
Follow the FW and FPGA upgrade instructions:  
[http://wiki.myriadrf.org/Lime\_Suite#Flashing\_images](http://wiki.myriadrf.org/Lime_Suite#Flashing_images)  
Or run update on the command line: LimeUtil --update

[21:40:53.918000] SoapySDR: Estimated reference clock 30.7196 MHz  
[21:40:53.918000] SoapySDR: Selected reference clock 30.720 MHz  
[21:40:53.918000] SoapySDR: Device name: LimeSDR-USB  
[21:40:53.918000] SoapySDR: Reference: 30.72 MHz  
[21:40:53.918000] SoapySDR: Init LMS7002M(0)  
[21:40:53.918000] SoapySDR: LMS7002M cache C:\Users\Paul’s-i7-Torbo/.limesuite/LMS7002M\_cache\_values.db  
[21:40:53.918000] SoapySDR: Ver=7, Rev=1, Mask=1  
[21:40:53.949000] SoapySDR: LMS7002M calibration values caching Enable  
[21:40:54.261000] SoapySDR: Rx Filter calibrated from cache  
[21:40:54.261000] SoapySDR: Tx Filter calibrated from cache  
[21:40:54.293000] SoapySDR: Rx Filter calibrated from cache  
[21:40:54.293000] SoapySDR: Tx Filter calibrated from cache  
[21:40:54.590000] ::1: SetFrequency using cache values vco:0, csw:10  
[21:41:44.846000] ::1: SetFrequency using cache values vco:0, csw:10  
[21:41:45.583000] ::1: SetFrequency using cache values vco:0, csw:10  
[21:41:46.142000] ::1: SetFrequency using cache values vco:0, csw:10  
[21:41:56.846000] ::1: SetFrequency using cache values vco:1, csw:141  
[21:44:06.781000] ::1: SetFrequency using cache values vco:0, csw:10  
[21:44:09.907000] ::1: SetFrequency using cache values vco:1, csw:122  
[21:45:52.174768] default: libpng warning: iCCP: known incorrect sRGB profile  
[21:46:03.847342] default: libpng warning: iCCP: known incorrect sRGB profile  
[21:46:43.408281] default: libpng warning: iCCP: known incorrect sRGB profile  
[21:47:49.861652] default: libpng warning: iCCP: known incorrect sRGB profile  
[21:47:52.862140] default: libpng warning: iCCP: known incorrect sRGB profile  
[21:47:52.862140] default: libpng warning: iCCP: known incorrect sRGB profile  
[21:47:54.860491] default: libpng warning: iCCP: known incorrect sRGB profile  
[21:47:54.860491] default: libpng warning: iCCP: known incorrect sRGB

---

<div class="post-metadata">

**Author:** ![Axeman](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/axeman/32/728_2.png) [@Axeman](https://discourse.myriadrf.org/u/Axeman)\
**Post date:** [24 August 2017 23:52 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/2 "2017-08-24T23:52:01Z")

</div>

> [@pjb789](#):
>
> Follow the FW and FPGA upgrade instructions:
> 
> [Lime Suite - Myriad-RF Wiki](http://wiki.myriadrf.org/Lime_Suite#Flashing_images)
> 
> Or run update on the command line: LimeUtil --update

This is how I did it. What operating system?

---

<div class="post-metadata">

**Author:** ![pjb789](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pjb789](https://discourse.myriadrf.org/u/pjb789)\
**Post date:** [25 August 2017 00:28 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/3 "2017-08-25T00:28:43Z")

</div>

Axeman,  
I am using WIndows 10. I tried to update using the same LimeSDR utility but I think that since it isn’t recognizing that there is Python already on the system “[21:36:07.956000] Pothos.PluginLoader.load: Plugin Module Error: Pothos::PluginModule(C:\Program Files\PothosSDR\lib\Pothos\modules0.5\proxy\environment\PythonSupport.dll)”. I thought that it wouldn’t as Python is a great scripting language. Anyway I am stumped right now and hopefully I will figure something out or be lucky enough to read of a solution! I truly appreciate your answering but I think it’s like hitting a moving target in the dark at this moment.

73,  
Paul  
AI6PC

---

<div class="post-metadata">

**Author:** ![Axeman](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/axeman/32/728_2.png) [@Axeman](https://discourse.myriadrf.org/u/Axeman)\
**Post date:** [25 August 2017 15:22 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/4 "2017-08-25T15:22:55Z")

</div>

I use Linux but it has that same library with an .so extension. It came from the Pothos install automatically.  
“Failed safe load?” Maybe a security setting? I have never got my Windows installation working but it is because I haven’t tried.  
It seems like it is working anyway up to the point of displaying something and then libpng is gagging.

---

<div class="post-metadata">

**Author:** ![pjb789](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pjb789](https://discourse.myriadrf.org/u/pjb789)\
**Post date:** [25 August 2017 21:39 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/5 "2017-08-25T21:39:34Z")

</div>

I will try and see what I can find. According to the internet an .so and .dll (dynamic linked library) are supposedly  
OK with windows so I will ask around. Interestingly enough (according to [file.org](http://file.org)) their use is mostly to do with  
C and C++!

Thanks again!

---

<div class="post-metadata">

**Author:** ![alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alan](https://discourse.myriadrf.org/u/alan)\
**Post date:** [7 November 2017 07:07 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/6 "2017-11-07T07:07:44Z")

</div>

Hi pjb789:

I’ve got the same issue as you mentioned before,Plugin Module Error: Pothos::PluginModule(E:\PothosSDR\lib\Pothos\modules0.5\proxy\environment\PythonSupport.dll): failed safe load,  
Have you already resolve it?

---

<div class="post-metadata">

**Author:** ![will\_mysky](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@will\_mysky](https://discourse.myriadrf.org/u/will_mysky)\
**Post date:** [15 November 2017 04:47 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/7 "2017-11-15T04:47:16Z")

</div>

Same here, everyone. Fresh Pothos install (2017.11.1 vc14 x64) on Windows 10, and when running the LimeSDR Workshop files cloned straight off of the github I get the following error when initializing.

[04:33:20.187000] Pothos.PluginLoader.load: Plugin Module Error: Pothos::PluginModule(C:\Program Files\PothosSDR\lib\Pothos\modules0.5\proxy\environment\PythonSupport.dll): failed safe load

---

<div class="post-metadata">

**Author:** ![Axeman](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/axeman/32/728_2.png) [@Axeman](https://discourse.myriadrf.org/u/Axeman)\
**Post date:** [15 November 2017 05:25 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/8 "2017-11-15T05:25:45Z")

</div>

I haven’t been able to use Pothos in a while now. I have quit trying. Maybe I will try to get this nailed down as I will have some time.

---

<div class="post-metadata">

**Author:** ![Axeman](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/axeman/32/728_2.png) [@Axeman](https://discourse.myriadrf.org/u/Axeman)\
**Post date:** [17 November 2017 01:49 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/9 "2017-11-17T01:49:26Z")

</div>

I don’t know about Windows but I found out the source directory has changed at Github to PothosCore. The executable is called PothosFlow.  
I have deleted my old /pothos instalation and PothosGui and now it works again.

---

<div class="post-metadata">

**Author:** ![hpirch](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@hpirch](https://discourse.myriadrf.org/u/hpirch)\
**Post date:** [19 December 2017 12:58 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/10 "2017-12-19T12:58:54Z")

</div>

I have the same problem here (Windows7 64bit):  
_Pothos.PluginLoader.load: Plugin Module Error: Pothos::PluginModule(C:\Program Files\PothosSDR\lib\Pothos\modules0.5\proxy\environment\PythonSupport.dll): failed safe load_

---

<div class="post-metadata">

**Author:** ![Panometric](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/panometric/32/1496_2.png) [@Panometric](https://discourse.myriadrf.org/u/Panometric)\
**Post date:** [3 January 2018 18:54 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/12 "2018-01-03T18:54:37Z")

</div>

It’s not a solution but here is the code that throws the error. I am suspecting it;s a 64/32 bit issue, and we are all on 64. Is anyone having the problem on 32 bit Windows?

> <https://github.com/pothosware/PothosCore/blob/96d9b3df1c6cda67407da1eb41a7eb0a9bd47cf5/lib/Plugin/ModuleSafeLoad.cpp>

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [3 January 2018 20:26 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/13 "2018-01-03T20:26:56Z")

</div>

Please note that there is a discussion group for Pothos where you may get faster answers to such questions:

[https://groups.google.com/forum/#!forum/pothos-users](https://groups.google.com/forum/#!forum/pothos-users)

---

<div class="post-metadata">

**Author:** ![Panometric](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/panometric/32/1496_2.png) [@Panometric](https://discourse.myriadrf.org/u/Panometric)\
**Post date:** [3 January 2018 23:17 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/14 "2018-01-03T23:17:14Z")

</div>

Thanks @andrewback. I found some guidance there and solved it.

SOLUTION: Install Python 3.6 64 bit and make sure it is in the path.  
[https://groups.google.com/forum/#!searchin/pothos-users/failed$20safe$20load|sort:date/pothos-users/380EAoIj7AM/yKturFOmDQAJ](https://groups.google.com/forum/#!searchin/pothos-users/failed%2420safe%2420load%7Csort:date/pothos-users/380EAoIj7AM/yKturFOmDQAJ)

---

<div class="post-metadata">

**Author:** ![allenstif](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@allenstif](https://discourse.myriadrf.org/u/allenstif)\
**Post date:** [26 August 2019 05:54 UTC](https://discourse.myriadrf.org/t/popthossdr-error-indicating-python-error/1636/15 "2019-08-26T05:54:29Z")

</div>

In such security issues should be maintained by all the users to access safely. If they need any suggestions given by [how to remove a hacker from my phone](https://thedailysound.com/how-to-remove-hacker-from-my-phone/) which guides them.
