allenai / papermage

library supporting NLP and CV research on scientific papers
https://papermage.org
Apache License 2.0
692 stars 54 forks source link

impossible to get a working install #86

Open v2belleville opened 1 week ago

v2belleville commented 1 week ago

Hi,

As I was getting Error loading "C:\Program Files\Python311\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies. Following this fbgemm-load-error-trying-to-use-pytorch-on-windows I

pip uninstall torch torchvision torchaudio
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0.

Following several no module named ... errors I've installed smashed layoutparser pysbd

Still getting this warning C:\Program Files\Python311\Lib\site-packages\smashed\utils\warnings.py:27: RuntimeWarning: smashed.interfaces.simple is deprecated; import from smashed.mappers instead. cls._warn(message, RuntimeWarning)

and this error :

File C:\Program Files\Python311\Lib\site-packages\portalocker\utils.py:313, in Lock._get_fh(self)
    311 def _get_fh(self) -> typing.IO:
    312     '''Get a new filehandle'''
--> 313     return open(  # noqa: SIM115
    314         self.filename,
    315         self.mode,
    316         **self.file_open_kwargs,
    317     )

OSError: [Errno 22] Invalid argument: 'C:\\Users\\VG/.torch/iopath_cache\\s/ukbw5s673633hsw\\publaynet-tf_efficientdet_d0.pth.tar?dl=1.lock' 

Any idea about how to fix this welcome !