Hello All,
On Raspberry Pi target and earlier version of myhdl was getting a
ImportError: No module named py_compile (see py_compile error attached)
Trying to install a python module using the ADT enviornment.
name="myhdl",
version=version,
description="Python as a Hardware Description Language",
long_description="See home page.",
author="Jan Decaluwe",
author_email="[email protected]",
url="http://www.myhdl.org"
The following are the steps that result in an error using the ADT and Raspberry
Pi target.
mkdir build_myhdl
cd build_myhdl/
git clone https://github.com/jandecaluwe/myhdl.git
cd myhdl/
source
/opt/poky/1.8+snapshot/environment-setup-cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi
python setup.py install
which python
/opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/python
python setup.py install
Traceback (most recent call last):
File "setup.py", line 3, in <module>
import ast
ImportError: No module named ast
Thanks in advance. Edward Vidal Jr.
e-mail [email protected]
915-595-1613
python setup.py install
starts out okay.
writing manifest file 'myhdl.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build/lib
creating build/lib/myhdl
copying myhdl/_Signal.py -> build/lib/myhdl
copying myhdl/_util.py -> build/lib/myhdl
copying myhdl/_Cosimulation.py -> build/lib/myhdl
copying myhdl/_compat.py -> build/lib/myhdl
copying myhdl/_Waiter.py -> build/lib/myhdl
copying myhdl/__init__.py -> build/lib/myhdl
copying myhdl/_tristate.py -> build/lib/myhdl
copying myhdl/_bin.py -> build/lib/myhdl
.
.
.
many more lines
.
.
.
copying build/lib/myhdl/_resolverefs.py -> build/bdist.linux-armv7l/egg/myhdl
copying build/lib/myhdl/_resize.py -> build/bdist.linux-armv7l/egg/myhdl
copying build/lib/myhdl/_ShadowSignal.py -> build/bdist.linux-armv7l/egg/myhdl
copying build/lib/myhdl/_simulator.py -> build/bdist.linux-armv7l/egg/myhdl
Traceback (most recent call last):
File "setup.py", line 60, in <module>
'Programming Language :: Python :: 3.4',
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File
"/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/install.py",
line 73, in run
self.do_egg_install()
File
"/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/install.py",
line 93, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File
"/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/bdist_egg.py",
line 179, in run
cmd = self.call_command('install_lib', warn_dir=0)
File
"/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/bdist_egg.py",
line 166, in call_command
self.run_command(cmdname)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File
"/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/install_lib.py",
line 24, in run
self.byte_compile(outfiles)
File "/usr/lib/python2.7/distutils/command/install_lib.py", line 138, in
byte_compile
dry_run=self.dry_run)
File "/usr/lib/python2.7/distutils/util.py", line 437, in byte_compile
from py_compile import compile
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto