Issue with symbolic package on Octave 4.2.1 on windows 10 PC

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with symbolic package on Octave 4.2.1 on windows 10 PC

anoop joshi
Hi,

I had installed octave version 4.2.1 and loaded the symbolic package on a windows 10 PC (64 bit OS). But when I run "syms x" to test if the package is working, I get the error:
"Closing the Python pipe...
error: ipc_popen2: something unexpected has gone wrong in starting python
error: called from
         python_ipc_popen2 at line 138 column 7....."


I have python 2.7 installed
 I tried adding the path of my python installation library "C:\Python27" under "Path" inside environmental variables, but not helping unfortunately.

It'd be great if someone could share their thoughts on what may be wrong here, or a workaround


--
Anoop Joshi Veliyath
Senior Design Engineer
Cadence Design Systems, Inc.
Ph:+919591326657

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

NJank
It'd be great if someone could share their thoughts on what may be wrong here, or a workaround

Just upfront, if we can't figure out the issue there is a windows bundled version of the symbolic package that includes a 'built in' python. You can find that at the developers page here:


If you open a command prompt can you just type 'python' and enter the python interpreter? If not it may not be in your path. Also, I think you need sympy and maybe the scipy stack installed. Do you have that?

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

Colin Macdonald-2
In reply to this post by anoop joshi
On 2017-09-30 11:33 AM, anoop joshi wrote:

> I had installed octave version 4.2.1 and loaded the symbolic package on
> a windows 10 PC (64 bit OS). But when I run "syms x" to test if the
> package is working, I get the error:
> /"Closing the Python pipe...
> error: ipc_popen2: something unexpected has gone wrong in starting python
> /
> /error: called from
>           python_ipc_popen2 at line 138 column 7....."
> /
>
> I have python 2.7 installed
>   I tried adding the path of my python installation library
> "C:\Python27" under "Path" inside environmental variables, but not
> helping unfortunately.
>
> It'd be great if someone could share their thoughts on what may be wrong
> here, or a workaround

Some thoughts:

1.  From looking at the code, it seems where should be more output (the
values of "A" and "out" for example.  Can you report those too?

2.  What does "sympref python" report?

3.  Does something like "setenv PYTHON C:\Python27\bin\python" help?

4.  Perhaps you should try the bundle package.

5.  There is more notes on Windows installation here:

https://github.com/cbm755/octsympy/wiki/Notes-on-Windows-installation

best,
Colin

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

anoop joshi
In reply to this post by NJank
Hi Nicholas,

Thanks for the reply. I believe when I just type "python" directly after opening a CMD prompt window it does enter the python interpreter(attached snapshot "CMDPROMPT_PYTHON.PNG" shows this). I guess this means the path is configured fine?

Also sympy version 1.1.1 is installed as shown encircled in the attached snapshot of my installed python packages attached (PACKAGELIST_PYTHON.PNG)

Thanks,
Anoop

On Sun, Oct 1, 2017 at 4:10 AM, Nicholas Jankowski <[hidden email]> wrote:
It'd be great if someone could share their thoughts on what may be wrong here, or a workaround

Just upfront, if we can't figure out the issue there is a windows bundled version of the symbolic package that includes a 'built in' python. You can find that at the developers page here:


If you open a command prompt can you just type 'python' and enter the python interpreter? If not it may not be in your path. Also, I think you need sympy and maybe the scipy stack installed. Do you have that?



--
Anoop Joshi Veliyath
Senior Design Engineer
Cadence Design Systems, Inc.
Ph:+919591326657

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

CMDPROMPT_PYTHON.png (21K) Download Attachment
PACKAGELIST_PYTHON.png (47K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

anoop joshi
Hi Nicholas,

I'm just attaching the full error message displayed in the Octave window while running "syms x" as well in case it conveys some additional information

Thanks,
Anoop

On Sun, Oct 1, 2017 at 12:17 PM, anoop joshi <[hidden email]> wrote:
Hi Nicholas,

Thanks for the reply. I believe when I just type "python" directly after opening a CMD prompt window it does enter the python interpreter(attached snapshot "CMDPROMPT_PYTHON.PNG" shows this). I guess this means the path is configured fine?

Also sympy version 1.1.1 is installed as shown encircled in the attached snapshot of my installed python packages attached (PACKAGELIST_PYTHON.PNG)

Thanks,
Anoop

On Sun, Oct 1, 2017 at 4:10 AM, Nicholas Jankowski <[hidden email]> wrote:
It'd be great if someone could share their thoughts on what may be wrong here, or a workaround

Just upfront, if we can't figure out the issue there is a windows bundled version of the symbolic package that includes a 'built in' python. You can find that at the developers page here:


If you open a command prompt can you just type 'python' and enter the python interpreter? If not it may not be in your path. Also, I think you need sympy and maybe the scipy stack installed. Do you have that?



--
Anoop Joshi Veliyath
Senior Design Engineer
Cadence Design Systems, Inc.
Ph:+919591326657



--
Anoop Joshi Veliyath
Senior Design Engineer
Cadence Design Systems, Inc.
Ph:+919591326657

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

Octave_Error_while_running_symbolic.txt (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

NJank
On Oct 1, 2017 3:04 AM, "anoop joshi" <[hidden email]> wrote:
Hi Nicholas,

I'm just attaching the full error message displayed in the Octave window while running "syms x" as well in case it conveys some additional information


Hmm.. I'm just a user in this case and am not sure what the issue is. I have octave 4.2.1 running on win10. Have python 3.6.2 and sympy installed, then installed symbolic package. All works fine. Colin, is python2 okay?

Maybe try uninstalling/reinstalling symbolic. No guarantee it'll change anything, but stranger things have happened.



_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

anoop joshi
Hi Nicholas,

Thanks for the reply, I'll try uninstalling and reinstalling symbolic as you suggested.

Thanks,
Anoop

On Sun, Oct 1, 2017 at 3:04 PM, Nicholas Jankowski <[hidden email]> wrote:
On Oct 1, 2017 3:04 AM, "anoop joshi" <[hidden email]> wrote:
Hi Nicholas,

I'm just attaching the full error message displayed in the Octave window while running "syms x" as well in case it conveys some additional information


Hmm.. I'm just a user in this case and am not sure what the issue is. I have octave 4.2.1 running on win10. Have python 3.6.2 and sympy installed, then installed symbolic package. All works fine. Colin, is python2 okay?

Maybe try uninstalling/reinstalling symbolic. No guarantee it'll change anything, but stranger things have happened.





--
Anoop Joshi Veliyath
Senior Design Engineer
Cadence Design Systems, Inc.
Ph:+919591326657

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

Colin Macdonald-2
In reply to this post by NJank
On 2017-10-01 02:34 AM, Nicholas Jankowski wrote:
> Hmm.. I'm just a user in this case and am not sure what the issue is. I
> have octave 4.2.1 running on win10. Have python 3.6.2 and sympy
> installed, then installed symbolic package. All works fine. Colin, is
> python2 okay?

Python 2 should be fine.

Anoop: can use test within the Octave GUI?  How are you starting Octave?
  I remember some strange issues from a long time ago, something about
running octave.exe instead of using octave.bat.

- - - - - - - -

Based on your detailed output (thanks!), python appears to be working
correctly.  It looks like some kind of newline problem...  Considering
the output before the error message:

>> A =
>> {
>>   [1,1] =
>> Communication established.
>>
>>   [1,2] =
>> 1.1.1
>>
>>   [1,3] =
>> 2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)]
>>
>> }

Those are as they should be, except it looks like each string has a
extraneous newline appended.  The "out" variable looks wrong too: on my
system it has things like "<f>Communication established.</f>" but on
Anoop's machine:

>> <item>
>> <f>
>> 1003
>> </f>
>> <f>
>> Communication established.
>> </f>
>> </item>

My first reaction is no one has tested the combination of Windows and
Python2.  But that seems unlikely; the wiki [1] explicitly mentions
Python 2.

https://github.com/cbm755/octsympy/wiki/Notes-on-Windows-installation

best,
Colin

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

anoop joshi
Hi Colin,

Thanks for the reply. I've been using the GUI itself

Thanks,
Anoop

On Wed, Oct 4, 2017 at 12:15 PM, Colin Macdonald <[hidden email]> wrote:
On 2017-10-01 02:34 AM, Nicholas Jankowski wrote:
Hmm.. I'm just a user in this case and am not sure what the issue is. I have octave 4.2.1 running on win10. Have python 3.6.2 and sympy installed, then installed symbolic package. All works fine. Colin, is python2 okay?

Python 2 should be fine.

Anoop: can use test within the Octave GUI?  How are you starting Octave?  I remember some strange issues from a long time ago, something about running octave.exe instead of using octave.bat.

- - - - - - - -

Based on your detailed output (thanks!), python appears to be working correctly.  It looks like some kind of newline problem...  Considering the output before the error message:

A =
{
  [1,1] =
Communication established.

  [1,2] =
1.1.1

  [1,3] =
2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)]

}

Those are as they should be, except it looks like each string has a extraneous newline appended.  The "out" variable looks wrong too: on my system it has things like "<f>Communication established.</f>" but on Anoop's machine:

