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

DocOnce is available as a conda package on Linux and Mac #25

Closed
hplgit opened this issue May 14, 2015 · 6 comments
Closed

DocOnce is available as a conda package on Linux and Mac #25

hplgit opened this issue May 14, 2015 · 6 comments

Comments

@hplgit
Copy link
Owner

hplgit commented May 14, 2015

You can just do

conda install --channel johannr doconce

to get a full installation of DocOnce.
(Thanks to Johannes Ring who made the packages!)

@xiaoweiz
Copy link

Not compatible with python 3?

conda install --channel johannr doconce
Fetching package metadata: ......
Solving package specifications: ..
Error: Unsatisfiable package specifications.
Generating hint:
[1/3                 ]|#################                                  |  33%

Hint: the following packages conflict with each other:
  - doconce
  - python 3.4*

@hplgit
Copy link
Owner Author

hplgit commented May 15, 2015

No, doconce is v2.7. It shouldn't be difficult to port it to v3.4, but it hasn't been done, mainly because it targets science writers who are usually stuck with v2.7 for some third-party computational libraries.

@zaxebo1
Copy link

zaxebo1 commented Jun 28, 2015

almost all the third-party computational libraries are now python 3. Many libraries support running on python 2 and python3 both.
I am really curious , which libraries stop you from doing so (supporting python 2.7 and python 3.4 simultaneously). Especially with single file library of "six" ( see https://pypi.python.org/pypi/six ), which is compatibility library between python 2 and python 3). For example, mako templates runs upon starting from python 2.6 till python 3.4 - all simultaneously

Believe, I am using reST and sphinx , just because doconce is python 2.7. I strongly believe that you will get more contributors and users , if it is running on python 3.4 and python 2.7 simultaneously.

I have opened a new issue #38 for this porting to python 3 subsection, please reply on that thread regarding this porting.

@MartinHeroux
Copy link

[Relatively new to all this]

Enjoyed your python book greatly and have used doconce on a work computer after some fiddling (that I can't seem to reproduce). I tried running the bash script but get many errors, so thought I would try using conda. Below is a description of what I encountered:

I use Linux (Mint) and Anaconda for python 3.4. I realise that the current conda package is for python 2.7, but I was wondering if there was a way to install doconce and all its dependencies when using a python 2.7 environment from Anaconda. I have tried this and got the same error message as when I tried to install it with the default python 3.4 from Anaconda. Is this an Anaconda issue?

First I used:

source activate python2 # This switches the Anaconda env to python2

I then went to Anaconda3 -> env -> python2 -> bin and ran the following command:

sudo ./conda install --channel johannr doconce
Fetching package metadata: ......
Solving package specifications: ..
Error: Unsatisfiable package specifications.
Generating hint:
[ COMPLETE ] | 100%
Hint: the following packages conflict with each other:

  • doconce
  • python 3.4*
    Use 'conda info doconce' etc. to see the dependencies for each package.

Any input would be appreciated. I might resort to installing Anaconda 2.7 and setting up a python 3.4 env, but I typically work in 3.4 so would rather not.

@johannesring
Copy link
Collaborator

@MartinHeroux - Maybe the problem is that you are using sudo? When running a command using sudo, you will have a different environment than when you run a command as your normal user.

@MartinHeroux
Copy link

Thank you for the quick reply. You were correct, simply running the install command without the sudo did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants