Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

TypeError: the JSON object must be str, bytes or bytearray, not NoneType #9

Closed
OWO99 opened this issue Feb 11, 2023 · 12 comments
Closed
Labels

Comments

@OWO99
Copy link

OWO99 commented Feb 11, 2023

""" File "C:\Users\dingj\Desktop\testtt\new\main.py", line 5, in
from AppOpener import open
File "C:\Users\dingj\Desktop\testtt\new\venv\Lib\site-packages\AppOpener_init_.py", line 7, in
check.check_json()
File "C:\Users\dingj\Desktop\testtt\new\venv\Lib\site-packages\AppOpener\check.py", line 63, in check_json
create_file()
File "C:\Users\dingj\Desktop\testtt\new\venv\Lib\site-packages\AppOpener\check.py", line 53, in create_file
apps = json.loads(result.stdout)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dingj\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

Process finished with exit code 1
"""
Using pycharm

@OWO99
Copy link
Author

OWO99 commented Feb 11, 2023

and also when I want to run "python setup.py sdist bdist_wheel" it shows "error: invalid command 'bdist_wheel'"..please help

@athrvvvv

This comment was marked as off-topic.

@athrvvvv athrvvvv pinned this issue Feb 12, 2023
@athrvvvv
Copy link
Owner

@OWO99 AppOpener only works on windows

@OWO99

This comment was marked as off-topic.

@athrvvvv
Copy link
Owner

athrvvvv commented Mar 5, 2023

This will be fixed, with AppOpener v1.7 releasing on 10th Of March

@athrvvvv athrvvvv added fixing and removed Fix later labels Mar 5, 2023
@athrvvvv
Copy link
Owner

athrvvvv commented Mar 5, 2023

@OWO99 are you using Windows XP or Windows 7 or Windows 10?

Note: AppOpener won't run on XP and 7

@athrvvvv athrvvvv added waiting for reply Awaiting for the reply from issue commiter. help wanted Extra attention is needed and removed fixing labels Mar 6, 2023
@OWO99
Copy link
Author

OWO99 commented Mar 20, 2023

@OWO99 are you using Windows XP or Windows 7 or Windows 10?

Note: AppOpener won't run on XP and 7
Windows 10 of course, I will try new version later, Thanks a lot!

@mhanuel26
Copy link

@athrvvvv Hi, I am facing same issue at the moment, is your fix something you already might have there or still a work in progress? Thanks.

@athrvvvv
Copy link
Owner

@athrvvvv Hi, I am facing same issue at the moment, is your fix something you already might have there or still a work in progress? Thanks.

I will inform you, about this matter.

@athrvvvv athrvvvv removed the waiting for reply Awaiting for the reply from issue commiter. label Mar 25, 2023
@codingbro163
Copy link

For anyone who's still having this issue - I managed to solve it by firstly installing the 1.3 version of the library and only then installing the newest version (or any version I guess). I am not completely sure whether you have to run a code, where you do "import AppOpener" before installing a different version, but if it doesn't work without it - then it will if you do this.

From the looks of it there is something in the 1.3 version that isn't in any of the others... @athrvvvv

@athrvvvv
Copy link
Owner

athrvvvv commented Apr 27, 2023

Relax guys, releasing AppOpener v1.7 this month!! which solves #15 #9 #10 🤝😊

@athrvvvv athrvvvv added Next version fixes this The next version of AppOpener is going to fix this issue. and removed help wanted Extra attention is needed labels Apr 27, 2023
@athrvvvv
Copy link
Owner

AppOpener v1.7 just released!! ✌️

Install AppOpener v1.7:

pip install AppOpener==1.7

I have added an Exception, if the File creation process failed, it will create files using the old method in AppOpener v1.3
Hope soo, this works!! Btw, thanks @codingbro163 for suggesting the solution 🤝👍
If your Issue is fixed, you may close this now 😊

Lots of love,
athrv ❤️

@athrvvvv athrvvvv added Fixed and removed Next version fixes this The next version of AppOpener is going to fix this issue. labels May 1, 2023
@athrvvvv athrvvvv unpinned this issue May 2, 2023
@athrvvvv athrvvvv closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants