Skip to content
New issue

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

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

Already on GitHub? # to your account

Configuration #260

Open
umarahmad200 opened this issue Aug 21, 2023 · 5 comments
Open

Configuration #260

umarahmad200 opened this issue Aug 21, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@umarahmad200
Copy link

Invalid configuration file at /root/instapy-config.json

@Creepy2e
Copy link

Creepy2e commented Aug 21, 2023

Invalid configuration file at /root/instapy-config.json

you mean this is display by terminal?:

Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/InstagramPy/InstagramPySession.py", line 87, in init
configuration = json.load(fp)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 7 column 39 (char 327)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/instagram-py", line 8, in
sys.exit(ExecuteInstagramPy())
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/InstagramPy/init.py", line 128, in ExecuteInstagramPy
session = InstagramPySession(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/InstagramPy/InstagramPySession.py", line 90, in init
"invalid configuration file at {}".format(configuraion))
^^^^^^^^^^^^
NameError: name 'configuraion' is not defined. Did you mean: 'configuration'?

i have this problem and i dont know how to fix it i have uninstall and install but everytime i get this error i hope anyone can help me

and the instapy-config.json will be created and then its delete but i have try it to open and there is this code in the instapy-config.json:

{
"api-url": "https://i.instagram.com/api/v1/",
"user-agent": "Instagram 10.26.0 Android (18/4.3; 320dpi; 720x1280; Xiaomi; HM 1SW; armani; qcom; en_US)",
"ig-sig-key": "4f8732eb9ba7d1c8e8897a75d6474d4eb3f5279137431b2aafb71fafe2abe178",
"ig-sig-version": "4",
"tor": {
"server": "127.0.0.1", // Replace with the correct Tor server address
"port": "9050", // Replace with the correct Tor server port
"protocol": "socks5", // Replace with the correct Tor protocol if necessary
"control": {
"password": "", // Set the control port password if required
"port": "9051" // Replace with the correct Tor control port
}
}
}
if this will work to fix it

@kdiscoding
Copy link

This script must be as root getting this after bash setup.sh cmd

@Creepy2e
Copy link

This script must be as root getting this after bash setup.sh cmd

Yes i have it run as Root But it doesnt work i have All Time the Same Error it doesnt work

@GH05T-HUNTER5 GH05T-HUNTER5 added the bug Something isn't working label Aug 22, 2023
@Aftershock3995
Copy link

I have this issue as well

@trashmanbrah
Copy link

me too

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants