Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OSX Issues #229

Closed
amatern opened this issue Jun 30, 2014 · 7 comments
Closed

Mac OSX Issues #229

amatern opened this issue Jun 30, 2014 · 7 comments
Labels
duplicate This issue or pull request already exists

Comments

@amatern
Copy link

amatern commented Jun 30, 2014

Tried installing (as sudo) on MacOSX:

Python 2.7.5
$ pip install jrnl --upgrade
Requirement already up-to-date: jrnl in /Library/Python/2.7/site-packages
Requirement already up-to-date: parsedatetime>=1.2 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: pytz>=2013b in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: six>=1.6.1 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: tzlocal>=1.1 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: keyring>=3.3 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: python-dateutil>=2.2 in /Library/Python/2.7/site-packages (from jrnl)
Cleaning up...

#jrnl 

Traceback (most recent call last):
  File "/usr/local/bin/jrnl", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: six>=1.6.1

I'm a Mac newbie so let me know if I made some horrible mistake....

@chr0n1x
Copy link

chr0n1x commented Jun 30, 2014

sudo?
I'm running 2.7.5 too.

@Rydgel
Copy link

Rydgel commented Jul 1, 2014

Since you are using the Python bundled with Mac OS X you need to use sudo when installing jrnl.

sudo pip install jrnl --upgrade

@amatern
Copy link
Author

amatern commented Jul 1, 2014

I did install with sudo ...

sudo pip install jrnl --upgrade
Password:
Requirement already up-to-date: jrnl in /Library/Python/2.7/site-packages
Requirement already up-to-date: parsedatetime>=1.2 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: pytz>=2013b in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: six>=1.6.1 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: tzlocal>=1.1 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: keyring>=3.3 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already up-to-date: python-dateutil>=2.2 in /Library/Python/2.7/site-packages (from jrnl)
Cleaning up...

No worries, I'm trying to upgrade my python installation, and will post how I do...

@amatern
Copy link
Author

amatern commented Jul 1, 2014

Weird ...

I upgraded python to the latest and greatest from www.python.org (2.7.7)
I uninstalled jrnl
Reinstalled jrnl
Still no dice:

sudo pip uninstall jrnl
Password:
Uninstalling jrnl:
/Library/Python/2.7/site-packages/jrnl-1.8.4-py2.7.egg-info
/Library/Python/2.7/site-packages/jrnl/DayOneJournal.py
/Library/Python/2.7/site-packages/jrnl/DayOneJournal.pyc
/Library/Python/2.7/site-packages/jrnl/Entry.py
/Library/Python/2.7/site-packages/jrnl/Entry.pyc
/Library/Python/2.7/site-packages/jrnl/Journal.py
/Library/Python/2.7/site-packages/jrnl/Journal.pyc
/Library/Python/2.7/site-packages/jrnl/init.py
/Library/Python/2.7/site-packages/jrnl/init.pyc
/Library/Python/2.7/site-packages/jrnl/cli.py
/Library/Python/2.7/site-packages/jrnl/cli.pyc
/Library/Python/2.7/site-packages/jrnl/exporters.py
/Library/Python/2.7/site-packages/jrnl/exporters.pyc
/Library/Python/2.7/site-packages/jrnl/install.py
/Library/Python/2.7/site-packages/jrnl/install.pyc
/Library/Python/2.7/site-packages/jrnl/util.py
/Library/Python/2.7/site-packages/jrnl/util.pyc
/usr/local/bin/jrnl
Proceed (y/n)? y
Successfully uninstalled jrnl
u116490-tpm-as-macbook-pro:~ Andreas_Matern$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
u116490-tpm-as-macbook-pro:~ Andreas_Matern$ python --version
Python 2.7.7
u116490-tpm-as-macbook-pro:~ Andreas_Matern$ pip install jrnl
Downloading/unpacking jrnl
Downloading jrnl-1.8.4.tar.gz
Running setup.py (path:/private/var/folders/pw/fw88d1ss46gbtfw7zc0jy3qw0000gn/T/pip_build_Andreas_Matern/jrnl/setup.py) egg_info for package jrnl

Requirement already satisfied (use --upgrade to upgrade): parsedatetime>=1.2 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2013b in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): six>=1.6.1 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): tzlocal>=1.1 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): keyring>=3.3 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.2 in /Library/Python/2.7/site-packages (from jrnl)
Installing collected packages: jrnl
Running setup.py install for jrnl
error: could not create '/Library/Python/2.7/site-packages/jrnl': Permission denied
Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/private/var/folders/pw/fw88d1ss46gbtfw7zc0jy3qw0000gn/T/pip_build_Andreas_Matern/jrnl/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/pw/fw88d1ss46gbtfw7zc0jy3qw0000gn/T/pip-xZqXSj-record/install-record.txt --single-version-externally-managed --compile:
running install

running build

running build_py

creating build

creating build/lib

creating build/lib/jrnl

copying jrnl/init.py -> build/lib/jrnl

copying jrnl/cli.py -> build/lib/jrnl

copying jrnl/DayOneJournal.py -> build/lib/jrnl

copying jrnl/Entry.py -> build/lib/jrnl

copying jrnl/exporters.py -> build/lib/jrnl

copying jrnl/install.py -> build/lib/jrnl

copying jrnl/Journal.py -> build/lib/jrnl

copying jrnl/util.py -> build/lib/jrnl

running install_lib

creating /Library/Python/2.7/site-packages/jrnl

error: could not create '/Library/Python/2.7/site-packages/jrnl': Permission denied


Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/private/var/folders/pw/fw88d1ss46gbtfw7zc0jy3qw0000gn/T/pip_build_Andreas_Matern/jrnl/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/pw/fw88d1ss46gbtfw7zc0jy3qw0000gn/T/pip-xZqXSj-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/pw/fw88d1ss46gbtfw7zc0jy3qw0000gn/T/pip_build_Andreas_Matern/jrnl
Storing debug log for failure in /Users/Andreas_Matern/Library/Logs/pip.log

Tried with sudo pip install jrnl

u116490-tpm-as-macbook-pro:~ Andreas_Matern$ sudo pip install jrnl
Downloading/unpacking jrnl
Downloading jrnl-1.8.4.tar.gz
Running setup.py (path:/private/tmp/pip_build_root/jrnl/setup.py) egg_info for package jrnl

Requirement already satisfied (use --upgrade to upgrade): parsedatetime>=1.2 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2013b in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): six>=1.6.1 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): tzlocal>=1.1 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): keyring>=3.3 in /Library/Python/2.7/site-packages (from jrnl)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.2 in /Library/Python/2.7/site-packages (from jrnl)
Installing collected packages: jrnl
Running setup.py install for jrnl

Installing jrnl script to /usr/local/bin

Successfully installed jrnl
Cleaning up...
u116490-tpm-as-macbook-pro:~ Andreas_Matern$ jrnl
Traceback (most recent call last):
File "/usr/local/bin/jrnl", line 5, in
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in
working_set.require(requires)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: six>=1.6.1
u116490-tpm-as-macbook-pro:~ Andreas_Matern$ sudo jrnl
Traceback (most recent call last):
File "/usr/local/bin/jrnl", line 5, in
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in
working_set.require(requires)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: six>=1.6.1
u116490-tpm-as-macbook-pro:~ Andreas_Matern$

@grplyler
Copy link
Contributor

grplyler commented Jul 2, 2014

When i installed pip i didn't have to use sudo with pip and it worked fine.
(I installed with python setup.py install later tho)
I would definitely update to python (2.7.7) from python.org. Their packager does a pretty good job
of handle all the paths. The Apple version of python its severely decrepit.

@maebert
Copy link
Contributor

maebert commented Jul 2, 2014

Hi, this is a known issue with one of the dependencies. It's caused by having two different python installations; see #160 and #172, #182 and #190 for details.

The best work-around is to download the source as a zip file, extract it and run python setup.py install in there. Let me know if that helps!

Alternatively (but not recommended), ty easy_install jrnl, or follow @james2doyle's advice.

@amatern
Copy link
Author

amatern commented Jul 2, 2014

I followed @james2doyle's advice and it worked flawlessly thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants