Re: Patrick Sheehan: Major Issues with Python

2023-03-26 Thread Thomas Passin

On 3/25/2023 4:03 PM, Patrick Sheehan wrote:

Hello, I have been working with the attached book (See photo)


Photos do not come through on this list, so don't bother to attach any.
Type or copy-paste any useful text.


to try to learn Python and so far it has been a complete nightmare
trying to get python installed and operating correctly.  I have
received a plethora of error messages and consulted youtube videos
and chat groups to try to remedy the issues.  I am using a computer
that is running Windows 10.


That's too bad. Normally a Python install on Windows is trouble free.
Perhaps we can help.


I have installed, and un-installed several versions of Python


Please give more information.  What versions of Python, where did you
get it, how did you install it, what options if any did you choose
during the installation?


and was able to complete the first two lessons in the attached book,
but could not complete lesson 3 (Turtledemo)...Some of the error
messages I have received include:  "This app cannot run on your PC";
"Unable to initialize device PRN"; “Python is not recognized as an
internal or external command”: "Python was not found: run without
arguments to install from Microsoft Store, or disable this shortcut
from settings mange, app execution aliases:"


You need to tell us just what you have done.  What was this "lesson" 
supposed to do?  Did you try to run it while you were working in 
PyCharm?  Just how did you try to run the lesson?



...I have been at this
for 4 days now at least three hours each day...Any information or
help you can provide would be greatly appreciated.  Additionally, I
do have PyCharm installed (As you can tell, I am a beginner), is
PyCharm the same thing as Python?  Thank you in advance!


No, PyCharm is an editor and Python IDE; it is not the same as Python.
Python is a programming language.  The problems you have been having 
could be caused by PyCharm not being set up to work with your 
installation of Python.


To see if Python has been installed correctly, open a Windows console. 
If you don't know how, one way is to hit the Windows key and type "cmd". 
 Windows will offer "Command Prompt".  Hit the ENTER key to accept it, 
and a console window will open. (There are more convenient ways, but we 
don't need to get into them right now).


In the console window, type (without the quotes) "py -V".  You should 
see something like this (The first line is what I typed, the second line 
is the response):


C:\Users\tom>py -V
Python 3.10.9

If this works, Python has been installed and apparently working.

If it is working, save the Python program from your lesson as a file 
with a name such as such as "lesson1.py". In an open console window. try 
to run it by typing


py lesson1.py

Instead of just "lesson1.py", you will either need to change directory 
(using the cd command) to the directory that contains that file, or you 
will need to use the full path to the file.  For example, if the file is


c:\temp\python\lesson1.py

then run it by typing

py c:\temp\python\lesson1.py

Let us know how it goes.
--
https://mail.python.org/mailman/listinfo/python-list


Re: Patrick Sheehan: Major Issues with Python

2023-03-26 Thread MRAB

On 2023-03-25 20:03, Patrick Sheehan wrote:

Hello,
I have been working with the attached book (See photo) to try to learn
Python and so far it has been a complete nightmare trying to get python
installed and operating correctly.  I have received a plethora of error
messages and consulted youtube videos and chat groups to try to remedy the
issues.  I am using a computer that is running Windows 10.  I have
installed, and un-installed several versions of Python and was able to
complete the first two lessons in the attached book, but could not complete
lesson 3 (Turtledemo)...Some of the error messages I have received
include:  "This app cannot run on your PC"; "Unable to initialize device
PRN"; “Python is not recognized as an internal or external command”:
"Python was not found: run without arguments to install from Microsoft
Store, or disable this shortcut from settings mange, app execution
aliases:"...I have been at this for 4 days now at least three hours each
day...Any information or help you can provide would be greatly
appreciated.  Additionally, I do have PyCharm installed (As you can tell, I
am a beginner), is PyCharm the same thing as Python?  Thank you in advance!

This list strips attachments such as images, so I don't know which book 
you're referring to.


I'd go for Python 3.11 and the installer "Windows installer (64-bit)" at 
https://www.python.org/downloads/release/python-3112/, i.e. 
"https://www.python.org/ftp/python/3.11.2/python-3.11.2-amd64.exe; 
(assuming that it's a 64-bit PC).
To run Python, the recommended way is to use the Python Launcher, py.exe 
(so type "py my_program.py" in a Command window), or just double-click 
on it if it's a GUI program.


As for PRN, that's the printer. Does anyone use PRN these days?

And, no, PyCharm is not the same thing as Python. PyCharm is an IDE 
(integrated development environment) for Python, but Python is its own 
thing.

--
https://mail.python.org/mailman/listinfo/python-list


Re: Patrick Sheehan: Major Issues with Python

2023-03-26 Thread Mats Wichmann

On 3/25/23 14:03, Patrick Sheehan wrote:

Hello,
I have been working with the attached book (See photo) to try to learn
Python and so far it has been a complete nightmare trying to get python
installed and operating correctly.  I have received a plethora of error
messages and consulted youtube videos and chat groups to try to remedy the
issues.  I am using a computer that is running Windows 10.  I have
installed, and un-installed several versions of Python and was able to
complete the first two lessons in the attached book, but could not complete
lesson 3 (Turtledemo)...Some of the error messages I have received
include:  "This app cannot run on your PC"; "Unable to initialize device
PRN"; “Python is not recognized as an internal or external command”:
"Python was not found: run without arguments to install from Microsoft
Store, or disable this shortcut from settings mange, app execution
aliases:"...


If you installed the conventional way, use the command name "py" instead 
of "python" to run things from a command shell.  Alternatively, you 
could try an installation of Python from the Microsoft Store (as the 
little stub program named python, which Microsoft preinstalls for the 
express purpose of giving you this hint).  There are times when getting 
Python working without hassle is easier when going that route.


You *can* add python to the search PATH, there's an option in the 
installer (you can rerun this from the Apps & features Settings 
applet)... in the screen for advanced options there's something that 
says "Add python to environment variables" or similar wording.


>I have been at this for 4 days now at least three hours each

day...Any information or help you can provide would be greatly
appreciated.  Additionally, I do have PyCharm installed (As you can tell, I
am a beginner), is PyCharm the same thing as Python? 


No. It's an "integrated development environment" - editor, debugger, 
source control wrangler and many other things.  It still needs to have a 
working Python installed. It will probably find the installed Python 
more easily than you will.  The concept of an IDE is you can do all your 
programming work without leaving it - you don't have to hop between 
editor, command line, and invoke other tools.  PyCharm is only one of 
many entrants in this space for Python programmers.  It's excellent, but 
I find it rather, ummm, "bulky", for beginners - there are a ton of 
features you'll not use early on in your journey, and thus I find it 
makes it much harder to find the things you do need in menus, help, etc. 
Up to you whether you push ahead with using it now, or leave it for a 
bit later when you're doing more complex things.


We have no idea what book you're using, by the way, as the list strips 
images and other attachments.  In any case, there are hundreds of Python 
books out now, most of us don't know about a particular one (unless we 
wrote it :) )



--
https://mail.python.org/mailman/listinfo/python-list


Patrick Sheehan: Major Issues with Python

2023-03-26 Thread Patrick Sheehan
Hello,
I have been working with the attached book (See photo) to try to learn
Python and so far it has been a complete nightmare trying to get python
installed and operating correctly.  I have received a plethora of error
messages and consulted youtube videos and chat groups to try to remedy the
issues.  I am using a computer that is running Windows 10.  I have
installed, and un-installed several versions of Python and was able to
complete the first two lessons in the attached book, but could not complete
lesson 3 (Turtledemo)...Some of the error messages I have received
include:  "This app cannot run on your PC"; "Unable to initialize device
PRN"; “Python is not recognized as an internal or external command”:
"Python was not found: run without arguments to install from Microsoft
Store, or disable this shortcut from settings mange, app execution
aliases:"...I have been at this for 4 days now at least three hours each
day...Any information or help you can provide would be greatly
appreciated.  Additionally, I do have PyCharm installed (As you can tell, I
am a beginner), is PyCharm the same thing as Python?  Thank you in advance!

Respectfully,
Patrick Sheehan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Issues in python 3.11.0 (64-bit) installation

2022-11-03 Thread Thomas Passin
I just downloaded the 64-bit Windows installer.  On my Windows 10 
machine, both "py launcher" and "available for all
users" options were available. They were available whether I checked the 
"administrative" box or not.  Note that when I unchecked 
"administrative", then the "available for all users" box became 
unchecked. That would make sense.


When you wrote "option is not working", what did you mean by "not 
working"? -


1. The options were disabled (i.e., grayed out);
2. The options seemed to be available but the installation seemed to 
ignore them;

3. The options were completely missing from the wizard;
4. Something else.

On 11/3/2022 9:44 PM, dn wrote:

On 04/11/2022 04.20, Suresh Babu wrote:
 I downloaded the latest version of python i.e. python 3.11.0 ( 
64-bit)

in my laptop recently. But the " py launcher " and " available for all
users " option is not working in the customization menu of python 
3.11.0 .

