• TI Thinks Resolved

DLPDLCR2000EVM: Python library

Prodigy 50 points

Replies: 4

Views: 62

Part Number: DLPDLCR2000EVM

Hi! I am trying to download the tar.gz python library from github; however when I try to unzip the tar.gz archive via the command line on Raspberry Pi, it returns the following error, suggesting this is not the correct file: 


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Could you please point me to where I can download the correct DLPDLCR2000EVM python library from? 

Github link: github.com/.../DLPDLCR2000

  • Hello Andreea,

    Thank you for your interest in DLP technology!

    The GitHub link you have provided is where I would point you to access the DLPDLCR2000 Python library.

    Can you go through your process of how you are attempting to install the library (including command lines)?

    Regards,

    Austin

  • In reply to Austin Snyder:

    Hi Austin, thank you for your reply. I was trying to download the tar file via wget in the command line. I've cloned the entire repository and then unzipped the archive and that worked. However, I now have another issue. 

    I've followed the instructions in the git readme and installed the DLP library- there's been a lot of syntax errors in the files (I assume there's a difference between python2 and 3?). I've got Python 3.7 installed on my Raspberry Pi. Got through all of the errors preventing me to run the sample scripts, except for one. 

    I am attempting to run ExtProjOnOff.py, and I get the following error: 

    Traceback (most recent call last):
    File "ExtProjOnOff.py", line 46, in <module>
    from control import *
    File "/home/pi/DLP_control/boot-scripts/device/bone/capes/DLPDLCR2000/control.py", line 48, in <module>
    from dlp_lightcrafter.dpp2607 import *
    File "/usr/local/lib/python3.7/dist-packages/dlp_lightcrafter-1.0.19-py3.7.egg/dlp_lightcrafter/dpp2607.py", line 45, in <module>
    ModuleNotFoundError: No module named 'i2c'

    Now, I've got the i2c arm protocol enabled in the boot/config.txt file, and I've installed the simbus2 module via pip3 in the command line. I am not quite sure how to get past this error. 

    Update: if I change line 45 in dpp2607.py from "import i2c" to "import smbus2", it traces back to the following error: 

  • In reply to Andreea Bunica:

    Hi Andreea,

    I will look into this further and get back to you soon.

    Thank you,

    Chris

  • In reply to Andreea Bunica:

    Hi Andreea,

    I went through the source code and noticed that there is an extraneous ")" character at the location of where the invalid syntax is detected. I would recommend going through the dlp_lightcrafter-1.0.19 folders until you get to dpp2607.py and editing it to remove the ")" after the L. 

    I hope this helps. Please let us know if you have any more issues with the EVM.

    Thank you,

    Chris