DuplicateFlagError: The flag 'config_path' is defined twice



  • Hi,

    I am working one a Deep learning article called : solving backward stochastic differential equation using deep learning (doi.org/10.1073/pnas.1718942115) .
    In the implementation code on Github https://github.com/frankhan91/DeepBSDE , I tried to compile the main.py file (using a jyputer notebook) and I end up with the following duplicateError Message :

    DuplicateFlagError: The flag 'config_path' is defined twice. First from /home/alassane/.local/lib/python3.6/site-packages/ipykernel_launcher.py, Second from /home/alassane/.local/lib/python3.6/site-packages/ipykernel_launcher.py. Description from first occurrence: The path to load json file.

    I am working with a Linux system ( Ubuntu 18.04.4) on a mac book pro.
    I think that the problem is around " flag.Define_string" on the main.py file , but I can not figure out what exactly is happening .

    Can someone please help me ?

    Thanks!!
    screenshot.png


Log in to reply