LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems getting Python based Salstat working (https://www.linuxquestions.org/questions/linux-software-2/problems-getting-python-based-salstat-working-664713/)

metalx1000 08-22-2008 06:59 PM

Problems getting Python based Salstat working
 
I'm trying to get an application called salsat working.
I got it from SourceForge.net
It's a python script and when I run it I get the following error:
Code:

./salstat.py:8: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained.  Please switch to the wx package as soon as possible.
  from wxPython.wx import *
Traceback (most recent call last):
  File "./salstat.py", line 8, in <module>
    from wxPython.wx import *
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wxPython/__init__.py", line 15, in <module>
    import _wx
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wxPython/_wx.py", line 8, in <module>
    from _misc import *
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wxPython/_misc.py", line 456, in <module>
    wxDateTime_GetNumberOfDaysinYear = wx._misc.DateTime_GetNumberOfDaysinYear
AttributeError: 'module' object has no attribute 'DateTime_GetNumberOfDaysinYear'

I'm running ubuntu hardy

Thanks for any help

tur third 09-02-2008 05:52 AM

Have you checked the obvious? It sounds like wxpython is not installed, which appears to be a GUI toolkit.

It looks like the code is trying to import from this toolkit, and cannot find it.

The best bet will be if you can find wxpython packaged in the Synaptic Package Manager in Ubuntu.

metalx1000 09-04-2008 03:04 PM

Teachers Glitch
 
Thank you for your response. I have not yet checked to see if wxpython is installed on the computer I was using that day. But I do wtite python scripts using wx so it should be installed on that computer. But my problem was solve in the way that I was trying to open a files for my with that she need for a class. And even as I was working on it I know that the teacher had made mistake, because if I was having trouble opening the file then the rest of my wifes class was going to be lost. And sure enough the next day the teacher sent out an email saying that she for got to convert the file to an excel file.

But, Thank you for your help.


All times are GMT -5. The time now is 05:50 AM.