[GH-ISSUE #143] Getting an error while executing the Terravision draw command. #82

Closed
opened 2026-05-06 12:37:14 +02:00 by BreizhHardware · 2 comments

Originally created by @Acenda-raj-haldar on GitHub (Jul 31, 2025).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/143

Hello,

I have started to explore Terravision. I have created a python virtual env and then installed all the required packages and dependency inside that. Now, when I am trying to execute terravision command to generate the diagram from my Terraform code, i am getting the following error:-

Command I tried to execute: $ terravision draw --source ~/iacdemo/terraform/network-compute/

The directory mentioned above against --source is where few of my TF files exist.

The error I received: -

(myenv) rajarshih@MMD-06206986293:~/iac/tools/terravision$ terravision draw --source ~/iacdemo/terraform/network-compute/
Traceback (most recent call last):
File "/home/rajarshih/iac/tools/terravision/terravision", line 8, in
import modules.fileparser as fileparser
File "/home/rajarshih/iac/tools/terravision/modules/fileparser.py", line 8, in
from numpy import source
ImportError: cannot import name 'source' from 'numpy' (/home/rajarshih/myenv/lib/python3.12/site-packages/numpy/init.py)

I tried to comment out that line, but it did not help as it was used in the other area of the source code.

If you can advise or help on this that would be appreciated.

Thanks,
Raj

Originally created by @Acenda-raj-haldar on GitHub (Jul 31, 2025). Original GitHub issue: https://github.com/patrickchugh/terravision/issues/143 Hello, I have started to explore Terravision. I have created a python virtual env and then installed all the required packages and dependency inside that. Now, when I am trying to execute terravision command to generate the diagram from my Terraform code, i am getting the following error:- Command I tried to execute: $ **terravision draw --source ~/iacdemo/terraform/network-compute/** The directory mentioned above against --source is where few of my TF files exist. **The error I received: -** (myenv) rajarshih@MMD-06206986293:~/iac/tools/terravision$ terravision draw --source ~/iacdemo/terraform/network-compute/ Traceback (most recent call last): File "/home/rajarshih/iac/tools/terravision/terravision", line 8, in <module> import modules.fileparser as fileparser File "/home/rajarshih/iac/tools/terravision/modules/fileparser.py", line 8, in <module> from numpy import source ImportError: cannot import name 'source' from 'numpy' (/home/rajarshih/myenv/lib/python3.12/site-packages/numpy/__init__.py) I tried to comment out that line, but it did not help as it was used in the other area of the source code. If you can advise or help on this that would be appreciated. Thanks, Raj
Author
Owner

@patrickchugh commented on GitHub (Oct 20, 2025):

Please try the latest version and review new updated Readme for details

<!-- gh-comment-id:3423360754 --> @patrickchugh commented on GitHub (Oct 20, 2025): Please try the latest version and review new updated Readme for details
Author
Owner

@patrickchugh commented on GitHub (Dec 16, 2025):

closing with no activity

<!-- gh-comment-id:3662641979 --> @patrickchugh commented on GitHub (Dec 16, 2025): closing with no activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/terravision#82
No description provided.