Git Product home page Git Product logo

Comments (43)

RobotNetwork avatar RobotNetwork commented on May 11, 2024 1

I used pip to install initially and to re-install.

from dearpygui.

RobotNetwork avatar RobotNetwork commented on May 11, 2024 1

32 or 64 bit python?

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32

Can you verify that dearpygui.pyd is located in your “site-packages”?

Confirmed, found in "C:\Users\dylan\AppData\Local\Programs\Python\Python38\Lib\site-packages\dearpygui"

You may need to upgrade python (preferably to 3.8.5)
I upgrade from 3.8.2 to 3.8.5 and now the sample code provided is working as intended!

Please put this as a requirement, assuming it is one, in the install section of your ReadME

from dearpygui.

0d0a0c avatar 0d0a0c commented on May 11, 2024 1

I have this same issue in Windows 7, running python 64 bit in a windows cmd terminal.

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

Thanks for the report! Were you using pip to install? Or the zipped executable?

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

32 or 64 bit python?

I do not seem to be able to replicate the issue. Can you verify that dearpygui.pyd is located in your “site-packages”? It should be located at pythonInstallLocation/Lib/site-packages/dearpygui

You may need to upgrade python (preferably to 3.8.5) but we are still trying to reproduce and will update this when we can.

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

Thank you for the information and will do. It appears some of the recent fixes in the python 3.8 versions have to do with importing native binaries. Closing this.

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

Is this bug fixed? I still have this bug when importing the module v0.4.2 in python3.8.5 on Win64.

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

It’s been fix. Would you happen to be naming your module dearpygui?

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

I did not rename the module, I used the code in README.md.

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

Can you post the actual error message?

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024
Traceback (most recent call last):
  File "e:\Code Box\py0\pyGUI\Src\test0.py", line 1, in <module>
    from dearpygui.core import *
ImportError: DLL load failed while importing core: 找不到指定的模块。

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

In all previous cases, this only occurs if are using a 32bit version of python DPG (even though you are on a 64 bit windows machine).

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

emm... Is there a solution?

from dearpygui.

Jah-On avatar Jah-On commented on May 11, 2024

Using 64 bit python atm.

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

What is python atm? I am using python-3.8.5-amd64.exe.

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

Are you on windows 10 or 7?

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

windows 10

from dearpygui.

Jah-On avatar Jah-On commented on May 11, 2024

Atm is at the moment

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

@Jah-On I have never heard of "python at the moment". Python3.8.5 should be the latest in python38, right?

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

You have to explicitely find the download for 64bit python

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

Isn't it this?
image

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

Yep. And you need to ensure thats the actual one you are running if you have multiple installed

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

I'm sure I'm running this because I only installed this version.
D:\Study Files\Python38\Lib\site-packages\dearpygui
This is the path I installed.

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

What version of windows?

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

Windows10 2004(19041.508)

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

What ide?

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

VSCode

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

It's a vs code environment issue. I had to add this to the settings.json file to point vscode in the proper direction:

{
    "python.defaultInterpreterPath": "C:\Users\Jonathan Hoffstadt\AppData\Local\Programs\Python\Python38\python.exe",
    "python.globalModuleInstallation": true,
    "python.linting.lintOnSave": false,
    "python.terminal.activateEnvironment": false,
    "python.linting.pylintArgs": [
        "--init-hook",
        "import sys; sys.path.append('C:\Users\Jonathan Hoffstadt\AppData\Local\Programs\Python\Python38\Lib\site-packages')"
    ]
}

from dearpygui.

Dynamith avatar Dynamith commented on May 11, 2024

Still no effect, I want to give up. 😂

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

I don't think its a DPG issue though ha.

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

Can you show the result of pip debug

from dearpygui.

Synxis avatar Synxis commented on May 11, 2024

I have the same issue, Python 3.8.6 64bit on Windows 7 64bit. I try to run the example in a cmd terminal, and I use a virtualenv.

Here is the output of pip debug:

pip version: pip 20.3.1 from <PROJECT_ROOT>\venv\lib\site-packages\pip (python 3.8)
sys.version: 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]
sys.executable: <PROJECT_ROOT>\venv\Scripts\python.exe
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: cp1252
sys.platform: win32
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): <PROJECT_ROOT>\venv\lib\site-packages\pip\_vendor\certifi\cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  contextlib2==0.6.0.post1 (Unable to locate actual module version, using vendor.txt specified version)
  distlib==0.3.1
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  ipaddress==1.0.23
  msgpack==1.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==20.7
  pep517==0.9.1
  progress==1.5
  pyparsing==2.4.7
  requests==2.25.0
  certifi==2020.11.08
  chardet==3.0.4
  idna==2.10
  urllib3==1.26.2
  resolvelib==0.5.3
  retrying==1.3.3 (Unable to locate actual module version, using vendor.txt specified version)
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.15.0
  toml==0.10.2
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 30
  cp38-cp38-win_amd64
  cp38-abi3-win_amd64
  cp38-none-win_amd64
  cp37-abi3-win_amd64
  cp36-abi3-win_amd64
  cp35-abi3-win_amd64
  cp34-abi3-win_amd64
  cp33-abi3-win_amd64
  cp32-abi3-win_amd64
  py38-none-win_amd64
  py3-none-win_amd64
  py37-none-win_amd64
  py36-none-win_amd64
  py35-none-win_amd64
  py34-none-win_amd64
  py33-none-win_amd64
  py32-none-win_amd64
  py31-none-win_amd64
  py30-none-win_amd64
  cp38-none-any
  py38-none-any
  py3-none-any
  py37-none-any
  py36-none-any
  py35-none-any
  py34-none-any
  py33-none-any
  py32-none-any
  py31-none-any
  py30-none-any

(at this point imgui is easier to use, directly in C++)

from dearpygui.

Jah-On avatar Jah-On commented on May 11, 2024

Windows 7 will come eventually.

from dearpygui.

Synxis avatar Synxis commented on May 11, 2024

Windows 7 will come eventually.

Well, then I want to understand: I can use imgui in C++ on Windows 7 without problems, so what is limiting here ? Why is this OS excluded, what is the technical reason ?

from dearpygui.

Jah-On avatar Jah-On commented on May 11, 2024

I'm not the lead dev but if I recall correctly there is not a build for it yet and/or Jonathan modified imgui's code to use DX12 instead if DX11 for a future 3D DPG engine. (DPG.core and .simple is just the 2D version of the 3D version)

from dearpygui.

Synxis avatar Synxis commented on May 11, 2024

Oh I see, DX12 definitely blocks Win7. Maybe a fallback on OpenGL 3 would be sufficient (and avoid too much dev work for this OS) ?

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

@Synxis there are a few reasons. Us switching to DX12 soon, is part of it. The other part is that appveyor and GitHub actions do not have windows 7 runners, so we haven’t worked out a way to deploy it easily for this OS. Even if we add a fallback renderer (for OpenGL for example), we still need to manage to build the library on window 7 for 8 versions of python. So either we need a CI system that supports it OR just offer a build script that allows the user to pull in this repo and easily build it in place. (The latter is where I’m leaning)

from dearpygui.

heharkon avatar heharkon commented on May 11, 2024

Hi! I'm Having the same issue on a fresh install of Windows 10 and Python 3.9.1.

I'm running virtualenv, requirements.txt containing only dearpygui.

Directory of c:\users\hehar\pycharmprojects\uitest\venv\lib\site-packages\dearpygui

06/02/2021 14.04

.
06/02/2021 14.04 ..
06/02/2021 14.04 2 444 288 core.pyd
06/02/2021 14.04 65 297 core.pyi
06/02/2021 14.04 85 259 demo.py
06/02/2021 14.04 25 755 simple.py
06/02/2021 14.04 6 init.py
06/02/2021 14.04 pycache
5 File(s) 2 620 605 bytes

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

@heharkon What error occurs?

from dearpygui.

heharkon avatar heharkon commented on May 11, 2024

The "original":

from dearpygui.dearpygui import *
ImportError: DLL load failed while importing dearpygui: The specified module could not be found.

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

dearpygui.dearpygui is no longer a module. Did you happen to come from the medium article?

from dearpygui.

hoffstadt avatar hoffstadt commented on May 11, 2024

If so, I just updated it.

from dearpygui.

heharkon avatar heharkon commented on May 11, 2024

Ah! Indeed that was it, I had cop-pasted an old example! :D
Now it works, thanks!

from dearpygui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.