#(Solved) - ImportError: cannot import name 'PyConfig' from 'BinaryOptionsToolsV2'

1 messages · Page 1 of 1 (latest)

dreamy jungle
#

Hello

#

Can you give us the full traceback?

sand pagoda
#

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.

dreamy jungle
#

Okey

dreamy jungle
sand pagoda
#

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)"

dreamy jungle
#

Can you show me yhe imports of your code? At least the binaryoptionstoolsv2 part

dreamy jungle
#

oh

#

I think one of the bots

#

I believe tenacity is removing the,

#

them

sand pagoda
#

% 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)

sand pagoda
dreamy jungle
#

I'll white list this channels

#

so you can send everything

sand pagoda
#

Great thank you ! 🙂

short pineBOT
#

🎉 @sand pagoda leveled up to Frequent Flyer!

dreamy jungle
#

try now

sand pagoda
#

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 !!

sand pagoda
#

Yes, it works fine, thank you !!

dreamy jungle
#

awesome!

#

Also I see you speack french 🙂 Are you from france?

sand pagoda
#

Yes I got the same problem on my last posts .

#

Yes I'm french

#

^^

dreamy jungle
#

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!

sand pagoda
#

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 ^^

sand pagoda
dreamy jungle
sand pagoda
#

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 ! 🙂

sand pagoda
#

Wow great !!!

dreamy jungle
sand pagoda
#

I understand, Lausanne is gonna be a good and great travel, it's great to be able to do that while studying! 🙂

#

Enjoy !! ^^

dreamy jungle
#

Thanks!

#

Also I have a question

#

what are you looking to build with BinaryOptionsToolsV2?

#

A bot?

sand pagoda
#

yes i did one with V1 but have some limitations with candles history 🙂

dreamy jungle
#

okey

sand pagoda
#

I solved the problem by cleaning my virtual directory (ie ".env"). You can close the issue thank you ^^

dreamy jungle
#

(Solved) - ImportError: cannot import name 'PyConfig' from 'BinaryOptionsToolsV2'

dreamy jungle
#

Hello! @sand pagoda How are you doing?

#

Just wanted to let you know that if you are searching to build a bot