<item>
<f>
1003
</f>
<f>
Communication established.
</f>
</item>

My first reaction is no one has tested the combination of Windows and Python2.  But that seems unlikely; the wiki [1] explicitly mentions Python 2.

https://github.com/cbm755/octsympy/wiki/Notes-on-Windows-installation

best,
Colin



--
Anoop Joshi Veliyath
Senior Design Engineer
Cadence Design Systems, Inc.
Ph:+919591326657

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

Colin Macdonald-2
On 2017-10-04 12:22 AM, anoop joshi wrote:
> Hi Colin,
>
> Thanks for the reply. I've been using the GUI itself

I see!  This is strange.

1.  Could it be a bug in an older Python 2.7, I notice the date is 2010.
  We have tested with 2.7.9.  I'm not sure what the minimum version
is...  This is my current best guess at what is happening here.

2.  Have you also tried the bundle as suggested in my original email?
It uses its own bundled copy of Python 2.7.9.

3.  Can you test with Python 3?

I've filed a bug about this:

https://github.com/cbm755/octsympy/issues/843

It would be really great if you can help us narrow it down by testing
the two combinations above.

best,
Colin

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

anoop joshi
Hi Colin,

Thanks a lot for the help, I will perform the experiments suggested by you

Thanks,
Anooo

On Oct 4, 2017 1:24 PM, "Colin Macdonald" <[hidden email]> wrote:
On 2017-10-04 12:22 AM, anoop joshi wrote:
Hi Colin,

Thanks for the reply. I've been using the GUI itself

I see!  This is strange.

1.  Could it be a bug in an older Python 2.7, I notice the date is 2010.  We have tested with 2.7.9.  I'm not sure what the minimum version is...  This is my current best guess at what is happening here.

2.  Have you also tried the bundle as suggested in my original email? It uses its own bundled copy of Python 2.7.9.

3.  Can you test with Python 3?

I've filed a bug about this:

https://github.com/cbm755/octsympy/issues/843

It would be really great if you can help us narrow it down by testing the two combinations above.

best,
Colin


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

anoop joshi
Hi Colin,

For experiment 2 suggested by you, I followed the steps below:
  1. Uninstalled the existing Python 2.7 version in my PC.
  2. downloaded the file "symbolic-win-py-bundle-2.6.0.zip"
  3. started Octave, change folder to where your downloads are.
  4. typed pkg install "symbolic-win-py-bundle-2.6.0.zip"
  5. typed pkg load symbolic
  6. typed syms x

But then got the error "error: Cannot run the Python executable "C:\Python27\python.exe"
    Python and SymPy are needed for most Symbolic features.
    Is Python installed?  Is your "path" configured correctly?".

Is there some other step here?

After that I tried installing Python 3.63. CMD prompt shows the path is configured ok, but still syms x doesn't run

Thanks,

Anoop


On Wed, Oct 4, 2017 at 5:32 PM, anoop joshi <[hidden email]> wrote:
Hi Colin,

Thanks a lot for the help, I will perform the experiments suggested by you

Thanks,
Anooo

On Oct 4, 2017 1:24 PM, "Colin Macdonald" <[hidden email]> wrote:
On 2017-10-04 12:22 AM, anoop joshi wrote:
Hi Colin,

Thanks for the reply. I've been using the GUI itself

I see!  This is strange.

1.  Could it be a bug in an older Python 2.7, I notice the date is 2010.  We have tested with 2.7.9.  I'm not sure what the minimum version is...  This is my current best guess at what is happening here.

2.  Have you also tried the bundle as suggested in my original email? It uses its own bundled copy of Python 2.7.9.

3.  Can you test with Python 3?

I've filed a bug about this:

https://github.com/cbm755/octsympy/issues/843

It would be really great if you can help us narrow it down by testing the two combinations above.

best,
Colin




--
Anoop Joshi Veliyath
Senior Design Engineer
Cadence Design Systems, Inc.
Ph:+919591326657

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

Colin Macdonald-2
On 2017-10-04 12:58 PM, anoop joshi wrote:

> Hi Colin,
>
> For experiment 2 suggested by you, I followed the steps below:
>
>  1. Uninstalled the existing Python 2.7 version in my PC.
>  2. downloaded the file "symbolic-win-py-bundle-2.6.0.zip"
>  3. started Octave, change folder to where your downloads are.
>  4. typed |pkg install |"symbolic-win-py-bundle-2.6.0.zip"
>  5. typed |pkg load symbolic|
>  6. typed |syms x|
>
> But then got the error "error: Cannot run the Python executable
> "C:\Python27\python.exe"
>      Python and SymPy are needed for most Symbolic features.
>      Is Python installed?  Is your "path" configured correctly?".
 >
