ilius / starcal

StarCalendar: Full-featured International Calendar for Linux Desktop
https://ilius.github.io/starcal/
GNU Affero General Public License v3.0
153 stars 22 forks source link

Starcal2 won't run #11

Closed 183amir closed 9 years ago

183amir commented 9 years ago
Traceback (most recent call last):
  File "/usr/share/starcal2/scal2/ui_gtk/starcal2.py", line 48, in <module>
    from scal2 import core
  File "/usr/share/starcal2/scal2/core.py", line 62, in <module>
    localTz = get_localzone()
  File "/usr/share/starcal2/natz/local.py", line 98, in get_localzone
    return natz.tzfile.build_tzinfo('local', tzfile)
AttributeError: 'module' object has no attribute 'tzfile'

I tried installing in Archlinux with ./install-archlinux script. I am on the latest commit in master branch.

ilius commented 9 years ago

How did you run the program? What command exactly? and in which directory?

183amir commented 9 years ago

I just ran starcal2 (which is in /usr/bin) from my home directory.

On Sun, Dec 21, 2014 at 4:19 PM, Saeed Rasooli notifications@github.com wrote:

How did you run the program? What command exactly? and in which directory?

Reply to this email directly or view it on GitHub https://github.com/ilius/starcal/issues/11#issuecomment-67771817.

ilius commented 9 years ago

Do you have master at tag 2.4.0? How did you install it?

183amir commented 9 years ago

It is at the lastest commit which is 2.4.0.

git clone https://github.com/ilius/starcal.git
cd starcal
./install-archlinux
cd ~
starcal2  
Traceback (most recent call last):
  File "/usr/share/starcal2/scal2/ui_gtk/starcal2.py", line 48, in <module>
    from scal2 import core
  File "/usr/share/starcal2/scal2/core.py", line 62, in <module>
    localTz = get_localzone()
  File "/usr/share/starcal2/natz/local.py", line 98, in get_localzone
    return natz.tzfile.build_tzinfo('local', tzfile)
AttributeError: 'module' object has no attribute 'tzfile'

and here is the output of ./install-archlinux: http://pastebin.com/M0rX2SXM

ilius commented 9 years ago

Please check if "./starcal2" in the source directory works or not

183amir commented 9 years ago

If I add from . import tzfile to starcal/natz/__init__.py, it will run.

ilius commented 9 years ago

I pushed a commit, please pull and check again

183amir commented 9 years ago

Thanks, It is fixed now.

ilius commented 9 years ago

And thank you for reporting the bug