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

WARNING:root:could not open file'/etc/apt/sources.list' #6

Closed
1043717432 opened this issue May 6, 2017 · 3 comments
Closed

WARNING:root:could not open file'/etc/apt/sources.list' #6

1043717432 opened this issue May 6, 2017 · 3 comments

Comments

@1043717432
Copy link

After installing virtualenv, exit virtualenv, and then run mirobo discover,
An error has occurred:
WARNING:root:could not open file'/etc/apt/sources.list'
Please help solve!
Question 2: download a good python-mirobo-master.zip is not unpacked into the homeassistant folder? A detailed tutorial?
Thank you

@rytilahti
Copy link
Owner

You should run it inside virtualenv, although that error message doesn't sound to be coming from this module. There's no reason why this module would try to access sources.list. How did you do the install? Running pip install python-mirobo?

To install the homeassistant component, the simplest way is to create a symlink:

mkdir -p ~/.homeassistant/custom_components/switch/
ln -s /home/user/PATH_TO_SOURCE/custom_components/switch/mirobo.py ~/.homeassistant/custom_components/switch/

or copy the file from repository over to that directory and then restart the homeassistant. The source path needs to be adjusted depending on where you have extracted the zip.

@1043717432
Copy link
Author

@rytilahti Hello I install the following commands:
#sudo Su -s /bin/bash homeassistant
#source /srv/homeassistant/bin/activate
#pip3 install python-mirobo
Then exit
Then I started executing: mirobo discover
There was an error.

@1043717432
Copy link
Author

@rytilahti

The tutorial tells you: reset the robot, connect its network notification (rockrobo-XXXX) and run the following command: mirobo discover.
This step is to use the laptop WiFi connection xiaoMI sweeping robot WiFi configuration? PI is not installed on the mirobo?

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