OS X package?

68 views
Skip to first unread message

Dan

unread,
Mar 11, 2013, 5:22:45 PM3/11/13
to eventandt...@googlegroups.com
Are there any OS X users who use the dmg package file?  I'm thinking of not producing/uploading it any more if there are no users.

By the way, etm_qt is now listed on the python package index (PyPi) and can be installed/updated using pip and easy_install.

Thanks,
Dan

lawquest

unread,
Mar 11, 2013, 11:19:59 PM3/11/13
to eventandt...@googlegroups.com
Could you put the pip and easy_install instructions into the install manual when you get a chance?  I have forgotten them.  I attempted to install etm 1.34 my regular way (navigate to vector:/~/src/etm2-testing/etm_qt-2.0.134) and run "python setup.py install" but I get etm 1.31 not 1.34.

thanks

arnen

unread,
Mar 12, 2013, 1:09:37 AM3/12/13
to eventandt...@googlegroups.com


On Tuesday, 12 March 2013 08:22:45 UTC+11, Dan wrote:
Are there any OS X users who use the dmg package file?  I'm thinking of not producing/uploading it any more if there are no users.

Hi I would prefer to not have to install and maintain a QT installation - PITA just for one app...


Daniel Graham

unread,
Mar 12, 2013, 6:56:18 AM3/12/13
to eventandt...@googlegroups.com
Ok, thanks. I just wanted to be sure that someone used it.

-Dan
--
You received this message because you are subscribed to the Google Groups "Event and Task Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eventandtaskman...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Daniel Graham

unread,
Mar 12, 2013, 9:09:12 AM3/12/13
to eventandt...@googlegroups.com
I'll add instructions to INSTALL for the next release. Meanwhile:

$ sudo pip install -U etm_qt

or

$ sudo easy_install -U etm_qt

For initial installations, the -U can be omitted.

lawquest

unread,
Mar 12, 2013, 12:04:12 PM3/12/13
to eventandt...@googlegroups.com
Thanks.  I still get ver 1.31 rather than 1.34.

John

Daniel Graham

unread,
Mar 12, 2013, 2:13:03 PM3/12/13
to eventandt...@googlegroups.com
What do you get from the following?

$ which etm_qt.py

lawquest

unread,
Mar 12, 2013, 2:23:09 PM3/12/13
to eventandt...@googlegroups.com
johwhi:$ which etm_qt.py
/usr/bin/etm_qt.py

/usr/bin/etm_qt.py shows 182 bites with date of 3/12/2013 at 09:01:51 AM 

john

Daniel Graham

unread,
Mar 12, 2013, 2:34:43 PM3/12/13
to eventandt...@googlegroups.com
My guess is that you sometimes use sudo and sometimes don't so you wind up with different versions in different places in your path. What do you get from locate?

$ locate etm_qt.py

lawquest

unread,
Mar 12, 2013, 4:45:23 PM3/12/13
to eventandt...@googlegroups.com
Here is screenshot:

All of the rest of the locate page (not shown) refers to my misc&trash&oldversions folder.  

I just loaded new ver 136 as follows:

vector://home/johwhi
root:# easy_install -U etm_qt 
Searching for etm-qt
Reading http://pypi.python.org/simple/etm_qt/
Reading http://people.duke.edu/~dgraham/etmqt
Best match: etm-qt 2.0.136
Downloading http://people.duke.edu/~dgraham/etmqt/etm_qt-2.0.136.tar.gz
Processing etm_qt-2.0.136.tar.gz
Running etm_qt-2.0.136/setup.py -q bdist_egg --dist-dir /tmp/easy_install-sCvNBj/etm_qt-2.0.136/egg-dist-tmp-2NjxGh
zip_safe flag not set; analyzing archive contents...
Removing etm-qt 2.0.134 from easy-install.pth file
Adding etm-qt 2.0.136 to easy-install.pth file
Installing etm_qt.py script to /usr/bin

Installed /usr/lib/python2.7/site-packages/etm_qt-2.0.136-py2.7.egg
Processing dependencies for etm-qt
Finished processing dependencies for etm-qt
vector://home/johwhi
root:# 


However  F2 still shows I am still using 1.31 and F3 shows that a newer version (2.0.136) is available. 


I don't think the situation results from my switching to the easy_install loader as it first happened while I was still downloading the file from the website and installing with python setup.py install.


