Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[query] Dot notation error in Wireviz #393

Closed
akikinho opened this issue Jun 20, 2024 · 9 comments
Closed

[query] Dot notation error in Wireviz #393

akikinho opened this issue Jun 20, 2024 · 9 comments

Comments

@akikinho
Copy link

akikinho commented Jun 20, 2024

Hello Wireviz Team,
I am trying to understand the usage of dot notation in Wireviz but unable to replicate as it throws an exception 'First item not found anywhere.' The operating system is Microsoft Windows 10 Pro Version 10.0.19045 Build 19045 and the Wireviz version is wireviz 0.3.2. Can you please help?

connectors:
  X:
    pinlabels: [GND,B-,A+]
    color: GN
    
cables:
  W:
    colors: [BN,YE,GN]
    shield: true
    
connections:
  -
    - X.: [1-3]
    - W.W1: [1-3]
    - X.: [1-3]   
@kvid
Copy link
Collaborator

kvid commented Jun 20, 2024

The dot notation is new from WireViz v0.4 - see docs/CHANGELOG.

@akikinho
Copy link
Author

Thank you @kvid.

@akikinho
Copy link
Author

Hello,
Here are the different versions installed, but facing issues.
Package Version


click 8.1.7
colorama 0.4.6
graphviz 0.20.3
numpy 1.26.4
pandas 2.2.2
pillow 10.3.0
pip 24.0
python-dateutil 2.9.0.post0
pytz 2024.1
PyYAML 6.0.1
setuptools 70.1.0
six 1.16.0
tzdata 2024.1
wireviz 0.4

Microsoft Windows [Version 10.0.19045.4529]

Error: File "", line 722, in realpath
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect. Can you please help?

@kvid
Copy link
Collaborator

kvid commented Jun 21, 2024

Please provide your Python version (python -V). However, your latest error message is similar to what was reported in #344, so I guess the issue is already fixed in PR #346 that is merged into PR #365 (work-in-progress) that will become our next release when finished.

Try this development version to see if it solves your latest problem:

pip uninstall wireviz
pip install git+https://github.com/wireviz/WireViz@release/v0.4.1-rc

@akikinho
Copy link
Author

akikinho commented Jun 21, 2024

Thank you @kvid. The python version is Python 3.12.3 and it works with the development version.

@kvid
Copy link
Collaborator

kvid commented Jun 22, 2024

@akikinho - I just deleted your comment in #293 because it seemed to be a copy of your initial comment in this issue, and I didn't see any relation to what is discussed in #293, so I guess it was added to the wrong issue by a mistake. Please correct me if I'm wrong.

@akikinho
Copy link
Author

akikinho commented Jun 24, 2024

@kvid, it is correct and thank you. I have a new question.
In the dot notation, I found that the connector name is missing in the .svg file

connectors:
  X:
    pinlabels: [GND,B-,A+]
    color: GN
    
  Y:
    pinlabels: [SH,B+,A-]
    color: RD
    
cables:
  W:
    colors: [BN,YE,GN]
    shield: true
    
connections:
-
    - X: [2]
    - W: [3]
    - Y: [3]
-
    - X.: [1,2,3]
    - W.W1: [1,2,3]
    - X.: [1,2,3]   

@kvid
Copy link
Collaborator

kvid commented Jun 24, 2024

See https://github.com/wireviz/WireViz/blob/v0.4/docs/syntax.md#autogeneration-of-items

Names of autogenerated components are hidden by default.

Your X. generates unnamed connectors. You can optionally specify a name after the dot, like in your W.W1 cable.

@kvid
Copy link
Collaborator

kvid commented Jul 6, 2024

@akikinho - Judging from your progress in #396, I assume this issue is resolved, and I therefore close it accordingly. Feel free to reopen at any time if needed.

@kvid kvid closed this as completed Jul 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants