User Profile

Collapse

Profile Sidebar

Collapse
josh001
josh001
Last Activity: Aug 12 '10, 02:18 AM
Joined: Jul 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • josh001
    replied to I'm having problems with py2exe
    Thanks,
    for some reason it's working now. Unfortunately I haven't the faintest idea why. :) Oh well it's working and I wouldn't know were to start figuring out why it's working so I wont even try.

    Josh
    See more | Go to post

    Leave a comment:


  • josh001
    replied to I'm having problems with py2exe
    Any way to fix py2exe?

    umm, ok.
    Is there any way to make py2exe work? Maybe by changing the code? Or is there an update that works on vista?

    Thank,
    Joshua
    See more | Go to post

    Leave a comment:


  • josh001
    started a topic I'm having problems with py2exe

    I'm having problems with py2exe

    Hey, in an earlier question I asked why gui2exe wasn't working.
    Since then I've tried a couple of things but haven't found out much. Only that the problem has something to do with the sets module which py2exe is accessing.

    I tried,
    Code:
    import py2exe
    and got,
    Code:
    Warning (from warnings module):
      File "C:\Program Files\Python25\lib\site-packages\py2exe\build_exe.py", line 16
        import sets
    ...
    See more | Go to post

  • GUI2exe "error 2" (apparently). Anyone know how to avoid this???

    Hello I'm running python 2.6.4 on windows vista 32 bit.

    My problem is that gui2exe hit's an error almost instantly when I try to use it to package my program. This is the first time using gui2exe so I really don't know what I'm doing but I'm quite sure that I entered all previous information correctly.
    Here is a link to a screen shot of the error message since the one that I'm including it kind of small.
    http://pica...
    See more | Go to post
    Last edited by josh001; Nov 6 '09, 01:28 AM. Reason: clarity

  • josh001
    replied to Error Message that I can't explain.
    Solved!

    Solved!
    The error message doesn't pop up anymore, Thanks.

    The only thing left now is that when I try to open the program without Python Shell (just by clicking on the icon) it doesn't do a thing.
    I've saved the file as *.pyw and don't have any idea why it's not opening.

    Hear is the slightly edited code.

    Code:
     
    import wx, shelve, os
    from random import randrange as
    ...
    See more | Go to post

    Leave a comment:


  • josh001
    replied to Why does this cause KeyError: 0?
    Solved!

    That did it!
    Funny how things like that matter so much.
    I'll have to remember that.

    Thanks Josh
    See more | Go to post

    Leave a comment:


  • josh001
    replied to Why does this cause KeyError: 0?
    Why is it empty?

    But why is self.AllWords empty?
    Is it something to do with the way I accessed the text file?

    Here is the full Error code.
    Code:
     
    Traceback (most recent call last):
      File "C:\Documents and Settings\Joshua Leihe\My Documents\My Projects\NewProjects\Joshua\Python projects\French quiz\French Quiz_17.pyw.pyw", line 261, in French
        self.GameLoop(evt)
      File "C:\(path
    ...
    See more | Go to post

    Leave a comment:


  • josh001
    replied to Error Message that I can't explain.
    It's kind of long...

    It's a lot of code and I haven't sorted it for easy reading yet. (until it's finished I don't how I would sort it while still trying to figure out how to make it work)
    But here it is.

    Code:
     
    import wx, shelve, os
    from random import randrange as ran
    from pprint import pprint 
    class FrenchQuiz:
        def start(self):
            self.app = wx.App()
            #Define
    ...
    See more | Go to post

    Leave a comment:


  • josh001
    started a topic Why does this cause KeyError: 0?

    Why does this cause KeyError: 0?

    I'm trying to figure out why KeyError: 0 pops up when I try to run the program containing the code.



    Code:
     
    OpenDLG = wx.FileDialog(
                self.win,
                message='Please choose the quiz or quizes that you wish to use.',
                defaultDir=os.getcwd(),
                defaultFile='',
                wildcard='*.*',
                style=wx.OPEN | wx.MULTIPLE | wx.CHANGE_DIR)
    ...
    See more | Go to post

  • josh001
    started a topic Error Message that I can't explain.

    Error Message that I can't explain.

    This Error message pops up every time I run my program using Python Shell and won't open at all when I don't use Shell.

    Code:
     
    Traceback (most recent call last):
      File "C:\Documents and Settings\Joshua Leihe\My Documents\My Projects\NewProjects\Joshua\Python projects\French quiz\French Quiz_17.pyw.pyw", line 440, in <module>
        win.start()
      File "C:\Documents and Settings\Joshua Leihe\My Documents\My
    ...
    See more | Go to post

  • josh001
    replied to a command I can't find.
    Thanks,
    That's just what I was looking for.

    Josh
    See more | Go to post

    Leave a comment:


  • josh001
    started a topic a command I can't find.

    a command I can't find.

    Hello I need a command to be able to do the following.

    Code:
     
    button1 = wx.Button(ect, ect)
    button1.Bind(wx.EVT_BUTTON, self.button)
    button2 = wx.Button(ect, ect)
    Button2.Bind(wx.EVT_BUTTON, self.button)
     
    def button(evt):
    evt.????????????
    ????????? = I need a command to retrive the button label without knowing which button caused the evt_button event.
    See more | Go to post

  • josh001
    started a topic Useing py2exe.

    Useing py2exe.

    I want other people to be able to use my program without having python installed using windows.
    My command prompt accepts python as a command but when I run...

    Code:
    python setup.py py2exe
    in the command prompt the fallowing message comes up...

    Code:
    python: can't open file 'setup.py': [Errno 2] No such file or directory
    I put setup.py in a directory that python checks is there somewhere...
    See more | Go to post

  • josh001
    started a topic How to make a stand alone program.

    How to make a stand alone program.

    Hey,
    I have a program that needs wxpython, shelle and a dat file...
    But I have no idea how to make it into a stand alone program.
    I want to be able to put it on a disc and give it to my friends without them haveing to install python.
    Any ideas???
    See more | Go to post

  • josh001
    replied to Can not import wxPython!
    It seems to be working now I just reinstalled wxPython and that seemed to do it.
    See more | Go to post

    Leave a comment:


  • josh001
    started a topic Can not import wxPython!

    Can not import wxPython!

    I have installed both Python and wxPython but when I type
    "import wx"
    into Python Shell it gives me the following error.

    IDLE 1.2.1
    >>> import wx

    Traceback (most recent call last):
    File "<pyshell#0 >", line 1, in <module>
    import wx
    ImportError: No module named wx


    Any ideas how to fix this?
    See more | Go to post

  • josh001
    replied to Problems with distutils
    I put the python directory in the Pythonpath variable.
    But it still does not work.
    I think the problem is the DOS/Command prompt does not recognize python as a command.
    is there a command that I should use before writing...
    python setup.py build
    ???
    See more | Go to post

    Leave a comment:


  • josh001
    replied to What is your OS and Python Version
    I'm useing.
    Windows 2000 Pro.
    Python 2.5
    See more | Go to post

    Leave a comment:


  • josh001
    started a topic Problems with distutils

    Problems with distutils

    Hello I have a slight problem with distutils.
    Apparently I'm supposed to write my setup script which I have,
    and then enter...

    python setup.py build

    in the command prompt but when I do that it just says.

    'python' is not recognized as an internal or external command,
    operable program or batch file.

    The question is what should I write in the command prompt window?
    See more | Go to post
No activity results to display
Show More
Working...