Closed sakhan007 closed 8 years ago
Your example runs fine with the current version of doconce. Looking at the ssol +=
construction in the line that aborts the program, I realize that this must be an old doconce installation.
I am using doconce under anaconda, please request Johannes to upload the updates.
I strongly recommend to clone doconce directly from github and not rely on the conda package which will always be behind. As long as you have anaconda doconce with all its dependencies, just do git clone https://github.com/hplgit/doconce.git
to make the doconce
directory. Then update by
cd doconce
git pull origin master
sudo python setup.py install
Is using sudo necessary in this case??
The problem is that though which python
returns /home/sohail/anaconda/envs/doc27/bin/python
but sudo which python
returns /usr/bin
and if I use sudo python setup.py install
, the python at /usr/bin
would be used to do the installation, and this python has no access to all the dependencies installed by the annaconda's doconce.
You are absolutely correct: If you have a local private Anaconda installation, as you have, you should not use the system-wise python
that sudo calls. Hope it works now.
Yes its working now. Thank you!!!
One question though. I couldn't figure out the use of statements like file=answers.pdf, solution=solution.do.txt
in my main.do.txt under =====Exercise: ...=====
, as it appears that there are no commands like extract_solutions
, extract_answers
Not sure what you mean... file=...
is used to specify a filename for the exercise. solution=...
just leads to a comment (for now, it was intended as a link, but we use !bsol, !esol instead, perhaps with including text snippets from a solution file via # #include "solution.do.txt" fromto: start@stop
).
Here is my source file: http://pastebin.com/QBTKKp59 Would you please help me in getting rid of the following error?