Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

setup.py not working #99

Open
wolfman456 opened this issue May 7, 2023 · 1 comment
Open

setup.py not working #99

wolfman456 opened this issue May 7, 2023 · 1 comment

Comments

@wolfman456
Copy link

Receiving the below error when trying to run the seup.py script. I am using a rasberrypi 3 b+. with python 3.9.

Install dependency

  • update apt-get... Done
  • install pip... Done
  • install sysstat... Done
  • install i2c-tools... Done
    Setup interfaces
  • turn on I2C... Done
  • Add I2C module... Done
    Traceback (most recent call last):
    File "/home/empi/pi/picar-4wd/setup.py", line 188, in
    install()
    File "/home/empi/pi/picar-4wd/setup.py", line 174, in install
    if ".picar-4wd" not in listdir("/home/pi"):
    FileNotFoundError: [Errno 2] No such file or directory: '/home/pi'
@Contributinglearner
Copy link

Looks like it is an issue with the path. Instead of

if ".picar-4wd" not in listdir("/home/pi"):

try,

if ".picar-4wd" not in listdir("/home/empi/pi"):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants