pip install swh.core on windows machines does not install properly
Sorry for my very late reply, and thank you for your very useful support! I have just implemented our script which requires the URL of a public repository as an input and mainly works as follows:
- Repository local clone
- SWHID local computation by shw tool ( https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html#implementation )
- Repository save by SH API, save method ( https://archive.softwareheritage.org/api/1/origin/save/doc/)
- SH URL revolve by SH API, resolve method ( https://archive.softwareheritage.org/api/1/resolve/doc/) - this is used to get the archive URL when available and publish it on our website
By exploiting your staging application, I made some tests and our script works as expected from my *Linux-Ubuntu *machine.
Unfortunately, we need to use it from a Windows 10 64bit machine, where python 3.8.5 and pip 21.3.1 are already installed. We tried to install the swh tool to locally compute the repository SWHID, but the installation fails with the following error:
Installing collected packages: swh.coreERROR: Could not install packages due to an OSError: [Errno 22] Invalid argument: 'D:\SYNC_DATA\Attivita_Scientifica\GRSI\GRSI_Env_Win64\python\Lib\site-packages\swh\core\tests\data\https_www.reference.com http://https_www.reference.com\web,q=What+Is+an+Example+of+a+URL?,qo=contentPageRelatedSearch,o=600605,l=dir,sga=1'
Do you have any idea and/or suggestion on how to proceed to solve the issue and install swh package on our Windows machine?
Best Regards,
Migrated from T3786 (view on Phabricator)