erc-dharma / tfd-nusantara-philology

DHARMA project, task force D
Creative Commons Attribution 4.0 International
3 stars 1 forks source link

bug #136

Open andreaacri opened 9 months ago

andreaacri commented 9 months ago

I'm correcting some problematic code snippets (omissions) in the PYñ file

https://erc-dharma.github.io/tfd-nusantara-philology/output/critical-edition/html/DHARMA_CritEdKakavinParthayajna.html.

but I cannot see the display as the xml does not validates and I get the following error:

Engine name: ISO Schematron Severity: fatal Description: Internal error evaluating template rule at line 468 in module https://raw.githubusercontent.com/erc-dharma/project-documentation/master/schema/latest/DHARMA_CritEdSchema.rng

michaelnmmeyer commented 9 months ago

I cannot reproduce the error. Can you try to run a manual build, and paste here error messages, if any? To do so, open a terminal, move to the tfd-nusantara-philology, and run:

ant -buildfile build-critical.xml

This normally takes a few minutes.

andreaacri commented 9 months ago

Hi Michael

I have not been able to do that, as I get the error messages "/Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology: is a directory » or « permission denied ».

Le 27 déc. 2023 à 19:58, Michaël Meyer @.***> a écrit :

I cannot reproduce the error. Can you try to run a manual build, and paste here error messages, if any? To do so, open a terminal, move to the tfd-nusantara-philology, and run:

ant -buildfile build-critical.xml This normally takes a few minutes.

— Reply to this email directly, view it on GitHub https://github.com/erc-dharma/tfd-nusantara-philology/issues/136#issuecomment-1870553183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJL4KBW4QYCZLG4DLMCQXXTYLRVT7AVCNFSM6AAAAABBEFB2NOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZQGU2TGMJYGM. You are receiving this because you authored the thread.

michaelnmmeyer commented 9 months ago

Given the directory structure, you would need:

cd "/Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology"
ant -buildfile build-critical.xml

You might need to install ant (see here).

Speaking more generally, you probably have stale files somewhere. Is your project-documentation directory up-to-date with Github? When validating documents, are you clicking on the "Validate" menu entry instead of "Validate (cached)"?

andreaacri commented 9 months ago

I installed ant (I hope) and here is the error message;

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. MacBook-Pro-9:tfd-nusantara-philology andreaacri81$ sudo port install apache-ant Password: Error: Error: No Xcode installation was found. Error: Please install Xcode and/or run xcode-select to specify its location. Error: ---> Fetching archive for apache-ant ---> Attempting to fetch apache-ant-1.10.14_0.any_any.noarch.tbz2 from https://fra.de.packages.macports.org/apache-ant ---> Attempting to fetch apache-ant-1.10.14_0.any_any.noarch.tbz2.rmd160 from https://fra.de.packages.macports.org/apache-ant ---> Installing apache-ant @1.10.14_0 ---> Activating apache-ant @1.10.14_0 ---> Cleaning apache-ant MacBook-Pro-9:tfd-nusantara-philology andreaacri81$ cd "/Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology" MacBook-Pro-9:tfd-nusantara-philology andreaacri81$ ant -buildfile build-critical.xml

Buildfile: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml [echo] git clone [exec] xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun [exec] Result: 1 [echo] git pull

BUILD FAILED /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:32: The following error occurred while executing this line: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:27: The following error occurred while executing this line: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:11: The directory /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/project-documentation does not exist

Total time: 1 second MacBook-Pro-9:tfd-nusantara-philology andreaacri81$ MacBook-Pro-9:tfd-nusantara-philology andreaacri81$

Le 28 déc. 2023 à 11:57, Michaël Meyer @.***> a écrit :

Given the directory structure, you would need:

cd "/Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology" ant -buildfile build-critical.xml You might need to install ant (see here https://stackoverflow.com/questions/3222804/how-can-i-install-apache-ant-on-mac-os-x).

Speaking more generally, you probably have stale files somewhere. Is your project-documentation directory up-to-date with Github? When validating documents, are you clicking on the "Validate" menu entry instead of "Validate (cached)"?

— Reply to this email directly, view it on GitHub https://github.com/erc-dharma/tfd-nusantara-philology/issues/136#issuecomment-1871055700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJL4KBQGVSC4A7SPQOCJUBLYLVGALAVCNFSM6AAAAABBEFB2NOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGA2TKNZQGA. You are receiving this because you authored the thread.

michaelnmmeyer commented 9 months ago

Apparently you also need to install xcode (see here)

It might be easier if you show me on Zoom, though, when time allows.

andreaacri commented 9 months ago

Thanks! For some reason, I’m getting an 80+ hours download time for the xcode command line tools. I’ll try again and let you know.

Le 28 déc. 2023 à 12:58, Michaël Meyer @.***> a écrit :

Apparently you also need to install xcode (see here https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a)

It might be easier if you show me on Zoom, though, when time allows.

— Reply to this email directly, view it on GitHub https://github.com/erc-dharma/tfd-nusantara-philology/issues/136#issuecomment-1871099367, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJL4KBX6GPMOJFVQ2J23O3DYLVNH7AVCNFSM6AAAAABBEFB2NOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGA4TSMZWG4. You are receiving this because you authored the thread.

andreaacri commented 9 months ago

OK, installed it and got the following error message:

MacBook-Pro-9:tfd-nusantara-philology andreaacri81$ ant -buildfile build-critical.xml Buildfile: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml [echo] git clone [exec] Cloning into 'project-documentation'... [exec] error: 4513 bytes of body are still expected [exec] fetch-pack: unexpected disconnect while reading sideband packet [exec] fatal: early EOF [exec] fatal: fetch-pack: invalid index-pack output [exec] Result: 128 [echo] git pull

BUILD FAILED /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:32: The following error occurred while executing this line: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:27: The following error occurred while executing this line: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:11: The directory /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/project-documentation does not exist

The project documentation folder is definitely there;m I updated it and do not validate with the « cache » option.

Le 28 déc. 2023 à 15:04, Andrea Acri @.***> a écrit :

Thanks! For some reason, I’m getting an 80+ hours download time for the xcode command line tools. I’ll try again and let you know.

Le 28 déc. 2023 à 12:58, Michaël Meyer @.***> a écrit :

Apparently you also need to install xcode (see here https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a)

It might be easier if you show me on Zoom, though, when time allows.

— Reply to this email directly, view it on GitHub https://github.com/erc-dharma/tfd-nusantara-philology/issues/136#issuecomment-1871099367, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJL4KBX6GPMOJFVQ2J23O3DYLVNH7AVCNFSM6AAAAABBEFB2NOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGA4TSMZWG4. You are receiving this because you authored the thread.

andreaacri commented 9 months ago

well I correct myself: the « project documentation » directory exists, but it is not within « tfd-nusantara-philology »….

Le 28 déc. 2023 à 15:50, Andrea Acri @.***> a écrit :

OK, installed it and got the following error message:

MacBook-Pro-9:tfd-nusantara-philology andreaacri81$ ant -buildfile build-critical.xml Buildfile: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml [echo] git clone [exec] Cloning into 'project-documentation'... [exec] error: 4513 bytes of body are still expected [exec] fetch-pack: unexpected disconnect while reading sideband packet [exec] fatal: early EOF [exec] fatal: fetch-pack: invalid index-pack output [exec] Result: 128 [echo] git pull

BUILD FAILED /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:32: The following error occurred while executing this line: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:27: The following error occurred while executing this line: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/build-critical.xml:11: The directory /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/project-documentation does not exist

The project documentation folder is definitely there;m I updated it and do not validate with the « cache » option.

Le 28 déc. 2023 à 15:04, Andrea Acri @.***> a écrit :

Thanks! For some reason, I’m getting an 80+ hours download time for the xcode command line tools. I’ll try again and let you know.

Le 28 déc. 2023 à 12:58, Michaël Meyer @.***> a écrit :

Apparently you also need to install xcode (see here https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a)

It might be easier if you show me on Zoom, though, when time allows.

— Reply to this email directly, view it on GitHub https://github.com/erc-dharma/tfd-nusantara-philology/issues/136#issuecomment-1871099367, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJL4KBX6GPMOJFVQ2J23O3DYLVNH7AVCNFSM6AAAAABBEFB2NOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGA4TSMZWG4. You are receiving this because you authored the thread.

arlogriffiths commented 9 months ago

has the issue been resolved now? if so, please close it.

andreaacri commented 9 months ago

The issue hasn't been resolved yet (Michaël is working on it), but the error is now harmless as the .html page is updated as per normal even if validation fails (at my end only, so it may be a localised issue). I will close it when the error disappears altogether.