John

Daniel Graham

unread,
Mar 12, 2013, 4:51:56 PM3/12/13
to eventandt...@googlegroups.com
Why don't you try using sudo instead of becoming root?

lawquest

unread,
Mar 12, 2013, 6:34:11 PM3/12/13
to eventandt...@googlegroups.com
Here is what happens when I try sudo on my slackware system as currently configured:

vector:/~
johwhi:$ sudo easy_install -U etm_qt
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try again.
sudo: 3 incorrect password attempts
vector:/~
johwhi:$ sudo easy_install -U etm_qt
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, user johwhi is not allowed to execute '/usr/bin/easy_install -U etm_qt' as root on vector.Linux.net.
vector:/~
johwhi:$ 


I then did a search on google and found that it (using sudo in slackware) is  possible (http://gnu-linux-slackware.blogspot.com/2009/05/adding-users-to-sudoers-file.html, and also http://teknoteknik.wordpress.com/tag/sudo-vs-root/).  I will try that if that is only choice and hope it works.  However, I note that during all my time with etm1 and with the new etm until just a day or two ago, I could load the new etm versions without using sudo. 

I just tried installing ver 136 the same way I installed all earlier versions of the new etm.  Here is the result:  (As you can see, the next-to-last line shows a zip error and, after doing this, F2 still shows me as using ver 131)
vector://home/johwhi/src/etm2-testing/etm_qt-2.0.136
root:# python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to etm_qt.egg-info/requires.txt
writing etm_qt.egg-info/PKG-INFO
writing top-level names to etm_qt.egg-info/top_level.txt
writing dependency_links to etm_qt.egg-info/dependency_links.txt
reading manifest file 'etm_qt.egg-info/SOURCES.txt'
writing manifest file 'etm_qt.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/etmQt
copying etmQt/etmDiff.py -> build/lib/etmQt
copying etmQt/ui_etmSearch.py -> build/lib/etmQt
copying etmQt/ui_etmCalendars.py -> build/lib/etmQt
copying etmQt/ui_etmList.py -> build/lib/etmQt
copying etmQt/ui_etmHelp.py -> build/lib/etmQt
copying etmQt/etmData.py -> build/lib/etmQt
copying etmQt/v.py -> build/lib/etmQt
copying etmQt/ui_etmView.py -> build/lib/etmQt
copying etmQt/ui_etmDetails.py -> build/lib/etmQt
copying etmQt/etmEditor.py -> build/lib/etmQt
copying etmQt/ui_etmCalendar.py -> build/lib/etmQt
copying etmQt/etm_rc.py -> build/lib/etmQt
copying etmQt/ui_etmWhich.py -> build/lib/etmQt
copying etmQt/ui_etmBrowser.py -> build/lib/etmQt
copying etmQt/ui_etmEditor.py -> build/lib/etmQt
copying etmQt/etmReport.py -> build/lib/etmQt
copying etmQt/etmVersion.py -> build/lib/etmQt
copying etmQt/ui_etmReport.py -> build/lib/etmQt
copying etmQt/profile.py -> build/lib/etmQt
copying etmQt/qrc_etm.py -> build/lib/etmQt
copying etmQt/__init__.py -> build/lib/etmQt
copying etmQt/etmWeather.py -> build/lib/etmQt
copying etmQt/etmView.py -> build/lib/etmQt
creating build/bdist.linux-i686
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/etmDiff.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmSearch.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmCalendars.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmList.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmHelp.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/etmData.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/v.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmView.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmDetails.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/etmEditor.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmCalendar.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/etm_rc.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmWhich.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmBrowser.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmEditor.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/etmReport.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/etmVersion.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/ui_etmReport.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/profile.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/qrc_etm.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/__init__.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/etmWeather.py -> build/bdist.linux-i686/egg/etmQt
copying build/lib/etmQt/etmView.py -> build/bdist.linux-i686/egg/etmQt
byte-compiling build/bdist.linux-i686/egg/etmQt/etmDiff.py to etmDiff.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmSearch.py to ui_etmSearch.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmCalendars.py to ui_etmCalendars.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmList.py to ui_etmList.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmHelp.py to ui_etmHelp.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/etmData.py to etmData.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/v.py to v.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmView.py to ui_etmView.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmDetails.py to ui_etmDetails.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/etmEditor.py to etmEditor.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmCalendar.py to ui_etmCalendar.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/etm_rc.py to etm_rc.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmWhich.py to ui_etmWhich.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmBrowser.py to ui_etmBrowser.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmEditor.py to ui_etmEditor.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/etmReport.py to etmReport.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/etmVersion.py to etmVersion.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/ui_etmReport.py to ui_etmReport.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/profile.py to profile.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/qrc_etm.py to qrc_etm.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/etmWeather.py to etmWeather.pyc
byte-compiling build/bdist.linux-i686/egg/etmQt/etmView.py to etmView.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
installing scripts to build/bdist.linux-i686/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying and adjusting etm_qt.py -> build/scripts-2.7
changing mode of build/scripts-2.7/etm_qt.py from 644 to 755
creating build/bdist.linux-i686/egg/EGG-INFO/scripts
copying build/scripts-2.7/etm_qt.py -> build/bdist.linux-i686/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-i686/egg/EGG-INFO/scripts/etm_qt.py to 755
copying etm_qt.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying etm_qt.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying etm_qt.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying etm_qt.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying etm_qt.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/etm_qt-2.0.136-py2.7.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing etm_qt-2.0.136-py2.7.egg
Removing /usr/lib/python2.7/site-packages/etm_qt-2.0.136-py2.7.egg
Copying etm_qt-2.0.136-py2.7.egg to /usr/lib/python2.7/site-packages
etm-qt 2.0.136 is already the active version in easy-install.pth
Installing etm_qt.py script to /usr/bin

Installed /usr/lib/python2.7/site-packages/etm_qt-2.0.136-py2.7.egg
Processing dependencies for etm-qt==2.0.136
Traceback (most recent call last):
  File "setup.py", line 42, in <module>
    install_requires=["python-dateutil>=1.5", "PyYaml>=3.10"],
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 76, in run
    self.do_egg_install()
  File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 104, in do_egg_install
    cmd.run()
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 211, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 427, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 478, in install_item
    self.process_distribution(spec, dist, deps)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 519, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 570, in resolve
    requirements.extend(dist.requires(req.extras)[::-1])
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2149, in requires
    dm = self._dep_map
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2141, in _dep_map
    for extra,reqs in split_sections(self._get_metadata(name)):
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2560, in split_sections
    for line in yield_lines(s):
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1854, in yield_lines
    for ss in strs:
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2163, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1181, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1178, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1238, in _get
    return self.loader.get_data(path)
zipimport.ZipImportError: bad local file header in /usr/lib/python2.7/site-packages/etm_qt-2.0.136-py2.7.egg
vector://home/johwhi/src/etm2-testing/etm_qt-2.0.136
root:# 

Daniel Graham

unread,
Mar 12, 2013, 6:37:00 PM3/12/13
to eventandt...@googlegroups.com
With sudo you use your password, not root's password.

lawquest

unread,
Mar 13, 2013, 2:52:40 AM3/13/13
to eventandt...@googlegroups.com
My password doesn't work on sudo, nor does the root password. As explained in the link included with my last post, sudo apparently can be made to work on slackware.  However,  I have used slackware for 10 years and loaded numerous different programs on it and  I do not recall one instance where I had to use sudo to load a program.  

Did you see the "zipimport.ZipImportError: bad local file header in /usr/lib/python2.7/site-packages/etm_qt-2.0.136-py2.7.egg" error at the end of my last post?  Is that the error that you think loading with sudo will correct?

As I said, its not that I am not willing to go learn whatever is needed to do a sudo load.  Rather, if sudo is required for slackware it would be difficult for etm to gain popularity within the slackware crowd (if it be such), being that no other programs that run on slackware require use of sudo.

John

Daniel Graham

unread,
Mar 13, 2013, 6:49:40 AM3/13/13
to eventandt...@googlegroups.com
I've never used Slackware but all the other distributions I've used have either strongly discouraged or forbidden the use of root. While you're in the directory where you ran setup.py install, have you tried just running etm itself either as root or yourself?

$ python etm_qt.py


Dan

unread,
Mar 13, 2013, 9:09:43 AM3/13/13
to eventandt...@googlegroups.com
I would have to be at your computer to figure out what is going on and probably couldn't even then. I have enough trouble with OS X.

Here's a hack that will allow you to use etm without doing a system installation. Create a directory somewhere convenient and call it, say, etm_qt-current.

Unpack the etm_qt tarball into this directory, then create a file named, say,  etmqt somewhere in your path, say in ~/bin/,
with the following contents:

#!/bin/bash
cd <path to your etm_qt-current directory>
if [ "$1" != "" ]; then
    python etm_qt.py $@
else
    python etm_qt.py &
fi

where, of course, you replace <path to your etm_qt-current directory> with the actual path, and make the file executable. You can the get either the command line or gui by running

$ etmqt ?

for the command line or

$ etmqt

for the gui.  Note that you do not need to be root to run this script.

Whenever there's an upgrade, if the normal system installation doesn't work for you, then just replace the contents of your etm_qt-current directory with the contents of the new tarball.

Rodrigo Bistolfi

unread,
Mar 13, 2013, 9:35:57 AM3/13/13
to eventandt...@googlegroups.com

Hi guys, the Slackware crowd (?) uses 'su' instead 'sudo'.
For a system wide install you have to become root with the su command and then follow the installtion procedure as usual (removing 'sudo' from all the commands.)
As Dan pointed, other distros do not activate the root account for security reasons. So, only use this procedure if you trust the source. Anyway, the results should be the same, since sudo is used to upgrade user privileges for copying the needed bits to the proper locations (usually somthing in /usr/lib for python programs.) I would recommend removing manually any etm_qt files under usr/lib/python2.7/site-packages/ directory, download a fresh copy and reinstall. 
The ZipImport error could be caused by a corrupted zip compressed python module, maybe a bad download. Hope this helps!

Regards, Rodrigo


2013/3/13 Dan <dnl...@gmail.com>

lawquest

unread,
Mar 13, 2013, 2:57:29 PM3/13/13
to eventandt...@googlegroups.com
Rodrigo/Dan,

I removed all references to etm, whether folder or file, in my /usr/lib/python2.7/site-packages [being one folder (etmQt) and lots of files] and reloaded ETM using easy_install and I am now up to date (F2 shows 2.0.138).  

Thank you very much.

John 


2013/3/13 Dan <dnl...@gmail.com>
To unsubscribe from this group and stop receiving emails from it, send an email to eventandtaskmanager+unsub...@googlegroups.com.

Dan

unread,
Mar 14, 2013, 8:38:14 AM3/14/13
to eventandt...@googlegroups.com
Rodrigo,

I'd like to add my thanks to John's. Your help is greatly appreciated.

-Dan

Dennis Groves

unread,
Sep 27, 2013, 3:22:11 AM9/27/13
to eventandt...@googlegroups.com
Hello Dan,

Normally I am a lurker and don't jump in much. I discovered ETM 2 or 3 years ago (v891)? 
It was difficult to build but I got it working on my mac and have been using it happily ever since. 

Today I discovered the QT build (do you have a mailing list?), and it was so nice to just drag and drop and be upgraded. 
Incidentally, I may even upgrade my legacy data files, but I am also thinking about starting with a clean slate as well. 
So, I want you to know that I am very grateful for the OSX build, and I definitely used it! 

Now, I realise that it is a major pain backside to produce, as I do some open source software myself, and I know what a pain OSX is to work with. 
However, that development pain is for a painless user experience and it makes the experience of using a product so much better. 
For example, for the first time I maybe able to get my wife to use it now because of how easy it is to install. 

So, please keep up the good work, and I am completely thrilled with the updates to 2.2.1qt! 

Thank you again Dan,

Dennis


On Monday, March 11, 2013 2:22:45 PM UTC-7, Dan wrote:

Dan

unread,
Sep 27, 2013, 7:09:02 AM9/27/13
to eventandt...@googlegroups.com
Dennis,

Thanks very much for the kind words. There is no mail list - I always thought that this discussion group and the home web page would serve that purpose.

If you decide to update some or all of your data files, one2two.py on the home web page does a pretty good job without changing your original files.

I hope your wife becomes a user too. I'm still working on mine.

Best,
Dan

Jeffrey Krzysztow

unread,
Sep 27, 2013, 9:41:38 AM9/27/13
to eventandt...@googlegroups.com
I discovered etm via http://freecode.com/projects/etm and use that to know of new updates, if this is of any use.


--
You received this message because you are subscribed to the Google Groups "Event and Task Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eventandtaskman...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages