Open 0000F8 opened 10 months ago
I got the same issue!
comment out spacy
in requirements.txt file, then run the command pip install -e .
After that conda install spacy
You might get an error with opencv, in that case
pip uninstall opencv-contrib-python
pip uninstall opencv-python
pip uninstall opencv-python-headless
pip install opencv-python====4.6.0.66
After all, run python src/main.py --init
Sorry for the late answer @0000F8 and thank you @VimukthiRandika1997 for the solution! I will try again in local, solve the conflicts and push the changes! Leaving the issue open for now, closing with next commit!
@andreagemelli Thank you very much!
Still get
Traceback (most recent call last):
File "/Users/z1ggy/projects/forma/doc2graph/src/main.py", line 4, in
Sorry for the late answer @0000F8 and thank you @VimukthiRandika1997 for the solution! I will try again in local, solve the conflicts and push the changes! Leaving the issue open for now, closing with next commit!
Any chance of a timeline?
Tried this:
conda install -c conda-forge spacy conda install -c conda-forge pydantic
ended up here:
/Users/z1ggy/anaconda3/envs/doc2graph/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: dlopen(/Users/z1ggy/anaconda3/envs/doc2graph/lib/python3.9/site-packages/torchvision/image.so, 0x0006): Symbol not found: (ZN3c106detail19maybe_wrap_dim_slowExxb)
Referenced from: '/Users/z1ggy/anaconda3/envs/doc2graph/lib/python3.9/site-packages/torchvision/image.so'
Expected in: '/Users/z1ggy/anaconda3/envs/doc2graph/lib/python3.9/site-packages/torch/lib/libc10.dylib'
warn(f"Failed to load image Python extension: {e}")
DGL backend not selected or invalid. Assuming PyTorch for now.
Setting the default backend to "pytorch". You can change it in the ~/.dgl/config.json file or export the DGLBACKEND environment variable. Valid options are: pytorch, mxnet, tensorflow (all lowercase)
Traceback (most recent call last):
File "/Users/z1ggy/projects/forma/doc2graph/src/main.py", line 4, in
Performed conda install pytorch
finally got to here:
(doc2graph) ➜ doc2graph git:(master) ✗ python src/main.py --init /Users/z1ggy/anaconda3/envs/doc2graph/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: dlopen(/Users/z1ggy/anaconda3/envs/doc2graph/lib/python3.9/site-packages/torchvision/image.so, 0x0006): Symbol not found: (__ZN2at4_ops19empty_memory_format4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEENS5_INS2_12MemoryFormatEEE) Referenced from: '/Users/z1ggy/anaconda3/envs/doc2graph/lib/python3.9/site-packages/torchvision/image.so' Expected in: '/Users/z1ggy/anaconda3/envs/doc2graph/lib/python3.9/site-packages/torch/lib/libtorch_cpu.dylib' warn(f"Failed to load image Python extension: {e}") Namespace(init=True, add_geom=False, add_embs=False, add_hist=False, add_visual=False, add_eweights=False, src_data='FUNSD', data_type='img', edge_type='fully', node_granularity='gt', num_polar_bins=8, model='e2e', gpu=-1, test=False, weights=None, inference=False, docs=None) Downloading FUNSD 100% [..............................................................................] 36590 / 36590Downloading PAU 100% [................................................................................] 7264 / 7264Initialization completed!
I get some conflicts where I can't run the main.py script.
then if I install pydantic 1.8.2
I get
and back and forth.
[edit] Here is what I get when I run main.py for set-up.
any protips here?