Category : python-3.x

i was trying to use tabs in dearpygui and it gives me this error: Traceback (most recent call last): File "c:main.py", line x, in <module> with dpg.add_tab_bar(): AttributeError: __enter__ i tried to do it like this add_tab_bar(‘tabbar’) add_tab(‘tab1’) end_tab() end_tab_bar() id didnt work to the code: import dearpygui.dearpygui as dpg with dpg.window(label="window") as mainwind: with ..

Read more

Running the following test code, give me some strange results: import numpy as np from netCDF4 import Dataset array1 = np.array([[1,2,3]]) array2 = np.array([[4,5,6],[7,8,9]]) rootgrp = Dataset("D:/test.nc", "w", format="NETCDF4") rootgrp.createDimension("0", None) rootgrp.createDimension("1", None) variable1 = rootgrp.createVariable("variable1", array1.dtype.str, ("0", "1"), fill_value=-1) variable2 = rootgrp.createVariable("variable2", array2.dtype.str, ("0", "1"), fill_value=-1) variable1[:] = array1 variable2[:] = array2 result1 = ..

Read more

I’m trying to install Discord.py so I can get to work on a bot for my server, and every time I try to install it using $ pip3 install -U discord.py like normal, it returns this error: Traceback (most recent call last): File "/home/user/.cache/activestate/e8a4dd46/usr/lib/python3.9/subprocess.py", line 73, in <module> import msvcrt ModuleNotFoundError: No module named ‘msvcrt’ ..

Read more