BhavyeMathur / goopylib-v1

A simple-yet-powerful 2D graphics framework built on top of Tkinter capable of creating good-looking & modern GUIs, games, and simple animations.

Home Page:https://pypi.org/project/goopylib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug report

Rthvk opened this issue · comments

commented
Traceback (most recent call last):
  File "C:/Users/rithv/PycharmProjects/PyhtonPrograms/Hello_World!.py", line 1, in <module>
    from goopylib.imports import *
  File "C:\Users\rithv\PycharmProjects\PyhtonPrograms\venv\lib\site-packages\goopylib\__init__.py", line 2, in <module>
    from goopylib import imports
  File "C:\Users\rithv\PycharmProjects\PyhtonPrograms\venv\lib\site-packages\goopylib\imports.py", line 1, in <module>
    from goopylib.styles import *
  File "C:\Users\rithv\PycharmProjects\PyhtonPrograms\venv\lib\site-packages\goopylib\styles.py", line 1, in <module>
    from goopylib.colours import *
  File "C:\Users\rithv\PycharmProjects\PyhtonPrograms\venv\lib\site-packages\goopylib\colours.py", line 2, in <module>
    from goopylib.math.Interpolations import *
  File "C:\Users\rithv\PycharmProjects\PyhtonPrograms\venv\lib\site-packages\goopylib\math\__init__.py", line 1, in <module>
    import goopylib.math.CBezierCurve
ImportError: DLL load failed while importing CBezierCurve: %1 is not a valid Win32 application.

Asus computer
Pycharm 2020.2.3

Please go through this website and tell me if you're running 32-bit or 64-bit Windows. Additionally, check your Python installation version by running the following code (you can copy-paste it to a new file):

import struct
print(struct.calcsize("P") * 8)

Hopefully, the results from this will help me fix the bug.

commented

I have a 32 bit windows. (I know this because the output was 32).

and what did you get when you went to the website and checked your OS?

commented

Screenshot:
image

Your System Type would be under these specifications. Please send that.

commented

I do not understand

The screenshot you have sent is only part of the specifications. Please send the entire screen's screenshot so that I can see the System Type. The System Type specification is located below the ones you have sent, so if I can see that, it'll help me solve the issue.

I have 64 bit computer. it does not work for me either.

I have 64 bit computer. it does not work for me either.

Can you run this code to check how many bits your Python runs on:

import struct
print(struct.calcsize("P") * 8)

my pycharm is not opening

I see, try running the code in IDLE. Go to the taskbar, search up IDLE and open the first result that comes up. This should open a window and give you something which looks like this:

>>>

Then, type:

import struct

Press enter, then:

struct.calcsize("P") * 8

And give me the output.

ok brilliant! So, you'll need to uninstall Python first. You have a 64-bit computer but a 32-bit Python installation. So after uninstalling, redownload Python MAKE SURE IT'S 64-BIT. https://www.python.org/downloads/windows/
Screenshot 2020-10-20 at 12 13 01 PM

Download the x86-64 executable installer and follow the installation instructions. This should fix the issue. After this, try running

from goopylib.imports import *

in IDLE.

will my earlier projects be saved??

will my earlier projects be saved??

Yes, they will remain where they were.

Uninstall Python, not PyCharm. Try following this: https://medium.com/@itylergarrett.tag/my-story-about-uninstalling-python-3-7-pip-uninstall-python-lol-stop-f74618b1774d. And I suppose you'll have to reinstall PyCharm too.

Open your installer you downloaded off of python’s website. https://www.python.org/downloads/release/python-366/
You broke something, didn’t you?
Run the installer again.
Uninstall

huh?? what does that even mean

Ok, it's fine, just do this:

  1. Search up IDLE on your taskbar
  2. Right Click it
  3. Click 'Uninstall Application'

This will open another window

  1. Find Python (not PyCharm) and right click to click uninstall.

i uninstalled all python things and started again. I just installed these
image

ok great, now open PyCharm, make sure you have goopylib installed and try importing it.

No Python at 'C:\Users\Rishi_2\AppData\Local\Programs\Python\Python38-32\python.exe'
this is what it says

Try using this website: https://www.jetbrains.com/help/pycharm/project-interpreter.html#70968 You'll also have to reinstall goopylib.

ok great.

Could you please run it again and send me the error?

image
here

Update: The Issue has been resolved after using Python 3.8.6 rather than 3.9.