OpenSSL version mismatch when running from Spyder

59 views
Skip to first unread message

SN1984jm

unread,
Jul 16, 2015, 10:55:12 AM7/16/15
to spyd...@googlegroups.com
I seem to have run into a problem when using Spyder to execute a gsissh command (through popen()).
The command is like the following:
  gsissh -C remote.stuff 'ls /home/username/*.dat'

I have run the same script from ipython in the terminal and even from an ipython notebook in my firefox browser. In both cases it works just fine.
However, when I run the same code from Spyder, the stdout is empty and the following is printed to stderr:
  OpenSSL version mismatch. Built against 1000005f, you have 1000106f

The way I call my command in python:
from subprocess import Popen, PIPE
p = Popen(command, stdout=PIPE, stderr=PIPE,shell=True)

print p.stderr.readlines()

print p.stdout.readlines()


Does anyone know what is causing this and perhaps how to fix it or circumvent it?

Cheers

Adrian Klaver

unread,
Jul 16, 2015, 11:02:29 AM7/16/15
to spyd...@googlegroups.com
What Spyder version?

What OS and version?

How was Spyder installed, in particular in relation to IPython?

Best guess is you are running Spyder in some sort of isolated
environment and calling the command in another location, hence the
version mismatch. Without more information it is just guess.

>
> Cheers
>
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spyderlib+...@googlegroups.com
> <mailto:spyderlib+...@googlegroups.com>.
> To post to this group, send email to spyd...@googlegroups.com
> <mailto:spyd...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/d/optout.


--
Adrian Klaver
adrian...@aklaver.com

SN1984jm

unread,
Jul 16, 2015, 1:37:10 PM7/16/15
to spyd...@googlegroups.com
I'm sorry, I forgot about that crucial information.
It is Spyder version 2.2.5. I use Python 2.7 and ipython 1.2.1.
All of these were installed using apt-get install on Kubuntu 14.04.2 LTS.

When I run Spyder I do it via the Kubuntu "start menu", but I run ipython from the terminal.
I'll try and run Spyder from a terminal and see if that makes a difference.

I still don't know why that could make a difference though.

Adrian Klaver

unread,
Jul 16, 2015, 3:47:26 PM7/16/15
to spyd...@googlegroups.com
On 07/16/2015 10:37 AM, SN1984jm wrote:
> I'm sorry, I forgot about that crucial information.
> It is Spyder version 2.2.5. I use Python 2.7 and ipython 1.2.1.
> All of these were installed using apt-get install on Kubuntu 14.04.2 LTS.

Well 2.2.5 is an ancient version. I would apt-get remove Spyder and then
pip install spyder to get up to the 2.3.5.x series.
> > an email to spyderlib+...@googlegroups.com <javascript:>
> > <mailto:spyderlib+...@googlegroups.com <javascript:>>.
> > To post to this group, send email to spyd...@googlegroups.com
> <javascript:>
> > <mailto:spyd...@googlegroups.com <javascript:>>.
> > Visit this group at http://groups.google.com/group/spyderlib.
> > For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Adrian Klaver
> adrian...@aklaver.com <javascript:>

SN1984jm

unread,
Jul 17, 2015, 5:09:48 AM7/17/15
to spyd...@googlegroups.com
Thanks, I had no idea. I though such packages would be automatically checked for updates. I wonder what else is horribly out of date.

I installed the newest Spyder version and still had the same problem.
What does work though is opening Spyder from a terminal.

Can anyone explain why there would be an OpenSSL version mismatch when running Spyder from the kde "start menu", while there is no issue when running it from a terminal?

Adrian Klaver

unread,
Jul 17, 2015, 11:29:53 AM7/17/15
to spyd...@googlegroups.com
On 07/17/2015 02:09 AM, SN1984jm wrote:
> Thanks, I had no idea. I though such packages would be automatically
> checked for updates. I wonder what else is horribly out of date.

Well that is how distribution releases work, they 'pin' packages at a
major version and only do bug fix/minor version updates. Spyder 2.2.x
--> 2.3 would be considered a major update. This is not necessarily a
bad thing as new is often buggy. To see what is the version for each
release see here:

https://launchpad.net/ubuntu/+source/spyder

To allow for major updates Debian/Ubuntu have backports repos for
bringing newer packages from subsequent releases. So for 14.04 you can
get 2.3.0 from (K)Ubuntu 14.10. In all cases the actual updates minor or
major depend on someone actually doing the packaging. The time frame for
that tends to be inversely proportional to the size of the user base for
the package. If you want to stay more update then pip install and pip
install --upgrade are the way to go.

>
> I installed the newest Spyder version and still had the same problem.
> What does work though is opening Spyder from a terminal.
>
> Can anyone explain why there would be an OpenSSL version mismatch when
> running Spyder from the kde "start menu", while there is no issue when
> running it from a terminal?

Do you have two versions of Spyder installed now? When you start from
the menu or terminal look in Help --> About Spyder.

If you right click on the Start icon there is an Edit Applications item.
Click on it and find Spyder. On my machine it is under Development -->
Integrated Environment. If you click on the Spyder icon it will show how
it is launched in the right panel.

Jeroen Meidam

unread,
Jul 20, 2015, 6:01:59 AM7/20/15
to spyd...@googlegroups.com
Launching Spyder either via terminal or menu, opens the same version.
In the KDE menu editor I see that the command for the Spyder shortcut is "spyder %F".
Not sure what the %F does, haven't looked it up, but if I run that same command from a terminal, the code runs fine again.

In the advanced settings I checked "Run in terminal", but that did not seem to make a difference.
Is there anything else I can try in this configuration window? What else is different between running something from the terminal and via the menu? Does it load a different environment perhaps?



--
You received this message because you are subscribed to a topic in the Google Groups "spyder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spyderlib/jG4l5A19BkI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+...@googlegroups.com.

To post to this group, send email to spyd...@googlegroups.com.

Adrian Klaver

unread,
Jul 20, 2015, 10:35:12 AM7/20/15
to spyd...@googlegroups.com
On 07/20/2015 03:01 AM, Jeroen Meidam wrote:
> Launching Spyder either via terminal or menu, opens the same version.
> In the KDE menu editor I see that the command for the Spyder shortcut is
> "spyder %F".
> Not sure what the %F does, haven't looked it up, but if I run that same
> command from a terminal, the code runs fine again.

Yeah, I don't think that is the cause:

http://archive.oreilly.com/pub/h/3156

%F

Multiple selected files. Use this for programs that can act upon
several files at once


>
> In the advanced settings I checked "Run in terminal", but that did not
> seem to make a difference.
> Is there anything else I can try in this configuration window? What else
> is different between running something from the terminal and via the
> menu? Does it load a different environment perhaps?

Could be different environments though I am not quite sure how? Will
have to think some on this.

>
> On 17 July 2015 at 17:29, Adrian Klaver <adrian...@aklaver.com
> <mailto:adrian...@aklaver.com>> wrote:
>

--
Adrian Klaver
adrian...@aklaver.com
Reply all
Reply to author
Forward
0 new messages