cocotbext-axi
cocotbext-axi copied to clipboard
I can't install cocotbext-axi - please help
I tried the following but I am still getting the same error
hossam@hossam:~/Projects$ git clone
https://github.com/alexforencich/cocotbext-axi`
hossam@hossam:~/Projects$ pip install -e cocotbext-axi
Obtaining file:///home/hossam/Projects/cocotbext-axi
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/hossam/Projects/cocotbext-axi/setup.py", line 2, in <module>
setup()
File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 124, in setup
dist.parse_config_files()
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 494, in parse_config_files
ignore_option_errors=ignore_option_errors)
File "/usr/lib/python2.7/dist-packages/setuptools/config.py", line 106, in parse_configuration
meta.parse()
File "/usr/lib/python2.7/dist-packages/setuptools/config.py", line 382, in parse
section_parser_method(section_options)
File "/usr/lib/python2.7/dist-packages/setuptools/config.py", line 355, in parse_section
self[name] = value
File "/usr/lib/python2.7/dist-packages/setuptools/config.py", line 173, in __setitem__
value = parser(value)
File "/usr/lib/python2.7/dist-packages/setuptools/config.py", line 430, in _parse_version
version = self._parse_attr(value)
File "/usr/lib/python2.7/dist-packages/setuptools/config.py", line 305, in _parse_attr
module = import_module(module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named cocotbext.axi.version
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/hossam/Projects/cocotbext-axi/`
Any help will be appreciated.
I install the following: sudo apt-get update sudo apt-get -y install python3-pip sudo pip3 install cocotbext-axi==0.1.12
hossam@hossam:~/Projects$ sudo pip3 install cocotbext-axi==0.1.12 The directory '/home/hossam/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/hossam/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting cocotbext-axi==0.1.12 Downloading https://files.pythonhosted.org/packages/32/75/76a7ca895c4aa8f81b8a0334480231bee501f42e557cc5ec56bf8f44ea3e/cocotbext_axi-0.1.12-py3-none-any.whl (40kB) 100% |████████████████████████████████| 40kB 9.2MB/s Collecting cocotb-bus (from cocotbext-axi==0.1.12) Downloading https://files.pythonhosted.org/packages/bf/05/f8f8bf48865d5fc54c7ce8c2176896c329e638efcf5af95ed634f1c8525d/cocotb-bus-0.2.0.tar.gz (86kB) 100% |████████████████████████████████| 92kB 7.6MB/s Collecting cocotb (from cocotbext-axi==0.1.12) Downloading https://files.pythonhosted.org/packages/c3/65/2ade8230bd3fe243244aba9362fcd20911352070ba1deb7f70f9f0be3067/cocotb-1.6.0.tar.gz (209kB) 100% |████████████████████████████████| 215kB 7.3MB/s Installing collected packages: cocotb, cocotb-bus, cocotbext-axi Running setup.py install for cocotb ... done Running setup.py install for cocotb-bus ... done Successfully installed cocotb-1.6.0 cocotb-bus-0.0.0 cocotbext-axi-0.1.12
Also, it's better to install conda https://docs.anaconda.com/anaconda/install/linux/
Hi. I don't know if you fixed your problem, but it seems related to your python installation. If you need help ask again in your current state and I can suggest solutions. In another case, I think that it issue can be closed @alexforencich (it is old and seems not particularly related to cocotbext-axi).