examples/sample-article/sample-article.xml
xsl/pretext-latex.xsl
Please commit your changes or stash them before you merge.
Aborting"

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/e4da09c5-6c9d-407d-bae4-9af6afbf3325n%40googlegroups.com.
% pretext --version
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/watchdog/observers/__init__.py:71: UserWarning: Failed to import fsevents. Fall back to kqueue
warnings.warn("Failed to import fsevents. Fall back to kqueue")
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext", line 5, in <module>
from pretext.cli import main
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretext/cli.py", line 14, in <module>
from . import utils, templates, VERSION, CORE_COMMIT
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretext/utils.py", line 19, in <module>
from lxml import etree as ET
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/39eaeeed-1e81-4e32-ba17-d78119e39388n%40googlegroups.com.
On branch dev
Your branch is behind 'origin/dev' by 116 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
and a long list of files. Then I did "git stash" , then "git pull". This time the "pull" completed without aborting. But when I tried to compiled a test file, the console log suggests that I do "git switch master" then "git pull"---I don't understand why at that point it suggested that I do "git switch master". However, after this is done and I tried to compile a test file, the console is complaining "warning: failed to load external entity "/Users/zchan/Documents/mathbook/xsl/mathbook-html.xsl"
cannot parse /Users/zchan/Documents/mathbook/xsl/mathbook-html.xsl/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/watchdog/observers/__init__.py:71: UserWarning: Failed to import fsevents. Fall back to kqueue
warnings.warn("Failed to import fsevents. Fall back to kqueue")
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext", line 5, in <module>
from pretext.cli import main
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretext/cli.py", line 14, in <module>
from . import utils, templates, VERSION, CORE_COMMIT
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretext/utils.py", line 19, in <module>
from lxml import etree as ET
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/dfbfdfe2-08f8-4e7f-a30b-94a96d01fe63n%40googlegroups.com.
warning: is configured to use 0.7.0. Consider either installing
warning: CLI version 0.7.0 or changing `requirements.txt` to match 0.8.2a4.')
Again when I chose to use Chrome to open the relevant html file there manually, the file looks fine. This may have to do with the line "open "$HTMLFILE" " in the TeXShop's PreTeXt-Html.engine file? But I don't know what that line does. The instruction in the minimal example main.ptx for processing with xsltproc still uses the style sheet in the mathbook directory: xsltproc PATH_TO/mathbook/xsl/pretext-html.xsl source/main.ptx?WARNING: Skipping pretext as it is not installed.
Found existing installation: pretextbook 0.8.2a4
Uninstalling pretextbook-0.8.2a4:
Would remove:
/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretext/*
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretextbook-0.8.2a4.dist-info/*
Proceed (Y/n)? y
ERROR: Exception:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 813, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext' -> '/private/var/folders/gl/5v_gndc978984dhdlht9fqn40000gp/T/pip-uninstall-baukojys/pretext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/commands/uninstall.py", line 98, in run
uninstall_pathset = req.uninstall(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 658, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py", line 373, in remove
moved.stash(path)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py", line 271, in stash
renames(path, new_path)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/utils/misc.py", line 311, in renames
shutil.move(old, new)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 834, in move
os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext'
zchan@MacBook-Air pretext % python3 -m pip uninstall pretext pretextbook
WARNING: Skipping pretext as it is not installed.
Found existing installation: pretextbook 0.8.2a4
Uninstalling pretextbook-0.8.2a4:
Would remove:
/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretext/*
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretextbook-0.8.2a4.dist-info/*
Proceed (Y/n)? y
ERROR: Exception:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 813, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext' -> '/private/var/folders/gl/5v_gndc978984dhdlht9fqn40000gp/T/pip-uninstall-8vqhzk7j/pretext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/commands/uninstall.py", line 98, in run
uninstall_pathset = req.uninstall(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 658, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py", line 373, in remove
moved.stash(path)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py", line 271, in stash
renames(path, new_path)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/utils/misc.py", line 311, in renames
shutil.move(old, new)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 834, in move
os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext'
5. The pretext --version check continues to indicate some architecture issues? % pretext --version
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/watchdog/observers/__init__.py:71: UserWarning: Failed to import fsevents. Fall back to kqueue
warnings.warn("Failed to import fsevents. Fall back to kqueue")
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/pretext", line 5, in <module>
from pretext.cli import main
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretext/cli.py", line 14, in <module>
from . import utils, templates, VERSION, CORE_COMMIT
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pretext/utils.py", line 19, in <module>
from lxml import etree as ET
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
6. When I test ran "pretext build web" in the source directory for the minimal example, I got the same error message as above.