#๐Ÿ”’ need help

28 messages ยท Page 1 of 1 (latest)

lost nacelle
#

me maked script that encrypt my photos but i get anytime error permision denyd so how i can fix that

shrewd heraldBOT
#

@lost nacelle

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

lost nacelle
#

it encrypt it whit AES

proper crane
lost nacelle
#

did it but it not encrypt

#

and me runned it in sandbox

proper crane
#

First, speak properly. I manage to tolerate Gen Z speak. This is giving me a headache.

#

Secondly, can you share your code please?

#

!pastebin if its too long

shrewd heraldBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

proper crane
#

!codeblock if its not too long

shrewd heraldBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

proper crane
shrewd heraldBOT
#
Traceback

Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.

A full traceback could look like:

Traceback (most recent call last):
  File "my_file.py", line 5, in <module>
    add_three("6")
  File "my_file.py", line 2, in add_three
    a = num + 3
        ~~~~^~~
TypeError: can only concatenate str (not "int") to str

If the traceback is long, use our pastebin.

lost nacelle
#

ok wait

#

Traceback (most recent call last):
File "c:\Users\Surckre\Desktop\Surckre\encrypt.py", line 39, in <module>
encrypt_folder(folder_path, key)
File "c:\Users\Surckre\Desktop\Surckre\encrypt.py", line 21, in encrypt_folder
encrypt_file(file_path, key)
File "c:\Users\Surckre\Desktop\Surckre\encrypt.py", line 13, in encrypt_file
with open(file_path, 'wb') as f:
^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\Users\Surckre\pictures\desktop.ini'

#

this right

proper crane
lost nacelle
#

yep

proper crane
lost nacelle
#

now i cant

#

sry

proper crane
#

can you try again?

crystal atlas
lost nacelle
#

ok

#

chatgpt fixed it

shrewd heraldBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.