Kindly help me in solving this issue.

My operating system is Windows 11. Kindly guide me in this regard.


Has the documentation left questions?
https://docs.python.org/3/using/windows.html



--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Issues in python 3.11.0 (64-bit) installation

2022-11-03 Thread dn

On 04/11/2022 04.20, Suresh Babu wrote:

 I downloaded the latest version of python i.e. python 3.11.0 ( 64-bit)
in my laptop recently. But the " py launcher " and " available for all
users " option is not working in the customization menu of python 3.11.0 .
Kindly help me in solving this issue.

My operating system is Windows 11. Kindly guide me in this regard.


Has the documentation left questions?
https://docs.python.org/3/using/windows.html

--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list


Fwd: Issues in python 3.11.0 (64-bit) installation

2022-11-03 Thread Suresh Babu
-- Forwarded message -
From: Suresh Babu 
Date: Thu, 3 Nov 2022, 16:37
Subject: Issues in python 3.11.0 (64-bit) installation
To: 


Sir/ Madam,
I downloaded the latest version of python i.e. python 3.11.0 ( 64-bit)
in my laptop recently. But the " py launcher " and " available for all
users " option is not working in the customization menu of python 3.11.0 .
Kindly help me in solving this issue.

My operating system is Windows 11. Kindly guide me in this regard.

Yours sincerely,

Sureshbabu.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2021-10-19 Thread Irit Katriel


Irit Katriel  added the comment:

There has been work done on recursion handling in more recent python versions, 
so you should get clean RecursionErrors now rather than the fatal error.  
Please create a new issue if you have such problems on current versions (3.9+).

--
nosy: +iritkatriel
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Reply: Re: Issues installing python

2020-10-09 Thread nichalvedant07
No when. I do anything of that sort it says that pip isn't recognised as an 
internal or external command and that's because it isn't installedI 
searched the internet and it asked me to check the scripts folder to see if I 
have pip and it wasn't there...and im pretty sure. That I checked in the 
correct folder...so after that I installed pip from pypi.org but after that 
when I ran pip I got an error saying
OS ERROR (ERRNO9): Bad file descriptor
Pls help me


Sent from vivo smartphone
> On 10/8/20 9:36 PM, Vedant Nichal wrote:
> > Hello,
> >
> > I am an amateur python developer but I’m facing a lot of issues regarding
> > python installation on windows 10...whenever I install python on my
> > pc...irrespective of its version my scripts folder is always empty..
>
> are you sure you're actually looking in the right place?  Python Windows
> versions do all come with pip now.
>
> Can you launch Python itself?
>
> e.g. from a command shell:
>
> py
>
> (that assumes you installed the Python Launcher, which is a good idea if
> you used the Windows installer from python.org).
>
> If that works, then try:
>
> py -m pip --version
>
> if you get something comprehensible back, then you have pip installed
> fine.  Invoke it that way, as "py -m pip" instead of using it as a
> standalone command.
> -- 
> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing python

2020-10-09 Thread Mats Wichmann
On 10/8/20 9:36 PM, Vedant Nichal wrote:
> Hello,
>
> I am an amateur python developer but I’m facing a lot of issues regarding
> python installation on windows 10...whenever I install python on my
> pc...irrespective of its version my scripts folder is always empty..

are you sure you're actually looking in the right place?  Python Windows
versions do all come with pip now.

Can you launch Python itself?

e.g. from a command shell:

py

(that assumes you installed the Python Launcher, which is a good idea if
you used the Windows installer from python.org).

If that works, then try:

py -m pip --version

if you get something comprehensible back, then you have pip installed
fine.  Invoke it that way, as "py -m pip" instead of using it as a
standalone command.
-- 
https://mail.python.org/mailman/listinfo/python-list


Issues installing python

2020-10-08 Thread Vedant Nichal
Hello,

I am an amateur python developer but I’m facing a lot of issues regarding
python installation on windows 10...whenever I install python on my
pc...irrespective of its version my scripts folder is always empty..so I
tried installing pip from the zip file available at pypi.org...pip got
installed successfully but when I used it I received an error saying…

OsError [Errno9]: Bad File Descriptor

So, I’m not able to install pip and other modules due to which I’m facing a
lot of issues.

I would really appreciate a lot if you can help me out of this.

I have tried out alternatives for python interpreters like anaconda,
miniconda, win python, etc.. But in vain..

I have tried 100s of solutions but still for no good...

Requesting you to please please please help me out of this...

I will be really happy and grateful to you if you could help me out of
this...



Thanks and Regards,

Vedant Nichal
-- 
https://mail.python.org/mailman/listinfo/python-list


Reply: Issues in Python Installation

2020-10-07 Thread nichalvedant07
someone please help me out it would be of great help



Sent from vivo smartphone
> Hello,
>
>  
>
> I am an amateur python developer but I’m facing a lot of issues regarding 
> python installation on windows 10...whenever I install python on y 
> pc...irrespective of its version my scripts folder is always empty..so I 
> tried installing pip from the zip file available at pipy.org...pip got 
> installed successfully but when I used it I received an error saying…
>
> OsError [Errno9]: Bad File Descriptor
>
> So, I’m not able to install pip and other modules due to which I’m facing a 
> lot of issues.
>
> I would really appreciate a lot if you can help me out of this.
>
> I have tried out alternatives for python interpreter like anaconda, 
> mimiconda, win python, etc.. But in vain..
>
> I have tried 100s of solutions but still for no good...
>
> Requesting you to please please please help me out of this...
>
> I will be really happy and grateful to you if you could help me out of this...
>
>  
>
> Thanks and Regards,
>
> Vedant Nichal
>
>  
>
> Sent from Mail for Windows 10
>
>  
>
>
> Virus-free. www.avast.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2020-06-03 Thread DL Neil via Python-list

On 4/06/20 2:22 PM, Kelley Hudson wrote:

Keep getting an error when trying to us Python with Pycharm. I uninstalled
it but this was the error I received.

 


Sent from [1]Mail for Windows 10

 


References

Visible links
1. https://go.microsoft.com/fwlink/?LinkId=550986



Many folk are security-conscious and will not click on links provided by 
unknown people (apologies for sounding unfriendly).


Recommend you copy-paste the exact message into an email (also request a 
descriptive Subject: which will help anyone with a similar problem to 
search the archives). Also, it may help to know the OpSys (assuming 
MS-Windows), the version of Python, and that of the Pycharm IDE...


Meantime, the Pycharm folk have invested considerable time and effort in 
their on-line manual. Is there an answer there about how to link 
particular (versions) Python interpreters to the current project?

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Issues with Python

2020-06-03 Thread Kelley Hudson
   Keep getting an error when trying to us Python with Pycharm. I uninstalled
   it but this was the error I received.

    

   Sent from [1]Mail for Windows 10

    

References

   Visible links
   1. https://go.microsoft.com/fwlink/?LinkId=550986
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-09-05 Thread hongweipeng


hongweipeng  added the comment:

According to the provided text.py file. `__exit__` will always execute due to 
the `with` syntax. It looks like this:
```
def rec():
try:
rec()
except RecursionError:
rec()

rec()
```

--
nosy: +hongweipeng

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-26 Thread konstantin danilov


konstantin danilov  added the comment:

Same error, python3.7. I have attached minifyed code version. It runs into 
infinite recursion due to __setattr__ call inside 'with' statement on top of 
same object. As result:

> python /tmp/text.py 
Fatal Python error: Cannot recover from stack overflow.

Current thread 0x7f6bb073d740 (most recent call first):
  File "/tmp/text.py", line 10 in __getattr__
  ...
  File "/tmp/text.py", line 11 in __getattr__
  File "/tmp/text.py", line 28 in __exit__
  File "/tmp/text.py", line 13 in __getattr__
  ...
  File "/tmp/text.py", line 11 in __getattr__
  ...
[2]22121 abort (core dumped)  python /tmp/text.py

--
components: +Interpreter Core -asyncio
nosy: +konstantin danilov
versions:  -Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48439/text.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-26 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Is it ok to have
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 76 in __call__
so many times?
Looks very suspicious

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
components: +asyncio -Interpreter Core
nosy: +asvetlov, yselivanov
versions: +Python 3.8, Python 3.9 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-25 Thread Andreas Jung


Andreas Jung  added the comment:

Typical traceback:

WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/demo10-jpg
 If renaming or importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/kick-off2-jpg
 If renaming or importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/kick-off3-jpg
 If renaming or importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/kick-off6-jpg
 If renaming or importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/kick-off5-jpg
 If renaming or importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/toon-jpg If renaming or 
importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/wf.htm If renaming or importing 
please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/toon.htm If renaming or 
importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/unite.htm If renaming or 
importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/microscopycentre/img/spt If renaming or importing 
please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/openuniversiteit/nl/contact/studiegids2015.pdf If 
renaming or importing please reindex!
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for 
http://nohost/plone_portal/openuniversiteit/nl/contact/studiegids2015.pdf If 
renaming or importing please reindex!
Fatal Python error: Cannot recover from stack overflow.

Thread 0x7fe43f8b0700 (most recent call first):
  File "/opt/python-3.7.3/lib/python3.7/selectors.py", line 468 in select
  File "/opt/python-3.7.3/lib/python3.7/asyncio/base_events.py", line 1739 in 
_run_once
  File "/opt/python-3.7.3/lib/python3.7/asyncio/base_events.py", line 539 in 
run_forever
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/ZEO-5.2.1-py3.7.egg/ZEO/asyncio/client.py",
 line 861 in run
  File "/opt/python-3.7.3/lib/python3.7/threading.py", line 865 in run
  File "/opt/python-3.7.3/lib/python3.7/threading.py", line 917 in 
_bootstrap_inner
  File "/opt/python-3.7.3/lib/python3.7/threading.py", line 885 in _bootstrap

Current thread 0x7fe44e046500 (most recent call first):
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/hooks.py",
 line 103 in getSiteManager
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py",
 line 157 in queryUtility
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFCore-2.4.0b8-py3.7.egg/Products/CMFCore/DynamicType.py",
 line 71 in getTypeInfo
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 96 in getLayout
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 75 in __call__
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 76 in __call__
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 76 in __call__
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 76 in __call__
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 76 in __call__
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 76 in __call__
  File 
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
 line 76 in __call__
  File 

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-25 Thread Andreas Jung


New submission from Andreas Jung :

I am using Python 3.6 and 3.7 (always latest minor releases) with Plone 5.2 and 
I various issues with 

Fatal Python error: Cannot recover from stack overflow.

and do not make much sense to me.

Some related tracebacks are documented here

https://github.com/plone/Products.CMFPlone/issues/2874

https://community.plone.org/t/fatal-python-error-cannot-recover-from-stack-overflow/8589

There are no patterns directly visible what may typically cause the error. 

The errors occur at least with Python 3.6 system Python on Fedora 26 and a 
self-compiled Python 3.7.3 on a fresh Debian 9 system.

--
components: Interpreter Core
messages: 346521
nosy: ajung
priority: normal
severity: normal
status: open
title: Fatal Python error: Cannot recover from stack overflow issues on Python 
3.6 and 3.7
type: crash
versions: Python 3.6, Python 3.7

___
Python tracker 
<https://bugs.python.org/issue37402>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Fw: Download issues for Python

2019-06-04 Thread Grant Edwards
On 2019-06-04, tom milikic  wrote:

> [...]
>
> It states that this is missing from my computer -:
>
> api-ms-win-crt-runtime-l1-1-0.dl

[You left off the second 'l'.  Precision is very important when dealing with 
software problems.]

You can often the answer just by Googling the error message:

  
https://www.google.com/search?q=python+install+missing+api-ms-win-crt-runtime-l1-1-0.dll=python+install+missing+api-ms-win-crt-runtime-l1-1-0.dll

-- 
Grant Edwards   grant.b.edwardsYow! I'm thinking about
  at   DIGITAL READ-OUT systems
  gmail.comand computer-generated
   IMAGE FORMATIONS ...

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Issues with python commands in windows powershell

2017-09-21 Thread Thomas Jollans
On 2017-09-20 21:52, Terry Reedy wrote:
> On 9/20/2017 1:09 PM, Joey Steward wrote:
>> -- Forwarded message --
>> From: Joey Steward <jsteward2...@gmail.com>
>> Date: Tue, Sep 19, 2017 at 10:30 PM
>> Subject: Issues with python commands in windows powershell
>> To: python-list@python.org
>>
>>
>> Hello,
>>
>> I've been having issues using basic python commands in windows
>> powershell.
>> I'm new to programming so just going off of online tutorials.
>>
>> Earlier I was unable to use pip to install Django (pip install
>> Django), and
>> came to this forum for help and someone was able to give me the correct
>> command for windows 10 (py -m pip install django).
>>
>> I've been trying to run this command django-admin startproject
>> mytests, but
>> get the same error message as when trying to run the original pip
> 
> Try py -m django-admin startproject mytests.  If this does not work, ask
> on django lists.

I doubt that will work; "django-admin" is not a valid module name.


Joey, there should be a folders called "bin" and "scripts" (or something
like that) in your Python installation. One of them, I expect, will
contain a django-admin.exe. (Or .bat? Or .cmd? Whatever.)
Adding these folders to your PATH environment variable (don't ask me
how) will solve these problems. IIRC you can do this for PowerShell
specifically or for Windows in general, whichever you think is best.

> 
>> django-admin : *The term 'django-admin' is not recognized as the name
>> of a
>> cmdlet, function, script file, or operable program. Check the spelling of
>> the name, or if a path was included,*
>> *verify that the path is correct and try again.*
>> *At line:1 char:1*
>> + django-admin startproject mytestsite
>> + 
>>  + CategoryInfo  : ObjectNotFound: (django-admin:String) [],
>> CommandNotFoundException
>>  + FullyQualifiedErrorId : CommandNotFoundException
>>
>>
>> I'm very new so honestly have no idea what the issue may be, but from
>> previously trying to use python I think it may have something to do with
>> configuring windows environment variables? Not sure, but just something
>> I've ran into in the past previous times trying to learn python for more
>> data analysis purposes.
>>
>> Any help would be greatly appreciated!
>>
>> Thanks a lot,
>>
>> Joey Steward
>>
> 
> 


-- 
Thomas Jollans
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Terry Reedy

On 9/20/2017 1:09 PM, Joey Steward wrote:

-- Forwarded message --
From: Joey Steward <jsteward2...@gmail.com>
Date: Tue, Sep 19, 2017 at 10:30 PM
Subject: Issues with python commands in windows powershell
To: python-list@python.org


Hello,

I've been having issues using basic python commands in windows powershell.
I'm new to programming so just going off of online tutorials.

Earlier I was unable to use pip to install Django (pip install Django), and
came to this forum for help and someone was able to give me the correct
command for windows 10 (py -m pip install django).

I've been trying to run this command django-admin startproject mytests, but
get the same error message as when trying to run the original pip


Try py -m django-admin startproject mytests.  If this does not work, ask 
on django lists.



django-admin : *The term 'django-admin' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included,*
*verify that the path is correct and try again.*
*At line:1 char:1*
+ django-admin startproject mytestsite
+ 
 + CategoryInfo  : ObjectNotFound: (django-admin:String) [],
CommandNotFoundException
 + FullyQualifiedErrorId : CommandNotFoundException


I'm very new so honestly have no idea what the issue may be, but from
previously trying to use python I think it may have something to do with
configuring windows environment variables? Not sure, but just something
I've ran into in the past previous times trying to learn python for more
data analysis purposes.

Any help would be greatly appreciated!

Thanks a lot,

Joey Steward




--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Bill

Joey Steward wrote:

-- Forwarded message --
From: Joey Steward <jsteward2...@gmail.com>
Date: Tue, Sep 19, 2017 at 10:30 PM
Subject: Issues with python commands in windows powershell
To: python-list@python.org


Hello,

I've been having issues using basic python commands in windows powershell.


Did you try the same ones in an environment besides powershell?


--
https://mail.python.org/mailman/listinfo/python-list


Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Joey Steward
-- Forwarded message --
From: Joey Steward <jsteward2...@gmail.com>
Date: Tue, Sep 19, 2017 at 10:30 PM
Subject: Issues with python commands in windows powershell
To: python-list@python.org


Hello,

I've been having issues using basic python commands in windows powershell.
I'm new to programming so just going off of online tutorials.

Earlier I was unable to use pip to install Django (pip install Django), and
came to this forum for help and someone was able to give me the correct
command for windows 10 (py -m pip install django).

I've been trying to run this command django-admin startproject mytests, but
get the same error message as when trying to run the original pip

django-admin : *The term 'django-admin' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included,*
*verify that the path is correct and try again.*
*At line:1 char:1*
+ django-admin startproject mytestsite
+ 
+ CategoryInfo  : ObjectNotFound: (django-admin:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


I'm very new so honestly have no idea what the issue may be, but from
previously trying to use python I think it may have something to do with
configuring windows environment variables? Not sure, but just something
I've ran into in the past previous times trying to learn python for more
data analysis purposes.

Any help would be greatly appreciated!

Thanks a lot,

Joey Steward
-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Joey Steward
-- Forwarded message --
From: Joey Steward <jsteward2...@gmail.com>
Date: Wed, Sep 20, 2017 at 10:09 AM
Subject: Fwd: Issues with python commands in windows powershell
To: python-list@python.org



-- Forwarded message --
From: Joey Steward <jsteward2...@gmail.com>
Date: Tue, Sep 19, 2017 at 10:30 PM
Subject: Issues with python commands in windows powershell
To: python-list@python.org


Hello,

I've been having issues using basic python commands in windows powershell.
I'm new to programming so just going off of online tutorials.

Earlier I was unable to use pip to install Django (pip install Django), and
came to this forum for help and someone was able to give me the correct
command for windows 10 (py -m pip install django).

I've been trying to run this command django-admin startproject mytests, but
get the same error message as when trying to run the original pip

django-admin : *The term 'django-admin' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included,*
*verify that the path is correct and try again.*
*At line:1 char:1*
+ django-admin startproject mytestsite
+ 
+ CategoryInfo  : ObjectNotFound: (django-admin:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


I'm very new so honestly have no idea what the issue may be, but from
previously trying to use python I think it may have something to do with
configuring windows environment variables? Not sure, but just something
I've ran into in the past previous times trying to learn python for more
data analysis purposes.

Any help would be greatly appreciated!

Thanks a lot,

Joey Steward
-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: Issues with python commands in windows powershell

2017-09-20 Thread Joey Steward
-- Forwarded message --
From: Joey Steward <jsteward2...@gmail.com>
Date: Tue, Sep 19, 2017 at 10:30 PM
Subject: Issues with python commands in windows powershell
To: python-list@python.org


Hello,

I've been having issues using basic python commands in windows powershell.
I'm new to programming so just going off of online tutorials.

Earlier I was unable to use pip to install Django (pip install Django), and
came to this forum for help and someone was able to give me the correct
command for windows 10 (py -m pip install django).

I've been trying to run this command django-admin startproject mytests, but
get the same error message as when trying to run the original pip

django-admin : *The term 'django-admin' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included,*
*verify that the path is correct and try again.*
*At line:1 char:1*
+ django-admin startproject mytestsite
+ 
+ CategoryInfo  : ObjectNotFound: (django-admin:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


I'm very new so honestly have no idea what the issue may be, but from
previously trying to use python I think it may have something to do with
configuring windows environment variables? Not sure, but just something
I've ran into in the past previous times trying to learn python for more
data analysis purposes.

Any help would be greatly appreciated!

Thanks a lot,

Joey Steward
-- 
https://mail.python.org/mailman/listinfo/python-list


Issues with python commands in windows powershell

2017-09-19 Thread Joey Steward
Hello,

I've been having issues using basic python commands in windows powershell.
I'm new to programming so just going off of online tutorials.

Earlier I was unable to use pip to install Django (pip install Django), and
came to this forum for help and someone was able to give me the correct
command for windows 10 (py -m pip install django).

I've been trying to run this command django-admin startproject mytests, but
get the same error message as when trying to run the original pip

django-admin : *The term 'django-admin' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included,*
*verify that the path is correct and try again.*
*At line:1 char:1*
+ django-admin startproject mytestsite
+ 
+ CategoryInfo  : ObjectNotFound: (django-admin:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


I'm very new so honestly have no idea what the issue may be, but from
previously trying to use python I think it may have something to do with
configuring windows environment variables? Not sure, but just something
I've ran into in the past previous times trying to learn python for more
data analysis purposes.

Any help would be greatly appreciated!

Thanks a lot,

Joey Steward
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-31 Thread Daniele Forghieri

Il 30/07/2017 23:31, Ode Idoko via Python-list ha scritto:

Hi, I am new to Python and though I have been able to download the 3.6 version 
on my laptop , I still have issues with the syntax. While writing a program to 
execute, it will display syntax error with different shades of color usually 
green or yellow.
What can I do about this? How do I know the error and effect it? Can't it be 
programmed like we have in excel that will tell you error and prompt you if you 
wish to accept the right formula format?
Please I need more information on this.
Thanks.
Ode

Sent from my iPhone


If you use eclipse with the pydev extensions or, directly, liclipse 
you have (some) error and warnings, for example if you use a variable 
not defined or if you try to use a variable with the same name of a 
reserved symbol.


It's not completed as you run the program but it's really helpful.

Daniele Forghieri




--
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-30 Thread Byung-Hee HWANG (황병희, 黃炳熙)
Ode Idoko via Python-list  께서 쓰시길,
 《記事 全文  에서》:

> ... it will display syntax error with ...

Maybe, you did copy & paste, just i guess ... if not, ignore it.

-- 
^고맙습니다 _白衣從軍_ 감사합니다_^))//

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-30 Thread Rick Johnson
> Hi, I am new to Python and though I have been able to
> download the 3.6 version on my laptop , I still have
> issues with the syntax. While writing a program to
> execute, it will display syntax error with different
> shades of color usually green or yellow.

Which IDE (aka: fancy text editor) are you using to write this
code?

> What can I do about this?

About what?

(!) Do you want to change the colors of the syntax
hilighting?

(2) Do you want to know how to prevent or fix syntax errors?

(3) Something else entirely?

Unfortunately last weekend i had to pawn my crystal ball to
payoff the vig, (it seems my financier is not the type to
just "fuggetaboutit") so i'm afraid you'll have to be a
_little_ more specific when asking questions. But seriously.
:-) Syntax hilighting is used by some editors to help a
programmer differentiate between certain elements of code.
And this hilighting can be very helpful to the beginner.

> How do I know the error and effect it?

Oh, you'll know when you make a mistake, because Python will
throw an error message. For instance, if you type "aaa"
(without the quotes) at the Python command prompt, you'll
receive a message that looks similar to this:

Traceback (most recent call last):
  File "", line 1, in 
aaa
NameError: name 'aaa' is not defined

This one is easy to diagnose. But in order to understand
Python exception messages you need to read some tutorials.
If you think you can start writing code (even Python code)
without some sort of "guide", then you're going to have a
real difficult time. Even folks with prior programming
experience need a guide. I imagine it would be like a
delivery driver moving from Paris to London and trying to
navigate around the streets of Merry ol' London using a map
of Paris. It's just not practical.

> Can't it be programmed like we have in excel that will tell
> you error and prompt you if you wish to accept the right
> formula format?

By utilizing Python, or any other programming language that
is available (and boy, there are quite a few of them!), you
can program your computer to do just about anything you
want. Maybe you could even write a real life HAL5000! But if
you're expecting that your experience with Micrcosoft Excel
formulas will translate over into Python, well, then, you're
in a tough time. Excel is a "single purpose software"
whereas Python is a "general purpose programming language".
Using Python, you could write a spreadsheet program like
Excel. Although I wouldn't suggest it, as there are already
tons of them freely available, and Python is not the best
language for something like that, and Microsoft would not be
too happy about it. But you could do it if you were so
inclined. My advice is that you visit the Python.org website
and look through the list of tutorials for absolute
beginners. After completing a few of these tutorials, you
should be off and running in no time. Here is link:

https://wiki.python.org/moin/BeginnersGuide/NonProgrammers

After clicking the link, skip down to the section titled
"Tutorials and Websites", and start with "One Day of IDLE
Toying". IDLE is a "fancy text editor" that ships with
Python, and this tutorial is very gentle on beginners. After
you have finished "One Day of IDLE Toying", my next
suggestion would be "A Byte of Python", which will introduce
you to some basics. From there, you can go through all the
other tutorials. When you have finished all the beginner
tutorials, then take a stab at the advanced section. Here is
a link

https://wiki.python.org/moin/BeginnersGuide/Programmers

And don't forget, Google is a programmers best friend.

Who surprisingly, hardly ever complains.

Which unfortunately, is something i cannot say for the women
i have known. But i digress! O;-)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-30 Thread Irmen de Jong
On 30/07/2017 23:31, Ode Idoko wrote:
> Hi, I am new to Python and though I have been able to download the 3.6 
> version on my laptop , I still have issues with the syntax. While writing a 
> program to execute, it will display syntax error with different shades of 
> color usually green or yellow. 
> What can I do about this? How do I know the error and effect it? Can't it be 
> programmed like we have in excel that will tell you error and prompt you if 
> you wish to accept the right formula format? 
> Please I need more information on this. 
> Thanks. 
> Ode 
> 
> Sent from my iPhone
> 

You'll have to learn the language if you want to do anything meaningful with it.
Python isn't anything like excel formula's, it is a full general multipurpose
programming language.  If you make a mistake, it usually is almost impossible 
to deduce
what you meant to write instead. (because otherwise we wouldn't have to program 
our
computers anymore and instead let them figure out automatically what we wanted 
to do,
right? Just joking)

Because you are comparing it to excel formulas: are you sure you've chosen the 
right
tool for whatever the task is that you wanted to solve?
If so: may I suggest first working through the Python tutorial.
https://docs.python.org/3/tutorial/index.html


Irmen

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-30 Thread MRAB

On 2017-07-30 22:31, Ode Idoko via Python-list wrote:

Hi, I am new to Python and though I have been able to download the 3.6 version 
on my laptop , I still have issues with the syntax. While writing a program to 
execute, it will display syntax error with different shades of color usually 
green or yellow.
What can I do about this? How do I know the error and effect it? Can't it be 
programmed like we have in excel that will tell you error and prompt you if you 
wish to accept the right formula format?
Please I need more information on this.
Thanks.
Ode


If there's a syntax error, it'll tell you what the error is.

If it's merely showing parts of a line in different colours, that's 
"syntax colouring". In IDLE, for example, comments are shown in red and 
string literals are shown in green.

--
https://mail.python.org/mailman/listinfo/python-list


Issues with Python

2017-07-30 Thread Ode Idoko via Python-list
Hi, I am new to Python and though I have been able to download the 3.6 version 
on my laptop , I still have issues with the syntax. While writing a program to 
execute, it will display syntax error with different shades of color usually 
green or yellow. 
What can I do about this? How do I know the error and effect it? Can't it be 
programmed like we have in excel that will tell you error and prompt you if you 
wish to accept the right formula format? 
Please I need more information on this. 
Thanks. 
Ode 

Sent from my iPhone
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues downloading python.

2017-04-07 Thread mm0fmf

On 07/04/2017 15:57, Brandon Mace wrote:

I have downloaded python onto a DELL laptop, but it will not run. I have
tried to install it multiple times but each time it does not work so I try
again. This time it has come up with a system error and that "The program
can't start because api-ms-win-crt-runtime-[1-1-0.dlll is missing"
What can I do to make the program run?



Install the missing file.

https://support.microsoft.com/en-us/kb/2999226
--
https://mail.python.org/mailman/listinfo/python-list


Issues downloading python.

2017-04-07 Thread Brandon Mace
I have downloaded python onto a DELL laptop, but it will not run. I have
tried to install it multiple times but each time it does not work so I try
again. This time it has come up with a system error and that "The program
can't start because api-ms-win-crt-runtime-[1-1-0.dlll is missing"
What can I do to make the program run?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Font issues Tkinter/Python 3.5

2016-01-29 Thread MRAB



On 2016-01-29 22:04:57, "KP"  wrote:


import tkinter as tk
from tkinter import ttk
from tkinter import font
...
def __init__(self):
self.root = tk.Tk()
self.root.title('Main Window')
self.root.geometry('1000x800+200+200')
self.root.minsize(width=1000, height=800)

default_font = tkFont.nametofont("TkDefaultFont")
default_font.configure(size=12)
self.root.option_add("*Font", default_font)
...
self.root.mainloop()
...

tells me that 'tkFont' is not defined. What am I missing?

As always, thanks for any pointers!

 'nametofont' is in tkinter.font, which you have imported as 'font', so 
'tkFont.nametofont' should be 'font.nametofont'.


--
https://mail.python.org/mailman/listinfo/python-list


Font issues Tkinter/Python 3.5

2016-01-29 Thread KP
import tkinter as tk
from tkinter import ttk
from tkinter import font
...
def __init__(self):
self.root = tk.Tk()
self.root.title('Main Window')
self.root.geometry('1000x800+200+200')
self.root.minsize(width=1000, height=800)

default_font = tkFont.nametofont("TkDefaultFont")
default_font.configure(size=12)
self.root.option_add("*Font", default_font)
... 
self.root.mainloop()
...

tells me that 'tkFont' is not defined. What am I missing?

As always, thanks for any pointers!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: issues with Python

2015-10-15 Thread Ian Kelly
On Thu, Oct 15, 2015 at 8:04 AM,   wrote:
>
> I am using the Python Programming third edition for absolute beginners.
> I was able to create my Game over program, but I do not have the start menu
> with the icons and cannot seem to find it. I have the Shell and the script
> mode but I am not able to find the start menu with the icons the book speaks
> of. When I try to edit the Idle/Shell screen I cannot.
>
> I am un installing and going to re-install, but wanted you to be aware.

I'm not familiar with the book, but by "start menu" might it mean the
*Windows* start menu?
-- 
https://mail.python.org/mailman/listinfo/python-list


issues with Python

2015-10-15 Thread vjdeluccie




I am using the Python Programming third edition for absolute beginners. 

I was able to create my Game over program, but I do not have the start menu 
with the icons and cannot seem to find it. I have the Shell and the script mode 
but I am not able to find the start menu with the icons the book speaks of. 
When I try to edit the Idle/Shell screen I cannot. 


I am un installing and going to re-install, but wanted you to be aware. 





Sent from Windows Mail-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Indentation issues with python

2015-02-05 Thread Denis McMahon
On Wed, 04 Feb 2015 19:07:53 -0800, syed khalid wrote:

 I downloaded this code and am attempting to run it. I keep getting
 indentation error.

 class EventHubClient(object):
 def sendMessage(self,body,partition):eventHubHost =
 pac-ns.servicebus.windows.net
httpclient = _HTTPClient(service_instance=self)

 def sendMessage(self,body,partition):
 ^

 IndentationError: expected an indented block
 ***
 sasKeyName = SendPolicy
 sasKeyValue = erENqf/5wdWCNEbCA9NsDIRqd5MRKdkii07+wezl/NU=

class starts a class definition. def starts a function (or method) 
definition. The parser expects these definitions to be followed by one or 
more indented lines being the code of the class or function (method).

The following lines down to either a return or the next function 
definition line should probably all be indented.

eg:

class EventHubClient(object):

def sendMessage(self,body,partition):
eventHubHost = pac-ns.servicebus.windows.net
httpclient = _HTTPClient(service_instance=self)
sasKeyName = SendPolicy
sasKeyValue = erENqf/5wdWCNEbCA9NsDIRqd5MRKdkii07+wezl/NU=
.. more indented code should probably follow

Getting the indentation correct is absolutely critical in Python.

-- 
Denis McMahon, denismfmcma...@gmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Indentation issues with python

2015-02-04 Thread syed khalid
 I downloaded this code and am attempting to run it. I keep getting
indentation error. there is a way to handle it with a editor which can
recognize the tab or space issue. I have tried different options such as 2
or 3 spaces or tab to no avail.

I have encased the error mesage with line 23 between 

import sys
import azure
import socket

from azure.servicebus import (
_service_bus_error_handler
)

from azure.servicebus.servicebusservice import (
ServiceBusService,
ServiceBusSASAuthentication
)

from azure.http import (
HTTPRequest,
HTTPError
)

from azure.http.httpclient import _HTTPClient

class EventHubClient(object):
def sendMessage(self,body,partition):eventHubHost =
pac-ns.servicebus.windows.net
httpclient = _HTTPClient(service_instance=self)
 
File test1.py, line 23
def sendMessage(self,body,partition):
^
IndentationError: expected an indented block
***
sasKeyName = SendPolicy
sasKeyValue = erENqf/5wdWCNEbCA9NsDIRqd5MRKdkii07+wezl/NU=

authentication = ServiceBusSASAuthentication(sasKeyName,sasKeyValue)

request = HTTPRequest()
request.method = POST
request.host = eventHubHost
request.protocol_override = https
request.path = /myhub/publishers/ + partition +
/messages?api-version=2014-05

request.body = body
request.headers.append(('Content-Type',
'application/atom+xml;type=entry;charset
=utf-8'))

authentication.sign_request(request, httpclient)

request.headers.append(('Content-Length', str(len(request.body)))



-- 
*Syed Khalid*
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Indentation issues with python

2015-02-04 Thread Ben Finney
syed khalid sy...@pacificloud.com writes:

  I downloaded this code and am attempting to run it. I keep getting
 indentation error.

Indentation is crucial information in Python code. If it is lost, don't
waste time trying to guess it; instead, get the correct code.

How did you download it? You should download the code as a “plain text”
file.

-- 
 \ “I got some new underwear the other day. Well, new to me.” —Emo |
  `\   Philips |
_o__)  |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Indentation issues with python

2015-02-04 Thread Terry Reedy



class EventHubClient(object):  ...
def sendMessage(self,body,partition):

...
 ^

IndentationError: expected an indented block
***


and 'def' is not indented as it must be.  This must be covered in the 
tutorial.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing Python 2.7

2014-12-01 Thread billyfurlong
This actually worked!!  It's a bare machine with nothing (except the system) 
using python.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing Python 2.7

2014-12-01 Thread Chris Angelico
On Tue, Dec 2, 2014 at 3:40 AM,  billyfurl...@gmail.com wrote:
 This actually worked!!  It's a bare machine with nothing (except the system) 
 using python.

Good to know! But, uhh... *what* actually worked? You've posted with
no content, so we have no idea which of the several suggestions in
this thread worked - and,more importantly, neither does anyone who
comes reading the archive. One of the beauties of a good mailing list
is that information hangs around; if anyone else has the same problem
as you do, s/he can read the response and know what to do, without
waiting for the turn-around time of email questions and answers. For
that to work, context is crucial.

But I'm glad you're sorted out!

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing Python 2.7

2014-11-27 Thread Steven D'Aprano
On Wed, 26 Nov 2014 09:09:30 -0800, billyfurlong wrote:

 ./configure --prefix=/opt/python2.7 --enable-shared

Do you need to install to /opt instead of the default of 
/usr/local/bin? I have multiple versions of Python installed on a Red Hat 
system (Centos, but RH should be the same) using the default prefix of 
/usr/local/bin and don't have any trouble.


I recommend you try again with just:


./configure
make
make altinstall


then add an alias to your .bashrc 

alias python=python2.7


and see how that works for you.


-- 
Steven
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing Python 2.7

2014-11-27 Thread Chris Angelico
On Fri, Nov 28, 2014 at 4:40 AM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
 On Thu, 27 Nov 2014 11:53:10 +1100, Steven D'Aprano
 steve+comp.lang.pyt...@pearwood.info declaimed the following:

billyfurl...@gmail.com wrote:


 Add this to the bashrc
 export PATH=$PATH:/opt/python2.7/bin/

I'm not so sure about that, but I don't have time to investigate right now.

 If this is for the user login (and where it won't conflict with the
 system startup processes) I'd have swapped the $PATH and /opt... order --
 putting the 2.7 bin directory ahead of the system bin directory.

I wouldn't. Do you know, for absolute certain, which programs you run
that end up calling on Python, perhaps via #!/usr/bin/env python, or
perhaps by being shell scripts and running python my_main_module.py,
or something? You'd break those. Unless, of course, you're making
absolutely sure there's no python command in the /opt/... directory,
in which case the PATH order won't have any semantic difference, and
directory caching will make sure there's virtually no performance
difference, so the current form is just as good.

That said, I have never compiled a Python 2, ever. I've always
compiled Py3, and let that happily take over the name python3,
leaving the system Python 2.x on the name python and python2.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Issues installing Python 2.7

2014-11-26 Thread billyfurlong
Hi all,

Not a python user but I'm trying to upgrade python so I can install pip which 
is required for one of the apps that I'm installing.

I've tried to install using the below instructions, but when I type python I 
still get the old 2.4.3 version.  Oh Red Hat 5.8 is where I'm installing on.


yum groupinstall development tools -y 
yum install readline-devel openssl-devel gmp-devel ncurses-devel gdbm-devel \
glib-devel expat-devel libGL-devel tk tix gcc-c++ \ 
libX11-devel glibc-devel bzip2 tar tcl-devel tk-devel pkgconfig \
tix-devel bzip2-devel sqlite-devel autoconf db4-devel libffi-devel \
valgrind-devel -y
mkdir tmp  
cd tmp  
wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz  
tar xvfz Python-2.7.5.tgz  
cd Python-2.7.5

./configure --prefix=/opt/python2.7 --enable-shared

make

make altinstall

Add this to the bashrc
export PATH=$PATH:/opt/python2.7/bin/


Now the installation worked fine but shouldn't I see that it's using the 
correct version???

I also did try to run /opt/python2.7/bin/python2.7 and it give me this.

[root@wmy machine bin]# python2.7
python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot 
open shared object file: No such file or directory

Please help the newb.  He's frustrated.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing Python 2.7

2014-11-26 Thread Chris Angelico
On Thu, Nov 27, 2014 at 4:09 AM,  billyfurl...@gmail.com wrote:
 Hi all,

 Not a python user but I'm trying to upgrade python so I can install pip which 
 is required for one of the apps that I'm installing.

 I've tried to install using the below instructions, but when I type python I 
 still get the old 2.4.3 version.  Oh Red Hat 5.8 is where I'm installing on.

Since RHEL depends on Python's stability, you'll continue to get the
old version when you just type 'python'. Changing that would
potentially break hundreds of scripts in your system. You're
definitely going to have to type 'python2.7' to get the new version.

 yum groupinstall development tools -y
 yum install readline-devel openssl-devel gmp-devel ncurses-devel gdbm-devel \
 glib-devel expat-devel libGL-devel tk tix gcc-c++ \
 libX11-devel glibc-devel bzip2 tar tcl-devel tk-devel pkgconfig \
 tix-devel bzip2-devel sqlite-devel autoconf db4-devel libffi-devel \
 valgrind-devel -y
 mkdir tmp
 cd tmp
 wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz
 tar xvfz Python-2.7.5.tgz
 cd Python-2.7.5

Hmm, you just grabbed 2.7.5, but there's a 2.7.8 (and 2.7.9 is in RC,
coming soon). I don't think it'll make much difference here, but you
may as well grab the latest stable.

 ./configure --prefix=/opt/python2.7 --enable-shared

 make

 make altinstall

It's been a while since I built a Python 2 from source, but I suspect
'make altinstall' is safe, and the --prefix to configure is
unnecessary. However... my suspicion is that you simply need to
reference the shared library from the same directory.

 Add this to the bashrc
 export PATH=$PATH:/opt/python2.7/bin/


 [root@wmy machine bin]# python2.7
 python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot 
 open shared object file: No such file or directory

See if that file exists somewhere in /opt/python2.7 - if it does, you
may simply need to add that directory to ld.so.conf (or ld.so.conf.d
if that's how your system's set up) and rerun ldconfig.

Alternatively, you should be able to run Python directly from the
build tree. If that works, you know for sure that it's a simple
pathing problem.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing Python 2.7

2014-11-26 Thread Steven D'Aprano
billyfurl...@gmail.com wrote:

 Hi all,
 
 Not a python user but I'm trying to upgrade python so I can install pip
 which is required for one of the apps that I'm installing.
 
 I've tried to install using the below instructions, but when I type python
 I still get the old 2.4.3 version.  Oh Red Hat 5.8 is where I'm installing
 on.

That's good! That means you didn't break the system python, which would be
bad.

It's probably possible *in principle* to teach Red Hat Linux to use Python
2.7 as the only version of Python installed, but that will probably break a
lot of critical system scripts like yum. The safest way to deal with this
issue is to 

Your options are:

- upgrade the OS to a more recent version which supports 2.7 out of the box;

- explicitly refer to python2.7 instead of python

- use an alias, I put this in my bashrc:

alias python='python2.7'


 yum groupinstall development tools -y
 yum install readline-devel openssl-devel gmp-devel ncurses-devel
 gdbm-devel \ glib-devel expat-devel libGL-devel tk tix gcc-c++ \
 libX11-devel glibc-devel bzip2 tar tcl-devel tk-devel pkgconfig \
 tix-devel bzip2-devel sqlite-devel autoconf db4-devel libffi-devel \
 valgrind-devel -y
 mkdir tmp
 cd tmp
 wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz
 tar xvfz Python-2.7.5.tgz
 cd Python-2.7.5
 
 ./configure --prefix=/opt/python2.7 --enable-shared
 
 make
 
 make altinstall

So far this all looks good to me.


 Add this to the bashrc
 export PATH=$PATH:/opt/python2.7/bin/

I'm not so sure about that, but I don't have time to investigate right now.


 Now the installation worked fine but shouldn't I see that it's using the
 correct version???
 
 I also did try to run /opt/python2.7/bin/python2.7 and it give me this.
 
 [root@wmy machine bin]# python2.7
 python2.7: error while loading shared libraries: libpython2.7.so.1.0:
 cannot open shared object file: No such file or directory
 
 Please help the newb.  He's frustrated.

Are you sure that /opt/python2.7/bin/python2.7 even exists? What do ls -l
and file say about them?



-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing Python 2.7

2014-11-26 Thread Michael Torrie
To further explain my terse post from before (from my phone), see below.

On 11/26/2014 10:09 AM, billyfurl...@gmail.com wrote:
 Now the installation worked fine but shouldn't I see that it's using the 
 correct version???
 
 I also did try to run /opt/python2.7/bin/python2.7 and it give me this.
 
 [root@wmy machine bin]# python2.7
 python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot 
 open shared object file: No such file or directory
 
 Please help the newb.  He's frustrated.

So the longer answer is that only certain directories are searched by
Linux for shared libraries. Python happens to provide a shared library,
which it depends on, which is installed by the source tarball in /opt
along with the binaries.  There are a number of ways you can solve this:

- Create a file in /etc/ld.so.conf.d/python2.7.conf and place in it the
following path:
/opt/python2.7/lib

- before running /opt/python2.7/bin/python2.7, set the LD_LIBRARY_PATH
environment variable (example in bash):
$ LD_LIBRARY_PATH=/opt/python2.7/lib /opt/python2.7/bin/python2.7

- create a wrapper script in /usr/bin that sets LD_LIBRARY_PATH and
execs python2.7

I recommend the first as a permanent solution.



-- 
https://mail.python.org/mailman/listinfo/python-list


SSL issues in Python stdlib and 3rd party code

2013-08-12 Thread Christian Heimes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hello,

(re-post from the Python developer list)

last week Ryan Sleevi of the Google Chrome Security Team has informed
us about about two issues in Python's SSL module. I already new about
the cause of the first bug and suspected that our SSL module suffers
from the second bug but I was unable to prove it.

Both issues are security issues but their impact is limited if you
trust only trustworthy root certification authorities. Any decent root
CA would should not sign a malicious cert with NULL bytes in a
subjectAltName dNSName field or with wildcards like *.*.com.

By the way if you are using the cacert.pem from curl, please update
your bundle ASAP. I have found a bug in its Mozilla certdata parser, too.


bug #1: ssl.match_hostname() wildcard matching
- --

ssl.match_hostname() doesn't implement RFC 6125 wildcard matching rules.

Affected versions:

- - Python 3.2 ( 3.2.5)
- - Python 3.3 ( 3.3.3)
- - Python 3.4a1
- - requests  1.2.3
  https://pypi.python.org/pypi/requests
- - backports.ssl_match_hostname (3.2a3)
  https://pypi.python.org/pypi/backports.ssl_match_hostname/
- - urllib3  1.6
  https://github.com/shazow/urllib3

Bug reports:

  http://bugs.python.org/issue17997
  https://github.com/kennethreitz/requests/issues/1528

https://bitbucket.org/brandon/backports.ssl_match_hostname/issue/2/match_hostname-doesnt-implement-rfc-6125

Patch:

  http://bugs.python.org/issue17997 has a preliminary patch. The
  handling of IDN A-labels is still a bit controversial, though.


bug #2 failure to handle NULL bytes in subjectAltName
- -

It's basically the same issue as CVE-2013-4073. Python uses
GENERAL_NAME_print() to turn a GERNAL_NAME entry into a C string. But
GENERAL_NAME_print() doesn't handle embedded NULL bytes in
ASN1_STRINGs correctly. You can read more about the issue at
http://www.ruby-lang.org/en/news/2013/06/27/hostname-check-bypassing-vulnerability-in-openssl-client-cve-2013-4073/

Affected versions:

- - Python 2.6 ( 2.6.8)
- - Python 2.7 ( 2.7.5)
- - Python 3.2 ( 3.2.5)
- - Python 3.3 ( 3.3.3)
- - Python 3.4a1
- - PyOpenSSL  0.13
  https://pypi.python.org/pypi/pyOpenSSL
- - eGenix.com pyOpenSSL Distribution with PyOpenSSL  0.13
  https://pypi.python.org/pypi/M2Crypto
- - M2Crypto  0.21.1
  http://www.egenix.com/products/python/pyOpenSSL/

Bug report:

  http://bugs.python.org/issue18709

Patches:

  http://bugs.python.org/issue18709 has patches for 2.7, 3.3 and default
  https://code.launchpad.net/~heimes/pyopenssl/pyopenssl/+merge/179673


Jean-Paul Calderone is going to release 0.13.1 soonish. It's going to
contain just my fix for the issue. Marc-Andre Lemburg will build a new
version of eGenix.com pyOpenSSL Distribution shortly after.

I'm not going to work on a patch for M2Crypto as I don't understand
SWIG. I have contacted Heikki Toivonen for M2Crypto but haven't heard
back from him yet.


related issue: Mozilla's certdata.txt and CKT_NSS_MUST_VERIFY_TRUST
- ---

Recently I found bugs in curl's mk-ca-bundle.pl script, its cacert.pem
and in the CA bundle of eGenix.com pyOpenSSL Distribution. Both failed
to handle a new option in Mozilla's certdata.txt database correctly.
As a consequence the root CA bundles contained additionally and
untrustworthy root certificates. I'm not sure about the severity of
the issue.

Curl has already fixed its script week ago. Marc-Andre Lemburg is
going to release a new distribution very soon.

  https://github.com/bagder/curl/commit/51f0b798fa
  http://curl.haxx.se/docs/caextract.html

Background information:

  https://www.imperialviolet.org/2012/01/30/mozillaroots.html
  http://lists.debian.org/debian-release/2012/11/msg00411.html

http://p11-glue.freedesktop.org/doc/storing-trust-policy/storing-trust-existing.html



I like to thank Ryan Sleevi (Google), Chris Palmer (Google),
Marc-Andre Lemburg (eGenix.com, Python core dev), Jean-Paul Calderone
(PyOpenSSL), Antoine Pitrou (Python core dev), Daniel Stenberg (curl),
Günter Knauf (curl) and everybody else who was involved in reporting
and fixing these issues.


Regards,
Christian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQIcBAEBCgAGBQJSCRlqAAoJEMeIxMHUVQ1Fmq0QAJoKFK3V1iiB+3hhvPfJGnLn
pSMzm9CpIineF7KRSI50GYls7gwO5Nggqol2V7qcEzpRCPFxkV9E2t75Q8OnBW0+
ZHOoTjpLD086HeQ4oIcGN6byQcHwIbIVh74hRFu7ZW4jqLQwvyPrGwRonRv5a6nG
0tRqp/Swqyqvo4KTpxV26MdZNwD+c+ASO0gmQzW6SURS5/gUKv0fDWjUwqC9COdZ
Xz9wsLZaul+e6ewH7N5c7EWRXEs8l8cVk68Jw+/Jshct4kfWUnnw67qPjcoDgHLI
tZzjVy7aCp2V9vjKvAcM2OUz0Q5h1rIFc5Roh5yH8OxuOn+Zn6zs3M6DKHJI9n12
JTTyi4yBu5hBRFqOWYSicytQpHAT604zpaGY7g4Hd0J98tG0kuT0BC7tozdi+MUW
eXuBML7uYOBlI/VCIv/baZAaRj1txPZl5Vf9a75N2lb2seavUJDu8HqOzh+zxSTC
9agPuGAJOrU5mljkBKCCVy6/4njktjOBDmQsf9OHZ0/FolBjQuiJyXp4hLMQMqzY

Issues with python/libtcod

2012-11-07 Thread Graham Fielding




Hey, all. I'm trying to program a roguelike, using the wonderful tutorials 
written by João F. Henriques (a.k.a. Jotaf), but I've stumbled onto a bit of a 
problem setting up the game's inventory system, and I was hoping someone could 
help me out. Here's a code snippet, including the affected line. #def 
menu(header, options, width):
#if len(options)  26: raise ValueError('Cannot have a menu with more than 
26 options.')
 
#calculate total height for the header (after auto-wrap) and one line per 
option
#header_height = libtcod.console_height_left_rect(con, 0, 0, width, 
SCREEN_HEIGHT, header)
#height = len(options) + header_height
In a nutshell: def menu() is an all-encompassing 'menu processor' function -- 
it contains a standardized menu layout that can be called, from anywhere in the 
stack, to create a generic menu. When I launch the game to check things out, 
everything runs smoothly until I try to open the inventory window -- at which 
point, IDLE  tosses up an AttributeError:
File C:/Python Project/Roguelike.py, line 602, in module
player_action = handle_keys()
  File C:/Python Project/Roguelike.py, line 531, in handle_keys
chosen_item = inventory_menu('Press the key next to an item to use it, or 
any other to cancel.\n')
  File C:/Python Project/Roguelike.py, line 487, in inventory_menu
index = menu(header, options, INVENTORY_WIDTH)
  File C:/Python Project/Roguelike.py, line 447, in menu
header_height = libtcod.console_height_left_rect(con, 0, 0, width, 
SCREEN_HEIGHT, header)
AttributeError: 'module' object has no attribute 'console_height_left_rect' 
I've tried moving the entire def menu() function to various sections of the 
stack, I've changed its arguments manually, and I've even removed the affected 
line entirely to see if that would help; nothing seems to work, and it's only 
when def menu() is called that this happens. Anyone got any ideas what could be 
going flooey?-- 
http://mail.python.org/mailman/listinfo/python-list


Permission Issues in python cgi scripts on Apache 2.2 on OSX Leopard

2008-11-14 Thread Dan Yamins
Using Apache 2.2 on my local OSX machine, I;ve set up a virtual host to
serve a directory that a project of mine is in.  In this directory, I have
some python .cgi scripts that I use to dynamically generated locally-used
html code.   In several places,scripts that work fine when not run as .cgi
scripts via the webserver (but just as regular .py scripts in the Python
interpreter) break when run by Apache because of what look like permissions
related issues. Specifically:

1) When a script attempts to make a directory, it fails to do so unless
writing is enabled on the superdirectory for all users, not just owner or
group.   I see a permission denied error via the cgitb output.

and,

2) Some operating system stat modification functions, like os.utim, fail --
with the error message being that Operation is Not Permitted.I've put
permissions to 777 for all the involved files but to no avail.   (Am I right
in thinking that this problem is also a permissions issue?  I know the first
one is, because the error message says so explicitly.)

My computer is running off-line and this only ever going to be a local
development task.   So, my basic question is:  is there some way, for the
directories that I'm serving, to turn of all the permissions protections
whatsoever?  E.g. to run my cgi scripts as if the process running the
scripts had all root privileges?  And so that I can run scripts via cgi
without having to worry about problems like the Operation Not Permitted
Errror?  (I want to be able to take advantage of using pythong for dynamic
web-page generation without worrying about permission and security issues,
since these files will never be near anything online.)

I've tried to do things like put the proper things in my Apache
configuration files (e.g the virtual host conf fil, the httpd.conf file,
etc...), but this failed to achieve my goal.

I apologize if I'm sending this mail to the wrong list,

Thanks,
Dan
--
http://mail.python.org/mailman/listinfo/python-list


Issues with Python + Batch File

2008-03-25 Thread tarun
Hi All,
I've a batch file which invoks a python file. The python code in the file
brings up a GUI. The GUI is of a test tool which can execute scripts.

I tried using the following 2 sample of code for my batch file:

* (1)   (2)*
D:\opengui.py  D:\opengui.py
goto:end   goto:end
:end   :end
EXIT   TASKKILL /IM C:\WINDOWS\system32\cmd.exe

Double clicking on the batch file brings up a DOS BOX which opens up the
GUI. On Closing the GUI, the DOS BOX both get closed. But if I close the GUI
when a test is under execution, the GUI gets closed but the DOS BOX still
remains open.

I want to some how close the DOS BOX when the GUI is closed.

Thanks  Regards,
Tarun
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Issues with Python + Batch File

2008-03-25 Thread Gabriel Genellina
En Tue, 25 Mar 2008 08:55:12 -0300, tarun [EMAIL PROTECTED]  
escribió:

 I've a batch file which invoks a python file. The python code in the file
 brings up a GUI. The GUI is of a test tool which can execute scripts.

 I tried using the following 2 sample of code for my batch file:

 * (1)   (2)*
 D:\opengui.py  D:\opengui.py
 goto:end   goto:end
 :end   :end
 EXIT   TASKKILL /IM C:\WINDOWS\system32\cmd.exe

 Double clicking on the batch file brings up a DOS BOX which opens up the
 GUI. On Closing the GUI, the DOS BOX both get closed. But if I close the  
 GUI
 when a test is under execution, the GUI gets closed but the DOS BOX still
 remains open.

 I want to some how close the DOS BOX when the GUI is closed.

Either rename the script opengui.pyw or start it explicitely using:  
pythonw d:\opengui.py

pythonw.exe doesn't create a console (what you call a DOS BOX).

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list


having issues Installing Python 2.5b3 on Windows XP

2006-08-11 Thread Bucco
I installed python 2.5b3 on my windows XP sp2 box without any issues.
I can double click the python program, and idle comes up in the command
line window.  However when I run python from the command line program
cmd.exe, I get a pop-up window with the following error:

16 bit Windows Subsystem
-

The NTVDM CPU has encountered an illegal instruction.
CS:020c IP:0115 OP:0f 00 00 00 00 Choose 'Close' to terminate the
application.


If I run python from the command line with the full path,
C:\Python25\python, no problem.  I checked my environment variables and
they are pointing to the correct directories.  I am at a loss for waht
is causing the issue.  Active state python 2.4 worked from the command
line with no issues.  I know 2.5b3 is beta, but I would like to try and
get it running properly.  At the very least, I would like someone to
report this bug so that the final version gets fixed.

Please don't say reboot.  I have already tried that, same problem.  I
am going to try to install python 2.4 with the msi installer and see if
I have the same issue with that version.  If anyone else has any ideas
please help.  

Thanks:)

SA

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: having issues Installing Python 2.5b3 on Windows XP

2006-08-11 Thread Bucco
The python 2.4 version msi did no better.  Please help.  I do not
really want to go back to Active State Python.


Thanks:)

SA


Bucco wrote:
 I
 am going to try to install python 2.4 with the msi installer and see if
 I have the same issue with that version.  If anyone else has any ideas
 please help.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: having issues Installing Python 2.5b3 on Windows XP

2006-08-11 Thread [EMAIL PROTECTED]

Bucco wrote:
 The python 2.4 version msi did no better.  Please help.  I do not
 really want to go back to Active State Python.


 Thanks:)

 SA


 Bucco wrote:
  I
  am going to try to install python 2.4 with the msi installer and see if
  I have the same issue with that version.  If anyone else has any ideas
  please help.

It is a beta after all.  You should expect some bugs.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: having issues Installing Python 2.5b3 on Windows XP

2006-08-11 Thread [EMAIL PROTECTED]

Bucco wrote:
 The python 2.4 version msi did no better.  Please help.  I do not
 really want to go back to Active State Python.


 Thanks:)

 SA


 Bucco wrote:
  I
  am going to try to install python 2.4 with the msi installer and see if
  I have the same issue with that version.  If anyone else has any ideas
  please help.

It is a beta after all.  You should expect some bugs.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: having issues Installing Python 2.5b3 on Windows XP

2006-08-11 Thread Bucco
I'm getting closer now.

I figured out that when I typed python in cmd.exe window it was trying
to run the cygwin version of python.  I removed that link and cmd.exe
now finds the correct version.

Therefore, this is not a bug.  However, someone should add a caution in
the installation instructions for those of us using cygwin on windows.

Thanks:)

SA

-- 
http://mail.python.org/mailman/listinfo/python-list


GUI issues in Python

2006-04-06 Thread diffuser78
Hi,

I want to create a GUI where a user can select drag and drop kind of
boxes, circles and make connections between them.

This is basically for depicting states and dependencies. I am writing a
program where I let the user input states and dependencies in a certain
domain. Based on input given by user in the GUI, I grab it and run my
algorithm to generate the output.

I am wondering if there is any library like that in Python, or if
anybody of you has done something similar in past, could you post some
pointers.

thanks

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI issues in Python

2006-04-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote:

 Hi,
 
 I want to create a GUI where a user can select drag and drop kind of
 boxes, circles and make connections between them.
 
 This is basically for depicting states and dependencies. I am writing a
 program where I let the user input states and dependencies in a certain
 domain. Based on input given by user in the GUI, I grab it and run my
 algorithm to generate the output.
 
 I am wondering if there is any library like that in Python, or if
 anybody of you has done something similar in past, could you post some
 pointers.

tkinter. Amongst a bazillion others - but this is included, and the
canvas-widget actually very useful for your purpose.

Regards,

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI issues in Python

2006-04-06 Thread diffuser78
My question basically revolves around... that I dont want to draw
circles and boxes for drawing purposes.

I want the end user to be able to draw the GUI boxes and circles and
makes connection to depict states and dependencies. So its a little
unconventional and more like a SIMULATION TOOL.

I am pretty sure Python must have something like this. Any idea how to
go about it.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI issues in Python

2006-04-06 Thread Daniel Dittmar
[EMAIL PROTECTED] wrote:
 I want to create a GUI where a user can select drag and drop kind of
 boxes, circles and make connections between them.
 
 This is basically for depicting states and dependencies. I am writing a
 program where I let the user input states and dependencies in a certain
 domain. Based on input given by user in the GUI, I grab it and run my
 algorithm to generate the output.
 
 I am wondering if there is any library like that in Python, or if
 anybody of you has done something similar in past, could you post some
 pointers.

wxPython has an interface to the OGL library (screenshot: 
http://www.wxpython.org/ss/wxPythonOSX.png, features: 
http://www.wxwindows.org/contrib/ogl/ogl.htm)

Daniel
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI issues in Python

2006-04-06 Thread diffuser78
Thanks Daniel, I really think that this should be the solution to my
problem.

A quick Question...is wxPython Operating System dependent or it can be
used with anu OS like Linux, Windows and Mac ?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI issues in Python

2006-04-06 Thread Grant Edwards
On 2006-04-06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Thanks Daniel, I really think that this should be the solution to my
 problem.

 A quick Question...is wxPython Operating System dependent or it can be
 used with anu OS like Linux, Windows and Mac ?

http://wxwidgets.org/

-- 
Grant Edwards   grante Yow!  Kids, don't gross me
  at   off... Adventures with
   visi.comMENTAL HYGIENE can be
   carried too FAR!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI issues in Python

2006-04-06 Thread Daniel Dittmar
[EMAIL PROTECTED] wrote:
 Thanks Daniel, I really think that this should be the solution to my
 problem.
 
 A quick Question...is wxPython Operating System dependent or it can be
 used with anu OS like Linux, Windows and Mac ?
 

see http://www.wxpython.org/download.php#binaries

Linux and Win32 have been supported for a while. And the screenshot in 
my first reply was from Mac OS X, so OGL seems to be supported there too.

The wxPython demo application has an OGL example, so you can check that 
pretty quickly.

Daniel
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GUI issues in Python

2006-04-06 Thread Thomas Jollans
[EMAIL PROTECTED] wrote:

 My question basically revolves around... that I dont want to draw
 circles and boxes for drawing purposes.
 
 I want the end user to be able to draw the GUI boxes and circles and
 makes connection to depict states and dependencies. So its a little
 unconventional and more like a SIMULATION TOOL.
 
 I am pretty sure Python must have something like this. Any idea how to
 go about it.

a tkinter canvas can be hooked up via events with your simulation
algorithm easily.

So, user clicks some point - the program/simulation gets the coordinates
and action - does something - draws something - ...



-- 
Thomas Jollans - http://jollybox.de/
GNU/Linux - freedom, functionality, power - what more do you want ?
When in doubt, follow the penguins.
-- 
http://mail.python.org/mailman/listinfo/python-list