【问题标题】:Issue with pycharm remote debug with script parameters ("env: No match." )带有脚本参数的 pycharm 远程调试问题(“env: No match.”)
【发布时间】:2017-07-22 01:15:00
【问题描述】:

当我在没有任何参数的情况下在 pycharm 远程执行脚本时,它运行良好。 但是,一旦我添加了参数(脚本参数),就会在执行调试会话时收到 env: No match. 错误

我的论点看起来像

--arg1=value1 --arg2=value2

我尝试在没有'=' 的情况下设置它并得到同样的错误

这是调试器窗口中显示的完整命令:

ssh://null@localhost:2213/home/gamir/yuval/anaconda2/envs/tf_011b/bin/python -u /specific/a/home/cc/cs/yuvval/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 45437 --file /home/gamir/yuval/remote_py/nlteach/show_attend_and_tell/evaluation_wrapper.py --checkpoint_path=/home/gamir/yuval/nlteach/output/train/d=cub/imSD=11%imSP=rnd%tcSP=cvpr16/VSat --cnn_model=resnet_v1_50 --eval_dir=/home/gamir/yuval/nlteach/output/eval/d=cub/imSD=11%imSP=rnd%tcSP=cvpr16/VSat --input_file_list=/home/gamir/yuval/data/CUB_TF/d=cub/imSD=11%imSP=rnd%tcSP=cvpr16/learn.img_val.ids --image_set=img_val --images_split_seed=11 --teaching_split_type=cvpr16 --teaching_split_seed= --output_data_dir=/home/gamir/yuval/data/CUB_TF/ --images_split_type=rnd --dataset_raw_dir=/home/gamir/yuval/data/CUB_TF/raw/ --teach_set=learn --dataset_name=cub --num_examples_per_epoch=3125 --early_stop_metric=Perplexity/min --early_stop_patience=6 --multi_params_checkpoint_dir_depth=2 --input_file_pattern=/home/gamir/yuval/data/CUB_TF/d=cub/imSD=11%imSP=rnd%tcSP=cvpr16/TFRecords/learn.img_val-*.tfrecord --early_stop_min_epochs=3 --eval_interval_secs=1 --multi_params_evaluation_loop=True --gpu_memory_fraction=0.31

并且没有参数(成功)

ssh://null@localhost:2213/home/gamir/yuval/anaconda2/envs/tf_011b/bin/python -u /specific/a/home/cc/cs/yuvval/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 44571 --file /home/gamir/yuval/remote_py/nlteach/show_attend_and_tell/evaluation_wrapper.py

知道如何解决这个问题吗?

【问题讨论】:

    标签: python linux environment-variables pycharm remote-debugging


    【解决方案1】:

    我设法解决了这个问题。远程解释器不喜欢我在其中一个参数上有符号*。我通过使用反斜杠 \* 而不是 * 转义来修复它

    【讨论】:

      猜你喜欢
      • 2013-04-12
      • 2013-05-30
      • 1970-01-01
      • 2014-02-06
      • 2020-06-29
      • 2019-02-05
      • 1970-01-01
      • 1970-01-01
      • 2021-11-29
      相关资源
      最近更新 更多