Closed amirkarimi closed 10 years ago
When you have a fresh installed system, so starcal is not installed. The directory in your home partition was probably the source archive that you had extracted, but not anymore because you deleted it's files by uninstall script. The uninstall script should be only used in systems that their package manager in not supported (like Slackware, Gentoo, ...), and it shouldn't be used in Debian-based or RPM-based or Arch-based systems. And uninstall should be only executed from installed folder, which is "/usr/share/starcal2/uninstall", as mentioned in the README file
Anyway, you just need to download the latest release again and install it again. Please take a look at README file.
I did what you said and sent the result. Starcal didn't run.
/usr/share/starcal2/plugins
wasn't accessible to the current user. After giving the permission error changed to this:
error while loading plugin "/usr/share/starcal2/plugins/iran-holidays.hol": no such file!
Traceback (most recent call last):
File "/usr/local/share/starcal2/scal2/plugin_man.py", line 154, in loadExternalPlugin
mod = __import__(name)
File "/usr/share/starcal2/plugins/pray_times.py", line 30, in <module>
from tzlocal import get_localzone
ImportError: No module named tzlocal
I have holidays-iran.hol
instead of iran-holidays.hol
in plugins
folder. So I'm looking for the config file wher I can rename that.
The first error is gone by renaming the hol
file (of course I've found the conf files but because there are two files which should be changed, I prefer to rename the file instead). But other errors are still there:
Traceback (most recent call last):
File "/usr/local/share/starcal2/scal2/plugin_man.py", line 154, in loadExternalPlugin
mod = __import__(name)
File "/usr/share/starcal2/plugins/pray_times.py", line 30, in <module>
from tzlocal import get_localzone
ImportError: No module named tzlocal
You can ignore the plugin error.
But about the last error (No module named tzlocal): Try this command: sudo chmod -R 755 /usr/share/starcal2 And run the program again
But how did you install the program? Did you use install-debian? That shouldn't be happening
The same result :(
All folders owner and group was set to root so I tried sudo chown -R my_user_name:root /usr/share/starcal2
but again nothing.
Python version is 2.7.6
if it helps.
Please download the latest codes again: http://github.com/ilius/starcal/tarball/master and install and test it again
Here the result:
$ starcal2
error while loading plugin "/usr/share/starcal2/plugins/iran-holidays.hol": no such file!
Traceback (most recent call last):
File "/usr/local/share/starcal2/scal2/plugin_man.py", line 154, in loadExternalPlugin
mod = __import__(name)
File "/usr/share/starcal2/plugins/pray_times.py", line 52, in <module>
from scal2.time_utils import getUtcOffsetByJd, getUtcOffsetCurrent, getEpochFromJd
ImportError: cannot import name getUtcOffsetByJd
Before the error, a window appears on screen and disappears immediately. It's so fast that I can't find out its content. Actually it's just the shadow of the window.
I'm new to Python but I want to debug this error. Would you please tel me where can I begin from?
I opened up /usr/share/starcal2
folder and try to change the code and see the results.
Make sure python-appindicator package is installled
And open file ~/.starcal2/ui.conf and make sure that this is set: useAppIndicator = True
python-appindicator wasn't installed. Starcal now works correctly after installing it. Thanks so much.
Of course it could be checked by the installer. Is it OK to add depends+=('python-appindicator')
here?
I added a new script install-ubuntu
On Tue, May 13, 2014 at 12:19 PM, Amir Karimi notifications@github.comwrote:
python-appindicator wasn't installed. Starcal now works correctly after installing it. Thanks so much.
Of course it could be checked by the installer. Is it OK to add depends+=('python-appindicator') herehttps://github.com/ilius/starcal/blob/master/install-debian#L47 ?
— Reply to this email directly or view it on GitHubhttps://github.com/ilius/starcal/issues/9#issuecomment-42926689 .
Yes, you can do that for you own. I was trying to check in install-debian if the user is using indicator or not. but that checking apparently is not working on the latest Ubuntu
On Tue, May 13, 2014 at 12:22 PM, Saeed Rasooli saeed.gnu@gmail.com wrote:
I added a new script install-ubuntu
On Tue, May 13, 2014 at 12:19 PM, Amir Karimi notifications@github.comwrote:
python-appindicator wasn't installed. Starcal now works correctly after installing it. Thanks so much.
Of course it could be checked by the installer. Is it OK to add depends+=('python-appindicator') herehttps://github.com/ilius/starcal/blob/master/install-debian#L47 ?
— Reply to this email directly or view it on GitHubhttps://github.com/ilius/starcal/issues/9#issuecomment-42926689 .
I didn't notice lines 48-50. They are commented!
I commented it because it wasn't working
On Tue, May 13, 2014 at 12:26 PM, Amir Karimi notifications@github.comwrote:
I didn't notice lines (48-50)[ https://github.com/ilius/starcal/blob/master/install-debian#L48-L50]. They are commented!
— Reply to this email directly or view it on GitHubhttps://github.com/ilius/starcal/issues/9#issuecomment-42927194 .
I keep my home folder in another partition, so after installing Ubuntu 14.04 starcal2 was there. I tried uninstall process then installed it again. But I get some errors.
Here the installation log:
And here the errors I get:
Maybe I should clear some files or directories to allow a clean installation.