Install of third party package rustworkx fails on 4.0 and 4.1 Alpha, works on 3.6.2 #112323

Closed
opened 2023-09-13 13:51:08 +02:00 by David Ballesteros · 8 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.13

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 12/09/2023, hash: e656e850a642da57453fe6f60a1e918b9d8f847e
Worked: 3.6.2

Short description of error
A python package that I'm trying to install and use on an add-on that im developing fails with "No module named rustworkx.rustworkx".

Attached an addon to try the install and execution.
Attached 2 screenshots of 4.0 and 2 more of my own compiled version (yesterday) of 4.0 alpha.

Exact steps for others to reproduce the error

In 4.0:

  1. Open Blender with the console active so you can see what the addon is doing.
  2. Download the attached addon.
  3. Install it, activate it. From add-on preferences press the Install dependencies button.
    blender_4.0_install_2023-09-13_13-13-30.jpg
  4. The addon will fail with "No module named rustworkx.rustworkx". See the info section on the screenshot.
    blender_4.0_fail_2023-09-13_13-14-53.jpg

In 3.6.2:

  1. Open Blender with the console active so you can see what the addon is doing.
  2. Download the attached addon.
  3. Install it, activate it. From add-on preferences press the Install dependencies button.
    Here is where 4.0 fails.
    blender_3.6.2_install_2023-09-13_13-22-23.jpg
  4. On the "rustworkx Tab" in the 3DView ("N-Panel) press the Dummy Operator button.
  5. See the rustworks module working and printing results of a basic graph.
    blender_3.6.2_running_2023-09-13_13-23-10.jpg

Thanks in advance,
David Ballesteros

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.13 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 12/09/2023, hash: `e656e850a642da57453fe6f60a1e918b9d8f847e` Worked: 3.6.2 **Short description of error** A python package that I'm trying to install and use on an add-on that im developing fails with "No module named rustworkx.rustworkx". Attached an addon to try the install and execution. Attached 2 screenshots of 4.0 and 2 more of my own compiled version (yesterday) of 4.0 alpha. **Exact steps for others to reproduce the error** In 4.0: --------- 1. Open Blender with the console active so you can see what the addon is doing. 2. Download the attached addon. 3. Install it, activate it. From add-on preferences press the Install dependencies button. ![blender_4.0_install_2023-09-13_13-13-30.jpg](/attachments/55e21d99-9cd8-4d67-8766-6641ae5f6e9e) 4. The addon will fail with "No module named rustworkx.rustworkx". See the info section on the screenshot. ![blender_4.0_fail_2023-09-13_13-14-53.jpg](/attachments/13a1e9fd-ae4f-4116-917b-55a1aee6e445) In 3.6.2: ------------ 1. Open Blender with the console active so you can see what the addon is doing. 2. Download the attached addon. 3. Install it, activate it. From add-on preferences press the Install dependencies button. Here is where 4.0 fails. ![blender_3.6.2_install_2023-09-13_13-22-23.jpg](/attachments/0a31d2b0-e496-4f85-a35c-02d87b94f3d3) 4. On the "rustworkx Tab" in the 3DView ("N-Panel) press the Dummy Operator button. 5. See the rustworks module working and printing results of a basic graph. ![blender_3.6.2_running_2023-09-13_13-23-10.jpg](/attachments/9c70c55f-ff9a-4b46-a4e0-7d8f81836a44) Thanks in advance, David Ballesteros
David Ballesteros added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-13 13:51:09 +02:00
Member

Hi! from your screenshot, the rustworkx dependency seems to have been satisfied.

From running on my machine, it works just fine:

Collecting rustworkx
  Downloading rustworkx-0.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 2.6 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.16.0 in ./bin/4.0/python/lib/python3.10/site-packages (from rustworkx) (1.23.5)
Installing collected packages: rustworkx
Successfully installed rustworkx-0.13.1

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: /home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/python/bin/python3.10 -m pip install --upgrade pip
WARN (rna.define): source/blender/makesrna/intern/rna_define.cc:1249 RNA_def_struct_ui_text: 'This operator tries to use rustworkx.' description from 'EXAMPLE_OT_dummy_operator' '' ends with a '.' !

图片

It's possible that you have missing files from an incomplete download, could you try removing those related files indicated in your path and try again?

Also I would suggest reporting this to rustworkx if you still encounter problems.

Hi! from your screenshot, the `rustworkx` dependency seems to have been satisfied. From running on my machine, it works just fine: ``` Collecting rustworkx Downloading rustworkx-0.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 2.6 MB/s eta 0:00:00 Requirement already satisfied: numpy>=1.16.0 in ./bin/4.0/python/lib/python3.10/site-packages (from rustworkx) (1.23.5) Installing collected packages: rustworkx Successfully installed rustworkx-0.13.1 [notice] A new release of pip is available: 23.0.1 -> 23.2.1 [notice] To update, run: /home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/python/bin/python3.10 -m pip install --upgrade pip WARN (rna.define): source/blender/makesrna/intern/rna_define.cc:1249 RNA_def_struct_ui_text: 'This operator tries to use rustworkx.' description from 'EXAMPLE_OT_dummy_operator' '' ends with a '.' ! ``` ![图片](/attachments/6f074451-4a6c-4124-a8f5-aa91361f8c46) It's possible that you have missing files from an incomplete download, could you try removing those related files indicated in your path and try again? Also I would suggest reporting this to `rustworkx` if you still encounter problems.
5.3 KiB
YimingWu added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-09-13 15:53:20 +02:00

Hi @ChengduLittleA

Hi! from your screenshot, the rustworkx dependency seems to have been satisfied.

That is becuase I tried several times in a row without uninstall rustworkx first.

From running on my machine, it works just fine:

But you are using Linux, my problem is in Windows.
Did you tried in Blender 4.0 or 3.6.2?

It's possible that you have missing files from an incomplete download, could you try removing those related files indicated in your path and try again?

Uninstalled_rustworkx_powershell_2023-09-14_10-32-49.jpg

After that uninstall as ADMIN.

I tried the addon example again. Same error:

Blender_4.0_fail_2023-09-14_10-36-00.jpg

Also I would suggest reporting this to rustworkx if you still encounter problems.

I reported it three days ago. And when I saw it working on 3.6.2 I came to report it here.

Blender add-on or console: import rustworkx results in error No module named 'rustworkx.rustworkx'

Thanks in advance
David Ballesteros

Hi @ChengduLittleA > Hi! from your screenshot, the `rustworkx` dependency seems to have been satisfied. That is becuase I tried several times in a row without uninstall rustworkx first. > From running on my machine, it works just fine: But you are using Linux, my problem is in Windows. Did you tried in Blender 4.0 or 3.6.2? > It's possible that you have missing files from an incomplete download, could you try removing those related files indicated in your path and try again? ![Uninstalled_rustworkx_powershell_2023-09-14_10-32-49.jpg](/attachments/fa20d085-3121-4b61-8e9b-9270a8389aae) After that uninstall as ADMIN. I tried the addon example again. Same error: ![Blender_4.0_fail_2023-09-14_10-36-00.jpg](/attachments/c05a99ad-dd75-4ca4-8691-394d1de4b672) > Also I would suggest reporting this to `rustworkx` if you still encounter problems. I reported it three days ago. And when I saw it working on 3.6.2 I came to report it here. [Blender add-on or console: import rustworkx results in error No module named 'rustworkx.rustworkx'](https://github.com/Qiskit/rustworkx/issues/980) Thanks in advance David Ballesteros
David Ballesteros changed title from Install of third party package rustworkx fails on 4.0, works on 3.6.2 to Install of third party package rustworkx fails on 4.0 and 4.1 Alpha, works on 3.6.2 2023-10-10 11:11:41 +02:00

Hi,

I just noticed a lot of Python changes on latests commits, so I tried this again this morning after update my repos and compile Blender 4.1 Alpha. SHA-1 203559757a

It still fails.

Best regards,
David Ballesteros.

Hi, I just noticed a lot of Python changes on latests commits, so I tried this again this morning after update my repos and compile Blender 4.1 Alpha. SHA-1 203559757a71c69c44796410d3d9003ab7e4e5ae It still fails. Best regards, David Ballesteros.
Member

Hi @dballesg , I suggest you that you should report the problem to the author of install_rustworkx_example.py since it's not a bundled script that comes with blender. Considering blender does upgrade the version of python, it's likely that some features are broken.

Hi @dballesg , I suggest you that you should report the problem to [the author](https://github.com/robertguetzkow/blender-python-examples/) of `install_rustworkx_example.py` since it's not a bundled script that comes with blender. Considering blender does upgrade the version of python, it's likely that some features are broken.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-10-13 03:40:19 +02:00

Hi,

Reopening this because I am still investigating the issue.

I AM the author of install_rustworkx_example.py script, based on one from robertguetzkow.
But that script is not the problem, because I've done an addon to manage Python Pacakges and I have the same problem.

Have you even tried the script under windows as I asked? It worked for you in Linux. I hope you are aware that Pythoion in Linux is a different beast than Python in Windows.

In 3.6.2 and 3.6.4 latests (WORKS), 4.0 (FAILS) and 4.1 (FAILS)?

So if in 3.6 works is obvious something has changed in Python on the last two branches 4.0 and 4.1.
And 4.0 is about to be released. Meaning I can not continue my addon because I need rustworkx.

Is a common practice here to close reports when you haven't even tried the supplied script under the listed conditions and OS?
This is what discourages me to keep reporting things.

Do not close the report again, I'm srtarting a Debug session with 4.1 under Windows to see if I can nail the problem.

David

Hi, Reopening this because I am still investigating the issue. I AM the author of install_rustworkx_example.py script, based on one from robertguetzkow. But that script is not the problem, because I've done an addon to manage Python Pacakges and I have the same problem. Have you even tried the script under windows as I asked? It worked for you in Linux. I hope you are aware that Pythoion in Linux is a different beast than Python in Windows. In 3.6.2 and 3.6.4 latests (WORKS), 4.0 (FAILS) and 4.1 (FAILS)? So if in 3.6 works is obvious something has changed in Python on the last two branches 4.0 and 4.1. And 4.0 is about to be released. Meaning I can not continue my addon because I need rustworkx. Is a common practice here to close reports when you haven't even tried the supplied script under the listed conditions and OS? This is what discourages me to keep reporting things. Do not close the report again, I'm srtarting a Debug session with 4.1 under Windows to see if I can nail the problem. David
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2023-10-13 11:32:39 +02:00

Hi,

So partially I figured out the problem.

I downloaded a build of 4.1alpha from blender.org and it is working with it.

The mismatch that is happening because I am using a Blender 4.1alpha DEBUG version that I compile myself.
I will try to recompile it as a Release and see if that works as well.

I will close the report when I've tried that as well and I will request a debnug version of rustworkx to their authors.

Cheers,
David

Hi, So partially I figured out the problem. I downloaded a build of 4.1alpha from blender.org and it is working with it. The mismatch that is happening because I am using a Blender 4.1alpha DEBUG version that I compile myself. I will try to recompile it as a Release and see if that works as well. I will close the report when I've tried that as well and I will request a debnug version of rustworkx to their authors. Cheers, David
Member

Hi, unable to confirm either in 4..1 (on Windows). Have you tried release build then?

Hi, unable to confirm either in 4..1 (on Windows). Have you tried release build then?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-12-22 12:24:41 +01:00
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-03-01 05:39:08 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#112323
No description provided.