Micropython-Unix

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Shravan N Agni
Posts: 13
Joined: Wed Jul 19, 2017 10:53 am

Micropython-Unix

Post by Shravan N Agni » Fri Aug 04, 2017 11:19 am

Hi,
I am using orange pi zero running armbian(based on debian and ubuntu) for my project. I need to use the micropython package. I followed the steps given in "https://github.com/micropython/micropyt ... d-variants" , but I am getting the error "../py/mkrules.mk:131: recipe for target 'micropython' failed
make: *** [micropython] Error 1" when I run the command "make".
I want use micropython on my Orange pi board. How do I install the packages?

Best Regards,

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Micropython-Unix

Post by deshipu » Fri Aug 04, 2017 12:56 pm

Can you paste the complete error?

Shravan N Agni
Posts: 13
Joined: Wed Jul 19, 2017 10:53 am

Re: Micropython-Unix

Post by Shravan N Agni » Mon Aug 07, 2017 6:16 am

Please find the attached file of the error I am getting.
Attachments
1.jpg
1.jpg (203.52 KiB) Viewed 7245 times

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Micropython-Unix

Post by deshipu » Mon Aug 07, 2017 7:20 am

You need python installed in your system.

Shravan N Agni
Posts: 13
Joined: Wed Jul 19, 2017 10:53 am

Re: Micropython-Unix

Post by Shravan N Agni » Mon Aug 07, 2017 11:12 am

I have installed python.
I think python is installed in root directory. I am trying to install micropython in home directory. Is that a problem?

stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Re: Micropython-Unix

Post by stijn » Mon Aug 07, 2017 12:09 pm

You're logged in as root (why?) but working in /home/micropython. That is just confusing, directories under /home are meant to be per-user directories..
Anyway: might be that you have python installed (are you sure?), but the error clearly is 'python: command not found' so you cannot run it. Can you run 'python' at the shell?
If not you'll have to fix that, or let the Makefile know about the actual path to the python executable like 'make PYTHON=/path/to/python'

Shravan N Agni
Posts: 13
Joined: Wed Jul 19, 2017 10:53 am

Re: Micropython-Unix

Post by Shravan N Agni » Wed Aug 09, 2017 9:05 am

The os comes with pre installed python and I am able to run python interpreter.
I re installed the os and I am getting same error.
Are there any other methods to use micropython packages and run them on the boards(orange pi, raspberry pi etc)?
Attachments
1.jpg
1.jpg (188.04 KiB) Viewed 7168 times

User avatar
kfricke
Posts: 342
Joined: Mon May 05, 2014 9:13 am
Location: Germany

Re: Micropython-Unix

Post by kfricke » Wed Aug 09, 2017 10:02 am

Did you respect the external dependencies as noted in the README? The packages libffi and libffi-dev seem to be missing.

Shravan N Agni
Posts: 13
Joined: Wed Jul 19, 2017 10:53 am

Re: Micropython-Unix

Post by Shravan N Agni » Thu Aug 10, 2017 11:05 am

Now it is working fine. I think pkg-config package was missing.
Thank you

Post Reply