PacktPublishing / Django-3-by-Example

Django 3 by Example (3rd Edition) published by Packt
https://djangobyexample.com/
MIT License
715 stars 690 forks source link

Ecommerce project #20

Open cforcross opened 4 years ago

cforcross commented 4 years ago

error report I am currently working on the ecommerce application and i'm stuck with the error below. I have been googling for the past 3 days looking for a solution all to no avail...πŸ‘‡πŸΏπŸ‘‡πŸΏπŸ‘‡πŸΏ. The initial error i was having need i install GTk and after i successfully doing that then i began have this new error and its been driving me crazy.. would really appreciate the urgent help as i am working on a deadline..

OSError: cannot load library 'gobject-2.0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0'

Thanks

pythonyalfa commented 4 years ago

Looks like something in your settings maybe off. Maybe somewhere in the settings you need to either tell it where the library is or the library needs to moved to a different folder. Or it could be the permissions not allowing read or execute.

Get Outlook for Androidhttps://aka.ms/ghei36


From: chowa cross notifications@github.com Sent: Tuesday, July 21, 2020 8:33:26 PM To: PacktPublishing/Django-3-by-Example Django-3-by-Example@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [PacktPublishing/Django-3-by-Example] Ecommerce project (#20)

I am currently working on the ecommerce application and i'm stuck with the error below. I have been googling for the past 3 days looking for a solution all to no avail...πŸ‘‡πŸΏπŸ‘‡πŸΏπŸ‘‡πŸΏ. The initial error i was having need i install GTk and after i successfully doing that then i began have this new error and its been driving me crazy.. would really appreciate the urgent help as i am working on a deadline..

OSError: cannot load library 'gobject-2.0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0'

Thanks

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPacktPublishing%2FDjango-3-by-Example%2Fissues%2F20&data=02%7C01%7C%7C23b3a8a8e0aa44fa229508d82de79da2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637309820085566826&sdata=PkApTapbgGrLupEqLZyasWyPTw2agBIKxH%2FDAcwvdjg%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGKTQSC3NLDUOX4OY4W2GNTR4ZFXNANCNFSM4PEH2CZQ&data=02%7C01%7C%7C23b3a8a8e0aa44fa229508d82de79da2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637309820085576821&sdata=pzFO0Bjw1QfjXp3Nyo6T6pkawOFfcNZ9nOXlgl3l1Lg%3D&reserved=0.

LeonT-A commented 4 years ago

I also had errors with weasyprint. Don't remember what the error said, but it sounds familiar to your issue. After reading through the docs I found out that one of the weasyprint dependencies doesn't support python 32bit. I ended up uninstalling it and installing python 64bit. Smooth as butter after that.

cforcross commented 4 years ago

Looks like something in your settings maybe off. Maybe somewhere in the settings you need to either tell it where the library is or the library needs to moved to a different folder. Or it could be the permissions not allowing read or execute. Get Outlook for Androidhttps://aka.ms/ghei36 … ____ From: chowa cross notifications@github.com Sent: Tuesday, July 21, 2020 8:33:26 PM To: PacktPublishing/Django-3-by-Example Django-3-by-Example@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [PacktPublishing/Django-3-by-Example] Ecommerce project (#20) I am currently working on the ecommerce application and i'm stuck with the error below. I have been googling for the past 3 days looking for a solution all to no avail...πŸ‘‡πŸΏπŸ‘‡πŸΏπŸ‘‡πŸΏ. The initial error i was having need i install GTk and after i successfully doing that then i began have this new error and its been driving me crazy.. would really appreciate the urgent help as i am working on a deadline.. OSError: cannot load library 'gobject-2.0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0' Thanks β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPacktPublishing%2FDjango-3-by-Example%2Fissues%2F20&data=02%7C01%7C%7C23b3a8a8e0aa44fa229508d82de79da2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637309820085566826&sdata=PkApTapbgGrLupEqLZyasWyPTw2agBIKxH%2FDAcwvdjg%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGKTQSC3NLDUOX4OY4W2GNTR4ZFXNANCNFSM4PEH2CZQ&data=02%7C01%7C%7C23b3a8a8e0aa44fa229508d82de79da2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637309820085576821&sdata=pzFO0Bjw1QfjXp3Nyo6T6pkawOFfcNZ9nOXlgl3l1Lg%3D&reserved=0.

This didnt' really work for me ...But Thanks

cforcross commented 4 years ago

I also had errors with weasyprint. Don't remember what the error said, but it sounds familiar to your issue. After reading through the docs I found out that one of the weasyprint dependencies doesn't support python 32bit. I ended up uninstalling it and installing python 64bit. Smooth as butter after that.

worked like a charm ..Thanks a million

officerebel commented 4 years ago

Follow this instructions https://weasyprint.readthedocs.io/en/stable/install.html#gtk64installer

sirthom9123 commented 3 years ago

Was this issue fixed?

If not, You need to get GTK and set your environment variables path to the bin folder, this allows weasyprint to access the neccessary libraries.

Download GTK: https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer