Open Anam04anjum opened 3 years ago
Thanks, I can't see an obvious error message. Can you post this on Slack in case others can help.
On Wed, Oct 13, 2021 at 7:10 AM Anam04anjum @.***> wrote:
SYSTEM SPECIFICATION:
- Windows edition:
Windows 8.1 single language.
System:
- processor: Intel(R)Core(TM)i5-4200u CPU @1.60 GHz
- Installed RAM: 4.00 GB
- System Type: 64-bit Operating System, x64-based processor
Ran Command pip install py4ami
Error appeared:
ERROR: Command errored out with exit status 1: 'C:\Users\Kash\AppData\Local\Programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\kash\AppData\Local\Temp\pip-install-ndih5ou4\py4ami_a1d6ef95490e43eda3963037eb414fb2\setup.py'"'"'; file='"'"'C:\Users\kash\AppData\Local\Temp\pip-install-ndih5ou4\py4ami_a1d6ef95490e43eda3963037eb414fb2\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\kash\AppData\Local\Temp\pip-record-xuq_yxh8\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Kash\AppData\Local\Programs\python\python39\Include\py4ami' Check the logs for full command output
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/petermr/crops/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFTCS7SO6N6RH5DXM7RSYLUGUPERANCNFSM5F4LDERA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- Peter Murray-Rust Founder ContentMine.org and Reader Emeritus in Molecular Informatics Dept. Of Chemistry, University of Cambridge, CB2 1EW, UK
Try upgrading pip using pip install --upgrade pip
and then running pip install py4ami
.
Thanks so much. I love the way we can communally answer questions.
On Wed, Oct 13, 2021 at 11:10 AM ankit3699 @.***> wrote:
Try upgrading pip using pip install --upgrade pip and then running pip install py4ami.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/petermr/crops/issues/4#issuecomment-942140958, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFTCS32QGWUQ2CI547MBW3UGVLHRANCNFSM5F4LDERA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- Peter Murray-Rust Founder ContentMine.org and Reader Emeritus in Molecular Informatics Dept. Of Chemistry, University of Cambridge, CB2 1EW, UK
Ankit, I am also getting the same error and I did ran the command pip install --upgrade pip
but still getting the same error
My system is windows 7 32 bit
The problem was with Windows not liking the long directory (build\lib\py4ami\resources\projects\liion4\PMC7048421\sections\0_front\1_article-meta\16_funding-group\0_award-group\0_funding-source\0_institution-wrap\0_institution-id.xml': No such file or directory
)
You might want to look at this article which outlines how to extend the character limit for file paths in Windows before re-running the installation.
You would have to:
regedit
from StartHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
LongPathsEnabled
0
to 1
You can refer to the article for screenshots.
Once this is sorted, re-open the cmd and:
pip uninstall py4ami
pip install py4ami
Thanks for finding the solution, Anuv!
LongPathsEnabled
is not Found.
pip install py4ami
pip install py4ami
error: could not create 'build\lib\py4ami\resources\projects\liion4\PMC7048421\sections\0_front\1_article-meta\16_funding-group\0_award-group\0_funding-source\0_institution-wrap\0_institution-id.xml': No such file or directory