Menu

couldn't open ".": permission denied

Anonymous
2020-06-13
2020-06-13
  • Anonymous

    Anonymous - 2020-06-13

    Hello,
    I am trying to add an image to a label (Windows 10, latest ActiveTcl). Picking a random image I systematically get a error message, except when I pick the image from "My Pictures". What am I doing wrong. Error message here after:

    couldn't open ".": permission denied
    while executing
    "image create [vTcl:image:get_creation_type $filename] $name -file $filename"
    (procedure "vTcl:image:create_new_image" line 34)
    invoked from within
    "vTcl:image:create_new_image $newImageFile "user image" "user""
    (procedure "vTcl:image:new_image_file" line 32)
    invoked from within
    "vTcl:image:new_image_file"
    (procedure "vTcl:prompt_user_image2" line 3)
    invoked from within
    "vTcl:prompt_user_image2 $object"
    (procedure "vTcl:prompt_user_image" line 12)
    invoked from within
    "vTcl:prompt_user_image $vTcl(w,widget) -image"
    invoked from within
    ".vTcl.ae.cpd21.03.f2.f._Label.t-image.f invoke"
    ("uplevel" body line 1)
    invoked from within
    "uplevel #0 [list $w invoke]"
    (procedure "tk::ButtonUp" line 24)
    invoked from within
    "tk::ButtonUp .vTcl.ae.cpd21.03.f2.f._Label.t-image.f"
    (command bound to event)

     
  • Don Rozenberg

    Don Rozenberg - 2020-06-13

    As stated in the "Using Images" section of the documentation, images should be in the same directory as that where you are building the project or a subdirectory of that directory. This requirement seemed necessary for building portable applications with PAGE.

    If the image you are trying to use is in the project directory, let please let me know.

     
  • Eric Mathieu

    Eric Mathieu - 2020-06-13

    Solved the issue: the image is indeed in the same folder as Page and as my project but in fact I was editing running from another Page instance . When I put the image in this other Page instance folder, it worked. Same when I edited with the proper Page instance. So I understand there is a constaint to have images in the Page folder or subfolder.
    This is not explaining why My Pictures was working but at least I understand how to work.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.