#(Solved) - ImportError: cannot import name 'PyConfig' from 'BinaryOptionsToolsV2'
1 messages · Page 1 of 1 (latest)
Hi Vigo,
Sorry I'm not used to discord.
I had put the whole stack with the explanation in the message. But at the time of the post, it deleted everything.
I thought it was a display bug but your answer tells me it's not. So I reswitched to v1.
I'll do another test with v2 and complete the ticket.
Okey
And if you prefer you can open a issue in github
Here is the stack :
% python3.10 test_connection_clean.py
Traceback (most recent call last):
File "/Users/gg/pocketOption/test_connection_clean.py", line 4, in <module>
from BinaryOptionsToolsV2.pocketoption.asyncronous import PocketOptionAsync
File "/Users/gg/pocketOption/env310/lib/python3.10/site-packages/BinaryOptionsToolsV2/pocketoption/init.py", line 10, in <module>
from . import asyncronous, syncronous
File "/Users/gg/pocketOption/env310/lib/python3.10/site-packages/BinaryOptionsToolsV2/pocketoption/asyncronous.py", line 2, in <module>
from BinaryOptionsToolsV2.config import Config
File "/Users/gg/pocketOption/env310/lib/python3.10/site-packages/BinaryOptionsToolsV2/config.py", line 1, in <module>
from BinaryOptionsToolsV2 import PyConfig
ImportError: cannot import name 'PyConfig' from 'BinaryOptionsToolsV2' (/Users/gg/pocketOption/env310/lib/python3.10/site-packages/BinaryOptionsToolsV2/init.py)"
Can you show me yhe imports of your code? At least the binaryoptionstoolsv2 part
% cat test_connection.py
import asyncio
from BinaryOptionsToolsV2.pocketoption.asyncronous import PocketOptionAsync
#from BinaryOptionsToolsV2.pocketoption.asyncronous import *
async def main():
ssid = input("Entrez votre SSID : ")
api = PocketOptionAsync(ssid)
await asyncio.sleep(3)
Ye its particulary difficult ^^
Great thank you ! 🙂
🎉 @sand pagoda leveled up to Frequent Flyer!
try now
The full script 🙂
% cat test_connection.py
import asyncio
from BinaryOptionsToolsV2.pocketoption.asyncronous import PocketOptionAsync
#from BinaryOptionsToolsV2.pocketoption.asyncronous import *
async def main():
ssid = input("Entrez votre SSID : ")
api = PocketOptionAsync(ssid)
await asyncio.sleep(3)
try:
candles = await api.get_candles("EURUSD_otc", 60, 60)
print("✅ Connexion OK. Bougies reçues 😊
print(candles[:2]) # Affiche les deux premières
except Exception as e:
print("❌ Erreur lors de la récupération des bougies :", e)
if name == "main":
asyncio.run(main())
Works fine, thank you !!
This works?
Yes, it works fine, thank you !!
awesome
I am going to go live in lausanne now in like 2 weeks
I do speack french, I went to a french school all my life!
Hehe not to difficult to learn ? 🙂
I never went to Lausanne exactly. Went to near places but not Lausanne. Go to live, work or for some well-deserved vacation ? 🙂
Switzerland is also a good country to work it seems ^^
French school for all of your life, like a great teacher !? 🙂
Actually to go study
To alot of people is a impressive to hear that I am actually 19 years old 🙂
Indeed, I didn't imagine you to be so young ^^
Where are you from originally?
You fell into the code pretty young, it's great ! 🙂
I am from Chile
Wow great !!!

I understand, Lausanne is gonna be a good and great travel, it's great to be able to do that while studying! 🙂
Enjoy !! ^^
Thanks!
Also I have a question
what are you looking to build with BinaryOptionsToolsV2?
A bot?
yes i did one with V1 but have some limitations with candles history 🙂
okey
I solved the problem by cleaning my virtual directory (ie ".env"). You can close the issue thank you ^^
(Solved) - ImportError: cannot import name 'PyConfig' from 'BinaryOptionsToolsV2'
Hello! @sand pagoda How are you doing?
Just wanted to let you know that if you are searching to build a bot
you can do so here: https://chipa.tech/product/create-your-bot/