Polygonization-by-Frame-Field-Learning icon indicating copy to clipboard operation
Polygonization-by-Frame-Field-Learning copied to clipboard

ERROR in installing frame field learning package

Open Ankit-Vohra opened this issue 2 years ago • 6 comments

I'm running the code on Windows 10 system. I successfully executed bash setup.sh Post that I ran python setup.py install and got this output:

Installed d:\anaconda3\envs\topo\lib\site-packages\frame_field_learning-0.0.1-py3.6.egg
Processing dependencies for frame-field-learning==0.0.1
Finished processing dependencies for frame-field-learning==0.0.1

But when I run python main.py --run_name "frame_field_learning/runs/mapping_dataset.unet_resnet101_pretrained.field_off.train_val | 2020-09-07 11:54:48" --in_filepath grid_100-100_3698.0.tif This throws an error ERROR: The frame_field_learning package is not installed! Execute script setup.sh to install local dependencies such as frame_field_learning in develop mode.

Please reply @Lydorn Thanks in Advance

Ankit-Vohra avatar Jul 28 '21 13:07 Ankit-Vohra

May a different python env you used when you ran main.py, especially conda env. I setup up it and ran it. I have never seen this error.

Halle-Astra avatar Aug 05 '21 13:08 Halle-Astra

did you run sh setup.sh first ??

aymanaboghonim avatar Aug 27 '21 06:08 aymanaboghonim

If the error remains, adding all the imports to 'requirements.txt' file and then running the setup and main file should work. I managed to do it this way.

kriti115 avatar Nov 23 '21 19:11 kriti115

If the error remains, adding all the imports to 'requirements.txt' file and then running the setup and main file should work. I managed to do it this way.

Hello, I tried your method, but I didn't understand what "imports" is. Do you mean that put all the ".py" file names in the "lydorn_utils" folder into "requirements.txt"?

Luyuxiang-Hi avatar Mar 04 '22 01:03 Luyuxiang-Hi

If the error remains, adding all the imports to 'requirements.txt' file and then running the setup and main file should work. I managed to do it this way.

Hello, I tried your method, but I didn't understand what "imports" is. Do you mean that put all the ".py" file names in the "lydorn_utils" folder into "requirements.txt"?

Hello,

I have attached the editted requirements.txt file that I used. You can try and see if this works for you. Wish you luck.

requirements_editted.txt

kriti115 avatar Mar 04 '22 09:03 kriti115

If the error remains, adding all the imports to 'requirements.txt' file and then running the setup and main file should work. I managed to do it this way.

Hello, I tried your method, but I didn't understand what "imports" is. Do you mean that put all the ".py" file names in the "lydorn_utils" folder into "requirements.txt"?

Hello,

I have attached the editted requirements.txt file that I used. You can try and see if this works for you. Wish you luck.

requirements_editted.txt

I have sloved this issue by edit "main.py" ---- "import("frame_field_learning.local_utils")'" to "import frame_field_learning.local_utils", but thank you for your kind reply.

Luyuxiang-Hi avatar Mar 04 '22 10:03 Luyuxiang-Hi