> Is there some other step here?

Hmmm, that is using your system python instead of the bundled one.  Not
sure why!  I guess the environment variable (or equivalent on Windows)
is still set to "C:\Python27\python.exe")?
Its Windows, did you reboot several times between the various steps?
(excuse sarcasm).  Specifically after uninstalling Python.

I thought the bundled package prefers its own Python to the system one
but I might be wrong about that.

> After that I tried installing Python 3.63. CMD prompt shows the path is
> configured ok, but still syms x doesn't run

And the error is?

Given that we think the problem might be that your Python 2.7 is too
old, is there a more recent Python 2.7 installer for your system (like
2.7.9 for example).  From my point of view, this is the most important
thing to try.


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

Alois Schloegl-7
On 2017-10-04 23:00, Colin Macdonald wrote:
> On 2017-10-04 12:58 PM, anoop joshi wrote:
>> Hi Colin,
>>
>> For experiment 2 suggested by you, I followed the steps below:
>>
>>  1. Uninstalled the existing Python 2.7 version in my PC.


In my experience, python uninstaller does not completely uninstall
python but the directory
  C:\Python27
can still contains certain packages. Make sure that you really delete
the whole directory "C:\Python27". And continue then.

   Alois


>>  2. downloaded the file "symbolic-win-py-bundle-2.6.0.zip"
>>  3. started Octave, change folder to where your downloads are.
>>  4. typed |pkg install |"symbolic-win-py-bundle-2.6.0.zip"
>>  5. typed |pkg load symbolic|
>>  6. typed |syms x|
>>
>> But then got the error "error: Cannot run the Python executable
>> "C:\Python27\python.exe"
>>      Python and SymPy are needed for most Symbolic features.
>>      Is Python installed?  Is your "path" configured correctly?".
>>
>> Is there some other step here?
>
> Hmmm, that is using your system python instead of the bundled one.  Not
> sure why!  I guess the environment variable (or equivalent on Windows)
> is still set to "C:\Python27\python.exe")?
> Its Windows, did you reboot several times between the various steps?
> (excuse sarcasm).  Specifically after uninstalling Python.
>
> I thought the bundled package prefers its own Python to the system one
> but I might be wrong about that.
>
>> After that I tried installing Python 3.63. CMD prompt shows the path
>> is configured ok, but still syms x doesn't run
>
> And the error is?
>
> Given that we think the problem might be that your Python 2.7 is too
> old, is there a more recent Python 2.7 installer for your system (like
> 2.7.9 for example).  From my point of view, this is the most important
> thing to try.
>
>
> _______________________________________________
> Help-octave mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/help-octave


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issue with symbolic package on Octave 4.2.1 on windows 10 PC

anoop joshi
In reply to this post by Colin Macdonald-2
Hi Colin,

Looks like you are right about it being an issue associated with older Python 2.7 versions. I installed Python 2.7.14 and now it seems to run fine

Thanks,
Anoop

On Thu, Oct 5, 2017 at 2:30 AM, Colin Macdonald <[hidden email]> wrote:
On 2017-10-04 12:58 PM, anoop joshi wrote:
Hi Colin,

For experiment 2 suggested by you, I followed the steps below:

 1. Uninstalled the existing Python 2.7 version in my PC.
 2. downloaded the file "symbolic-win-py-bundle-2.6.0.zip"
 3. started Octave, change folder to where your downloads are.
 4. typed |pkg install |"symbolic-win-py-bundle-2.6.0.zip"
 5. typed |pkg load symbolic|
 6. typed |syms x|

But then got the error "error: Cannot run the Python executable "C:\Python27\python.exe"
     Python and SymPy are needed for most Symbolic features.
     Is Python installed?  Is your "path" configured correctly?".
>
Is there some other step here?

Hmmm, that is using your system python instead of the bundled one.  Not
sure why!  I guess the environment variable (or equivalent on Windows) is still set to "C:\Python27\python.exe")?
Its Windows, did you reboot several times between the various steps? (excuse sarcasm).  Specifically after uninstalling Python.

I thought the bundled package prefers its own Python to the system one but I might be wrong about that.

After that I tried installing Python 3.63. CMD prompt shows the path is configured ok, but still syms x doesn't run

And the error is?

Given that we think the problem might be that your Python 2.7 is too old, is there a more recent Python 2.7 installer for your system (like 2.7.9 for example).  From my point of view, this is the most important thing to try.




--
Anoop Joshi Veliyath
Senior Design Engineer
Cadence Design Systems, Inc.
Ph:+919591326657

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave