Differences between revisions 114 and 115
Revision 114 as of 2009-06-14 20:20:31
Size: 11031
Editor: PaulBoddie
Comment: Moved answered questions. Fixed formatting further.
Revision 115 as of 2009-06-15 18:51:50
Size: 11242
Editor: PaulBoddie
Comment: Add new question, moved first question into the answered list with a new name.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
See Also: [[Asking for Help/Why doesn`t this work?]] = Asking for Help =

 * [[Asking for Help/Why does IDLE refuse to start on Windows?|Why does IDLE refuse to start on Windows?]]
Line 63: Line 65:

 * [[Asking for Help/Why don't my list and generator comprehensions work?|Why don't my list and generator comprehensions work?]]

Asking for Help

  • Why does IDLE refuse to start on Windows?

  • ssl-1.14.tar.gz exists and supposedly works with Python 2.5x. Assuming I have Visual Studio .NET 2003 available on my box, how do I build the package for Windows. It currently complains about a series of openssl *.h files that aren't available. I can drag in openssl for www.openssl.org, but which version, if that is applicable, and how do I connect the two either in a directory structure or appropriate configuration files?
  • I want to use ElementTree to parse a text object, but the ElementTree.parse function looks like it only takes file objects. I'm doing this all from within Blender, and don't want to touch the filesystem - so is there a way to create a file object from text (to pass to parse) without touching the file system? I'd also like to go the other way, create a text object from an ElementTree object.

  • How can I add or substract two to the last digit of a float? Like 4.9999 should be 5.0001 or 4.9997. The problem is
     >>> 4.9999
     4.9999000000000002
     would yield 4.9999000000000000 or 4.9999000000000004 which is not right.
     I could make a str(4.9999), convert each character to an int and work on each character from right   
     to left, but there must be a better way.
     this is not what I want as well:
     >>> ( 4.9999 * 10000 + 2 ) / 10000.0
     5.0000999999999998 -> this should be 5.0001
     this makes it somehow :))
     >>> str(( 4.9999 * 10000 + 2 ) / 10000)
     '5.0001'
  • I'm working with embedding Python into my applications. However, the Py_Initialize() is producing an " 'import site' failed " message on non-dev computers. I was wondering if there is a way to fix this or is it just a bug with Python? Thank you.
  • I'm trying to run the IDLE but it wont go on. i have an R52 leptop with ibm-tools installed (there is ver 2.2 there but i changed it so it wont ebe the default one). im trying to run ver 2.6. Thank
  • I'm new to python and I am just working with the idle-shell. How can I write a script without having python executing orders immediately after I type them into the shell? Follow-Up question: Having written the script, how do I run it in the interpreter?
  • How to solve problem when running python from command line?

  • I just installed MacPython. Unfortunately it doesn't seem to include the CoreGraphics-Python Module. Where ist my old system python? How can I uninstall MacPython?

  • I am new to Python from Java background, I have following structure
    /root
            /folder1
                    Class1.py
                    Class2.py
            /folder2
                    Class3.py
    I am in the folder2 and want to run class3.py but it need to import a module from Class1.py Could someone please help me?
    • I believe you just need to add folder1 to your path variable. Should be something along the lines of: import sys; sys.path.append('/root/folder1'); import Class1 (with ; replaced by newlines). If that doesn't work, look through the documentation for info on how the sys.path variable works--I may just have the syntax slightly off
  • Is there any way to get the environment from a subprocess.Popen created by python? In other words, if the new process updates it's environment, is it possible to get access to the modifications. For example In my case I'm executing MS Visual Studio's vsvars32.bat file and would like to access the modified PATH environment variable.
  • I want to right-click on data files in Windows XP and open them with a Python program.

  • Is there any way to determine if the C implementation under my Python uses IEEE 754 for floating point numbers? If yes, what is it?
  • I am trying to run Python script in ABAQUS, but there is a error "Import Error: No Module named " Tkinter"". So how can I handle the problem? Thanks
  • Why do I call conctructor of Cmd class in my Cmd subclass __init__ method?

  • How to use Python with MySQL on Windows

  • Why do I get permission denied errors when using macostools.copy

  • When I import Tkinter, Python exits. Why?

Answered (fully or partially)


CategoryFaq

Asking for Help (last edited 2019-11-04 14:47:35 by ChrisM)

Unable to edit the page? See the FrontPage for instructions.