Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'from_user #147

Closed
rockydares opened this issue Feb 26, 2021 · 3 comments
Closed

AttributeError: 'NoneType' object has no attribute 'from_user #147

rockydares opened this issue Feb 26, 2021 · 3 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request invalid This doesn't seem right

Comments

@rockydares
Copy link

rockydares commented Feb 26, 2021

Capture

No matter what path I give in the DOWNLOAD_LOCATION (or leave it as it is), the files gets downloaded in the root directory of PublicLeech and thus, this error.

Is there any method to run this thing manually other than installing docker on my machine?

@SayanthD
Copy link
Contributor

@rockydares This issue seems to be occurring when the bot is used in PM. To resolve this either,

  1. Add the bot in a supergroup and set AUTH_CHANNEL with chat id
  2. Use BUTTONs mode

@rockydares
Copy link
Author

@rockydares This issue seems to be occurring when the bot is used in PM. To resolve this either,

  1. Add the bot in a supergroup and set AUTH_CHANNEL with chat id
  2. Use BUTTONs mode

This seems to be working and has resolved the problem. Thank you.

Repository owner deleted a comment from IshwaranRudhara Feb 28, 2021
@SpEcHiDe SpEcHiDe added bug Something isn't working dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request invalid This doesn't seem right labels Feb 28, 2021
@rockydares
Copy link
Author

@rockydares This issue seems to be occurring when the bot is used in PM. To resolve this either,

  1. Add the bot in a supergroup and set AUTH_CHANNEL with chat id
  2. Use BUTTONs mode

Ok so another problem occured i.e. whenever I'm trying to upload any new file via URL or magnet link, after downloading it for some percentage the file gets cancelled and I get this msg from the bot,
"unable to download upload
#stopped
manually clear storage (/upload) using GNU/Linux commands"

I'm clearing the storage, manually deleting those partially downloaded files and when I retry downloading them, same thing happens. When I put /status command, the bot sends a looong list of files which I have already uploaded or got cancelled. I tried removing aria2 and reinstalling, remove PublicLeech and retry it from begining, this problem persists. The long list of files names (which is showing by /status command) seems to be not going and thus no new files are getting uploded.

Btw, I had an old version of PublicLeech forked in my account which was the best version of it (in my opinion), somehow I manged to make it work by changing it's asyncio-dev link (from requirements.txt) as the old link shows 404 error while installing via pip. Now it works perfectly fine without any kind of errors I was facing earlier. I can use it in groups or in private. I can give you the link of that old version if you care.
Thank you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants