Comments (5)
Can you provide code?
from amino.fix.fix.
Can you provide code?
i think he is using this:
import json
import time
import os
from aminofix.lib.util.helpers import gen_deviceId as device_generator
file_name = "accounts.json"
new_file = "accountsz.json"
with open(file_name) as f:
data = json.load(f)
with open(new_file, "w") as f:
f.write("[")
for i, account in enumerate(data, 1):
device_id = device_generator()
device_key = device_id[-40:]
email = account["email"]
password = account["password"]
transfer = {"email": email, "password": password, "device": device_id, "deviceKey": device_key}
json.dump(transfer, f)
if i != len(data):
f.write(",\n")
print(f"done {i}")
f.write("]")
time.sleep(2)
from amino.fix.fix.
if so, it will work
![Снимок экрана 2024-05-17 в 11 25 25](https://private-user-images.githubusercontent.com/55358751/331519133-63b0a244-1e72-4575-9837-d69a4dd07c11.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1MTk3NTEsIm5iZiI6MTcyMzUxOTQ1MSwicGF0aCI6Ii81NTM1ODc1MS8zMzE1MTkxMzMtNjNiMGEyNDQtMWU3Mi00NTc1LTk4MzctZDY5YTRkZDA3YzExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDAzMjQxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyOTc2ZGJjOTU4NDNmMDUyMTFkOGI0MTU2MTE1NDRiMzMwOGJiZGM3NDU5YjAxNmVhMmQ5ZjRkMGVlMjFiNjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tgSyJq6BuucN0EMHd1xiRonN1xP61KxdrSD-Ltqa2DE)
also there is an device_id in async client
so im waiting for code from issuer
but i found another issues
![Снимок экрана 2024-05-17 в 11 28 10](https://private-user-images.githubusercontent.com/55358751/331520960-67eebd13-1cdb-4c7c-83af-a172bdfd8357.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1MTk3NTEsIm5iZiI6MTcyMzUxOTQ1MSwicGF0aCI6Ii81NTM1ODc1MS8zMzE1MjA5NjAtNjdlZWJkMTMtMWNkYi00YzdjLTgzYWYtYTE3MmJkZmQ4MzU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDAzMjQxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlZmZlZDE0OGRiMjJhZDYzMGEwMjE2Mjk3NTIzODg3ZjcyNDEyYTI3NjM4ZmU0YjNlMzI5YjJlZTU1NTdkZjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.NcnACIx1tJZvluGEUloAjSjWZfMr_4kOC2zhdpBvM0w)
from amino.fix.fix.
this error print me:
Traceback (most recent call last):
File "/home/max/Documents/pydocs/fixfix.py", line 8, in
sub = SubClient(mainClient=Client, comId="67")
File "/home/max/.local/lib/python3.10/site-packages/aminofixfix/asyncfixfix/sub_client.py", line 46, in init
self, deviceId=mainClient.device_id, proxies=mainClient.proxies,
AttributeError: type object 'Client' has no attribute 'device_id'
from amino.fix.fix.
sub = SubClient(mainClient=Client, comId="67")
bro you literally passed class "Client" as inited client 💀
you should do smth like
# ...
client = Client(socket_enabled=False)
sub = SubClient(client, comId=67)
# ...
or wait for update when you can create subclients without any clients
closing issue as its not lib problem
from amino.fix.fix.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amino.fix.fix.