arminmokri / v2ray2json

v2ray2json is a Python script for converting 'vmess://', 'vless://', 'trojan://', 'ss://', etc. subscription format to JSON config.
MIT License
51 stars 3 forks source link

Unable to run #2

Closed photkey closed 1 year ago

photkey commented 1 year ago

After searching all night, I finally found what I needed, but unfortunately, I can't run it here, the following error message is reported:

D:\DevScript\v2ray2json>python v2ray2json.py
Traceback (most recent call last):
  File "D:\DevScript\v2ray2json\v2ray2json.py", line 1294, in <module>
    print(generateConfig(config))
          ^^^^^^^^^^^^^^^^^^^^^^
  File "D:\DevScript\v2ray2json\v2ray2json.py", line 1065, in generateConfig
    temp = config.split("://")
           ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

Was it run the wrong way?

Windows 10 Python 3.11.4

photkey commented 1 year ago

Sorry, I ran it the wrong way, I thought I had to run it and then enter the parameters, but now it works! Awesome!