Problem using Vagrant in Windows

592 views
Skip to first unread message

Steve S

unread,
Aug 6, 2014, 1:59:18 PM8/6/14
to ope...@googlegroups.com
Hello Chris,

I trying to Vagrant build environment  as described in your link. After running vagrant up and waiting a while the install seems to fail. Below is the last several lines of the install.

Installing dependencies for building for chipKIT Max32 platform
Installing MPIDE to get avrdude for flashing chipKIT Max32 platform

chipKIT flashing dependencies installed.☼
Installing chipKIT library chipKITUSBDevice...

Stderr from the command:
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
warning: no files found matching 'pip/cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'do
cs/_build'
no previously-included directories found matching 'docs/_build/_sources'
dpkg-preconfigure: unable to re-open stdin: No such file or directory
/vagrant/script/bootstrap/pic32.sh: line 33: unzip: command not found


The last line seems to be the problem.

If I then do vagrant ssh and do a build:

fab reference build

it fails as follows

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 658, in mai
n
    docstring, callables, default = load_fabfile(fabfile)
  File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 165, in loa
d_fabfile
    imported = importer(os.path.splitext(fabfile)[0])
  File "/vagrant/fabfile.py", line 7, in <module>
    from prettyprint import pp
ImportError: No module named prettyprint

Any suggestions would be appreciated.

Thanks

Steve

Christopher Peplin

unread,
Aug 6, 2014, 3:51:42 PM8/6/14
to openxc@googlegroups com
Hey Steve, thanks for the report - looks like I missed a few packages in the dependencies setup. I've fixed it for the next release (https://github.com/openxc/vi-firmware/compare/a9ceddeaab...e135ead26a) but for your setup I'd just install them manually. "vagrant ssh" into the VM and run:

sudo apt-get install unzip
sudo pip install prettyprint

then log out and run 'vagrant provision' to re-run the bootstrap script to make sure everything else is installed, and you should be good to go.

Chris


--
You received this message because you are subscribed to the Google Groups "OpenXC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxc+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/openxc.
To view this discussion on the web visit https://groups.google.com/d/msgid/openxc/79c54396-8b08-4f5c-b8c2-643a0909923f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve S

unread,
Aug 6, 2014, 5:01:45 PM8/6/14
to ope...@googlegroups.com
Thanks Chris for the quick response.

I did as you suggested and the original errors went away. I re-ran the build:

fab reference build

and it ended with the following error:

RD/libs/CDL/LPC17xxLib/src/lpc17xx_wdt.o -lstdc++ -lsupc++ -lm -lc -lgcc
arm-none-eabi-g++: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
make: *** [build/FORDBOARD/vi-firmware-FORDBOARD.elf] Error 1
Fatal error: local() encountered an error (return code 2) while executing 'TRANS
MITTER=0 DEFAULT_ALLOW_RAW_WRITE_UART=0 DEFAULT_POWER_MANAGEMENT=SILENT_CAN DEFA
ULT_METRICS_STATUS=0 DEFAULT_CAN_ACK_STATUS=0 DEFAULT_ALLOW_RAW_WRITE_NETWORK=0
DEBUG=0 BOOTLOADER=1 DEFAULT_USB_PRODUCT_ID=1 NETWORK=0 DEFAULT_UART_LOGGING_STA
TUS=0 DEFAULT_OUTPUT_FORMAT=JSON DEFAULT_RECURRING_OBD2_REQUESTS_STATUS=0 PLATFO
RM=FORDBOARD DEFAULT_ALLOW_RAW_WRITE_USB=1 DEFAULT_EMULATED_DATA_STATUS=0 DEFAUL
T_OBD2_BUS=1 make -j4'

I fairly new to building in Linux but my obvious guess that liblto_plugin.so is missing. How do I added it?

Thanks again

Christopher Peplin

unread,
Aug 7, 2014, 12:02:49 AM8/7/14
to openxc@googlegroups com
That's very odd, Steve. Can you paste the output of this command, run from the "/vagrant" directory:

find . -name liblto_plugin.so

I just bootstrapped a fresh Vagrant environment and this is what I see:

vagrant@vagrant-ubuntu-trusty-64:/vagrant$ find . -name liblto_plugin.so
./dependencies/gcc-arm-embedded/lib/gcc/arm-none-eabi/4.8.3/liblto_plugin.so
./dependencies/gcc-arm-embedded/gcc-arm-none-eabi-4_8-2014q1/lib/gcc/arm-none-eabi/4.8.3/liblto_plugin.so

Since you installed the dependencies using the same script, you should have the identical version. We'll have to try and figure out what is different with your environment. I did find this report that may help if your liblto_plugin.so is missing for some reason: http://www.lpcware.com/content/forum/libltopluginso-not-found (but I'd still like to find out why it's missing).

Chris


Steve S

unread,
Aug 7, 2014, 10:47:54 AM8/7/14
to ope...@googlegroups.com
Chris

When I enter find . -name liblto_plugin.so the command just returns to the prompt with no output.
When I ls the two directories where your liblto_plugin.so was found I get the following results:

vagrant@vagrant-ubuntu-trusty-64:/vagrant$ ls ./dependencies/gcc-arm-embedded/l
ib/gcc/arm-none-eabi/4.8.3
armv6-m   cc1         crtend.o  include        libgcov.a               plugin
armv7-ar  cc1plus     crti.o    include-fixed  liblto_plugin.so.0.0.0  thumb
armv7e-m  collect2    crtn.o    install-tools  lto1
armv7-m   crtbegin.o  fpu       libgcc.a       lto-wrapper
vagrant@vagrant-ubuntu-trusty-64:/vagrant$ ls ./dependencies/gcc-arm-embedded/g
cc-arm-none-eabi-4_8-2014q1/lib/gcc/arm-none-eabi/4.8.3
armv6-m   cc1         crtend.o  include        libgcov.a               plugin
armv7-ar  cc1plus     crti.o    include-fixed  liblto_plugin.so.0.0.0  thumb
armv7e-m  collect2    crtn.o    install-tools  lto1
armv7-m   crtbegin.o  fpu       libgcc.a       lto-wrapper
vagrant@vagrant-ubuntu-trusty-64:/vagrant$

I renamed liblto_plugin.so.0.0.0  to liblto_plugin.so and the build completed.

Steve

Chris

unread,
Aug 12, 2014, 10:14:52 PM8/12/14
to ope...@googlegroups.com
Figured it out! https://github.com/openxc/vi-firmware/issues/259

Next person should have a much better time.

Kyle Kelly

unread,
Jun 20, 2016, 4:16:35 PM6/20/16
to OpenXC
I'm seeing basically the same error:

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/fabric/main.py", line 594, in main

    docstring, callables, default = load_fabfile(fabfile)

  File "/usr/lib/python2.7/dist-packages/fabric/main.py", line 156, in load_fabfile

    imported = importer(os.path.splitext(fabfile)[0])

  File "/vagrant/fabfile.py", line 7, in <module>

    from prettyprint import pp

ImportError: No module named prettyprint


I've followed the link above to the fix but the code in my script/bootstrap/arm.sh file is: 


    LIBLTO_SYMLINK="$GCC_INNER_DIR/lib/gcc/arm-none-eabi/4.8.4/liblto_plugin.so"

    if ! test -e $LIBLTO_SYMLINK; then

        # If running Vagrant in Windows, these dependency files are access via

        # network share through Vagrant/Virtualbox, and symlinks are not

        # supported. These files will be missing, so we have to copy where they

        # are supposed to be symlinking to the properly named files.

        cp "$LIBLTO_SYMLINK.0.0.0" $LIBLTO_SYMLINK

        cp "$LIBLTO_SYMLINK.0.0.0" $LIBLTO_SYMLINK.0

    fi


Can you explain what needs to be done to resolve this issue? Thanks.


Kyle

On Tuesday, August 12, 2014 at 10:14:52 PM UTC-4, Chris wrote:

Figured it out! https://github.com/openxc/vi-firmware/issues/259

Next person should have a much better time.

On Thursday, August 7, 2014 10:47:54 AM UTC-4, Steve S wrote:
Chris

When I enter find . -name liblto_plugin.so the command just returns to the prompt with no output.
When I ls the two directories where your liblto_plugin.so was found I get the following results:

vag...@vagrant-ubuntu-trusty-64:/vagrant$ ls ./dependencies/gcc-arm-embedded/l

ib/gcc/arm-none-eabi/4.8.3
armv6-m   cc1         crtend.o  include        libgcov.a               plugin
armv7-ar  cc1plus     crti.o    include-fixed  liblto_plugin.so.0.0.0  thumb
armv7e-m  collect2    crtn.o    install-tools  lto1
armv7-m   crtbegin.o  fpu       libgcc.a       lto-wrapper
vag...@vagrant-ubuntu-trusty-64:/vagrant$ ls ./dependencies/gcc-arm-embedded/g

cc-arm-none-eabi-4_8-2014q1/lib/gcc/arm-none-eabi/4.8.3
armv6-m   cc1         crtend.o  include        libgcov.a               plugin
armv7-ar  cc1plus     crti.o    include-fixed  liblto_plugin.so.0.0.0  thumb
armv7e-m  collect2    crtn.o    install-tools  lto1
armv7-m   crtbegin.o  fpu       libgcc.a       lto-wrapper

Eric Marsman

unread,
Jun 20, 2016, 4:44:00 PM6/20/16
to OpenXC
Hi Kyle,

From this message:

File "/vagrant/fabfile.py", line 7, in <module>

    from prettyprint import pp

ImportError: No module named prettyprint


Did you run 

% sudo pip install prettyprint

in the vagrant machine? It looks like that didn't get installed correctly on the bootstrap. Are you behind a firewall or proxy? You could also try vagrant destroy and vagrant up again and look for error messages during the bootstrap process.

Regards,
Eric

Kyle Kelly

unread,
Jun 21, 2016, 1:56:43 PM6/21/16
to OpenXC
I followed your suggestion and destroyed vagrant and then ran vagrant up. Here is the output from my terminal:

kyle-kellys-macbook:vi-firmware kal$ vagrant destroy

    default: Are you sure you want to destroy the 'default' VM? [y/N] y

==> default: Forcing shutdown of VM...

==> default: Destroying VM and associated drives...

kyle-kellys-macbook:vi-firmware kal$ vagrant up

Bringing machine 'default' up with 'virtualbox' provider...

==> default: Importing base box 'ubuntu/precise64'...

==> default: Matching MAC address for NAT networking...

==> default: Checking if box 'ubuntu/precise64' is up to date...

==> default: Setting the name of the VM: vi-firmware_default_1466531511771_64728

==> default: Clearing any previously set forwarded ports...

==> default: Clearing any previously set network interfaces...

==> default: Preparing network interfaces based on configuration...

    default: Adapter 1: nat

==> default: Forwarding ports...

    default: 22 (guest) => 2222 (host) (adapter 1)

==> default: Booting VM...

==> default: Waiting for machine to boot. This may take a few minutes...

    default: SSH address: 127.0.0.1:2222

    default: SSH username: vagrant

    default: SSH auth method: private key

    default: Warning: Remote connection disconnect. Retrying...

    default: Warning: Remote connection disconnect. Retrying...

    default: 

    default: Vagrant insecure key detected. Vagrant will automatically replace

    default: this with a newly generated keypair for better security.

    default: 

    default: Inserting generated public key within guest...

    default: Removing insecure key from the guest if it's present...

    default: Key inserted! Disconnecting and reconnecting using new SSH key...

==> default: Machine booted and ready!

==> default: Checking for guest additions in VM...

    default: The guest additions on this VM do not match the installed version of

    default: VirtualBox! In most cases this is fine, but in rare cases it can

    default: prevent things such as shared folders from working properly. If you see

    default: shared folder errors, please make sure the guest additions within the

    default: virtual machine match the version of VirtualBox you have installed on

    default: your host and reload your VM.

    default: 

    default: Guest Additions Version: 4.1.44

    default: VirtualBox Version: 5.0

==> default: Mounting shared folders...

    default: /vagrant => /Users/kal/Documents/MS EE/Summer 2016/Ford Research Internship/OpenXC/vi-firmware

==> default: Running provisioner: shell...

    default: Running: inline script

==> default: ~/vi-firmware ~

==> default: Storing all downloaded dependencies in the "dependencies" folder

==> default: Reading package lists...

==> default: Building dependency tree...

==> default: Reading state information...

==> default: The following NEW packages will be installed:

==> default:   libc6-i386

==> default: 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

==> default: Need to get 3,975 kB of archives.

==> default: After this operation, 9,692 kB of additional disk space will be used.

==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc6-i386 amd64 2.15-0ubuntu10.15 [3,975 kB]

==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory

==> default: Fetched 3,975 kB in 2s (1,962 kB/s)

==> default: Selecting previously unselected package libc6-i386.

==> default: (Reading database ... 

==> default: 66240 files and directories currently installed.)

==> default: Unpacking libc6-i386 (from .../libc6-i386_2.15-0ubuntu10.15_amd64.deb) ...

==> default: Setting up libc6-i386 (2.15-0ubuntu10.15) ...

==> default: Processing triggers for libc-bin ...

==> default: ldconfig deferred processing now taking place

==> default: Reading package lists...

==> default: Building dependency tree...

==> default: Reading state information...

==> default: The following extra packages will be installed:

==> default:   git-man liberror-perl

==> default: Suggested packages:

==> default:   git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn

==> default:   git-email git-gui gitk gitweb

==> default: The following NEW packages will be installed:

==> default:   git git-man liberror-perl

==> default: 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.

==> default: Need to get 6,759 kB of archives.

==> default: After this operation, 15.2 MB of additional disk space will be used.

==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB]

==> default: Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main git-man all 1:1.7.9.5-1ubuntu0.3 [632 kB]

==> default: Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main git amd64 1:1.7.9.5-1ubuntu0.3 [6,103 kB]

==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory

==> default: Fetched 6,759 kB in 4s (1,511 kB/s)

==> default: Selecting previously unselected package liberror-perl.

==> default: (Reading database ... 

==> default: 66547 files and directories currently installed.)

==> default: Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...

==> default: Selecting previously unselected package git-man.

==> default: Unpacking git-man (from .../git-man_1%3a1.7.9.5-1ubuntu0.3_all.deb) ...

==> default: Selecting previously unselected package git.

==> default: Unpacking git (from .../git_1%3a1.7.9.5-1ubuntu0.3_amd64.deb) ...

==> default: Processing triggers for man-db ...

==> default: Setting up liberror-perl (0.17-1) ...

==> default: Setting up git-man (1:1.7.9.5-1ubuntu0.3) ...

==> default: Setting up git (1:1.7.9.5-1ubuntu0.3) ...

==> default: Updating Git submodules...

==> default: Synchronizing submodule url for 'src/libs/AT-commander'

==> default: Synchronizing submodule url for 'src/libs/BSP'

==> default: Synchronizing submodule url for 'src/libs/CDL'

==> default: Synchronizing submodule url for 'src/libs/MLA'

==> default: Synchronizing submodule url for 'src/libs/STBTLE'

==> default: Synchronizing submodule url for 'src/libs/arduino.mk'

==> default: Synchronizing submodule url for 'src/libs/bitfield-c'

==> default: Synchronizing submodule url for 'src/libs/cJSON'

==> default: Synchronizing submodule url for 'src/libs/cmp'

==> default: Synchronizing submodule url for 'src/libs/emqueue'

==> default: Synchronizing submodule url for 'src/libs/http-parser'

==> default: Synchronizing submodule url for 'src/libs/isotp-c'

==> default: Synchronizing submodule url for 'src/libs/nanopb'

==> default: Synchronizing submodule url for 'src/libs/nxpUSBlib'

==> default: Synchronizing submodule url for 'src/libs/openxc-message-format'

==> default: Synchronizing submodule url for 'src/libs/uds-c'

==> default: Installing Python development headers...

==> default: Reading package lists...

==> default: Building dependency tree...

==> default: Reading state information...

==> default: The following extra packages will be installed:

==> default:   libexpat1-dev libssl-dev libssl-doc python2.7-dev zlib1g-dev

==> default: The following NEW packages will be installed:

==> default:   libexpat1-dev libssl-dev libssl-doc python-dev python2.7-dev zlib1g-dev

==> default: 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.

==> default: Need to get 32.5 MB of archives.

==> default: After this operation, 48.4 MB of additional disk space will be used.

==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libexpat1-dev amd64 2.0.1-7.2ubuntu1.4 [216 kB]

==> default: Get:2 http://archive.ubuntu.com/ubuntu/ precise/main zlib1g-dev amd64 1:1.2.3.4.dfsg-3ubuntu4 [165 kB]

==> default: Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl-dev amd64 1.0.1-4ubuntu5.36 [1,580 kB]

==> default: Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl-doc all 1.0.1-4ubuntu5.36 [1,042 kB]

==> default: Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-dev amd64 2.7.3-0ubuntu3.8 [29.5 MB]

==> default: Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-dev amd64 2.7.3-0ubuntu2.2 [1,090 B]

==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory

==> default: Fetched 32.5 MB in 15s (2,109 kB/s)

==> default: Selecting previously unselected package libexpat1-dev.

==> default: (Reading database ... 

==> default: 67196 files and directories currently installed.)

==> default: Unpacking libexpat1-dev (from .../libexpat1-dev_2.0.1-7.2ubuntu1.4_amd64.deb) ...

==> default: Selecting previously unselected package zlib1g-dev.

==> default: Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3ubuntu4_amd64.deb) ...

==> default: Selecting previously unselected package libssl-dev.

==> default: Unpacking libssl-dev (from .../libssl-dev_1.0.1-4ubuntu5.36_amd64.deb) ...

==> default: Selecting previously unselected package libssl-doc.

==> default: Unpacking libssl-doc (from .../libssl-doc_1.0.1-4ubuntu5.36_all.deb) ...

==> default: Selecting previously unselected package python2.7-dev.

==> default: Unpacking python2.7-dev (from .../python2.7-dev_2.7.3-0ubuntu3.8_amd64.deb) ...

==> default: Selecting previously unselected package python-dev.

==> default: Unpacking python-dev (from .../python-dev_2.7.3-0ubuntu2.2_amd64.deb) ...

==> default: Processing triggers for man-db ...

==> default: Setting up libexpat1-dev (2.0.1-7.2ubuntu1.4) ...

==> default: Setting up zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu4) ...

==> default: Setting up libssl-dev (1.0.1-4ubuntu5.36) ...

==> default: Setting up libssl-doc (1.0.1-4ubuntu5.36) ...

==> default: Setting up python2.7-dev (2.7.3-0ubuntu3.8) ...

==> default: Setting up python-dev (2.7.3-0ubuntu2.2) ...

==> default: Installing Pip...

==> default: Reading package lists...

==> default: Building dependency tree...

==> default: Reading state information...

==> default: The following NEW packages will be installed:

==> default:   python-setuptools

==> default: 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

==> default: Need to get 441 kB of archives.

==> default: After this operation, 1,068 kB of additional disk space will be used.

==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise/main python-setuptools all 0.6.24-1ubuntu1 [441 kB]

==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory

==> default: Fetched 441 kB in 0s (659 kB/s)

==> default: Selecting previously unselected package python-setuptools.

==> default: (Reading database ... 

==> default: 68791 files and directories currently installed.)

==> default: Unpacking python-setuptools (from .../python-setuptools_0.6.24-1ubuntu1_all.deb) ...

==> default: Setting up python-setuptools (0.6.24-1ubuntu1) ...

==> default: Searching for pip

==> default: Reading http://pypi.python.org/simple/pip/

==> default: Best match: pip 8.1.2

==> default: Downloading https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a

==> default: Processing pip-8.1.2.tar.gz

==> default: Running pip-8.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-H1a4wE/pip-8.1.2/egg-dist-tmp-8pWTwA

==> default: warning: no previously-included files found matching '.coveragerc'

==> default: warning: no previously-included files found matching '.mailmap'

==> default: warning: no previously-included files found matching '.travis.yml'

==> default: warning: no previously-included files found matching '.landscape.yml'

==> default: warning: no previously-included files found matching 'pip/_vendor/Makefile'

==> default: warning: no previously-included files found matching 'tox.ini'

==> default: warning: no previously-included files found matching 'dev-requirements.txt'

==> default: warning: no previously-included files found matching 'appveyor.yml'

==> default: no previously-included directories found matching '.github'

==> default: no previously-included directories found matching '.travis'

==> default: no previously-included directories found matching 'docs/_build'

==> default: no previously-included directories found matching 'contrib'

==> default: no previously-included directories found matching 'tasks'

==> default: no previously-included directories found matching 'tests'

==> default: Adding pip 8.1.2 to easy-install.pth file

==> default: Installing pip script to /usr/local/bin

==> default: Installing pip2.7 script to /usr/local/bin

==> default: Installing pip2 script to /usr/local/bin

==> default: 

==> default: Installed /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg

==> default: Processing dependencies for pip

==> default: Finished processing dependencies for pip

==> default: The directory '/home/vagrant/.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.

==> default: The directory '/home/vagrant/.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.

==> default: Collecting openxc==0.13.0 (from -r /home/vagrant/vi-firmware/script/bootstrap/ci-requirements.txt (line 1))

==> default: /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.

==> default:   SNIMissingWarning

==> default: /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

==> default:   InsecurePlatformWarning

==> default:   Downloading openxc-0.13.0.tar.gz (50kB)

==> default: Collecting pyusb==1.0.0a3 (from openxc==0.13.0->-r /home/vagrant/vi-firmware/script/bootstrap/ci-requirements.txt (line 1))

==> default:   Downloading pyusb-1.0.0a3.tar.gz (40kB)

==> default: Collecting units>=0.5 (from openxc==0.13.0->-r /home/vagrant/vi-firmware/script/bootstrap/ci-requirements.txt (line 1))

==> default:   Downloading units-0.06.tar.gz

==> default: Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7 (from openxc==0.13.0->-r /home/vagrant/vi-firmware/script/bootstrap/ci-requirements.txt (line 1))

==> default: Collecting requests==2.4.1 (from openxc==0.13.0->-r /home/vagrant/vi-firmware/script/bootstrap/ci-requirements.txt (line 1))

==> default:   Downloading requests-2.4.1-py2.py3-none-any.whl (458kB)

==> default: Collecting protobuf==2.6.1 (from openxc==0.13.0->-r /home/vagrant/vi-firmware/script/bootstrap/ci-requirements.txt (line 1))

==> default:   Downloading protobuf-2.6.1.tar.gz (188kB)

==> default: Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from protobuf==2.6.1->openxc==0.13.0->-r /home/vagrant/vi-firmware/script/bootstrap/ci-requirements.txt (line 1))

==> default: Installing collected packages: pyusb, units, requests, protobuf, openxc

==> default:   Running setup.py install for pyusb: started

==> default:     Running setup.py install for pyusb: finished with status 'done'

==> default:   Running setup.py install for units: started

==> default:     Running setup.py install for units: finished with status 'done'

==> default:   Running setup.py install for protobuf: started

==> default:     Running setup.py install for protobuf: finished with status 'done'

==> default:   Running setup.py install for openxc: started

==> default:     Running setup.py install for openxc: finished with status 'done'

==> default: Successfully installed openxc-0.13.0 protobuf-2.6.1 pyusb-1.0.0a3 requests-2.4.1 units-0.6

==> default: /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

==> default:   InsecurePlatformWarning

==> default: The directory '/home/vagrant/.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.

==> default: The directory '/home/vagrant/.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.

==> default: Collecting Fabric==1.9.0 (from -r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default: /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.

==> default:   SNIMissingWarning

==> default: /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

==> default:   InsecurePlatformWarning

==> default:   Downloading Fabric-1.9.0-py2-none-any.whl (92kB)

==> default: Collecting ecdsa==0.11 (from -r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 2))

==> default:   Downloading ecdsa-0.11.tar.gz (45kB)

==> default: Collecting prettyprint==0.1.5 (from -r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 3))

==> default:   Downloading prettyprint-0.1.5.tar.gz

==> default: Collecting paramiko>=1.10 (from Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading paramiko-2.0.0-py2.py3-none-any.whl (170kB)

==> default: Collecting pyasn1>=0.1.7 (from paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading pyasn1-0.1.9-py2.py3-none-any.whl

==> default: Collecting cryptography>=1.1 (from paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading cryptography-1.4.tar.gz (399kB)

==> default: Collecting idna>=2.0 (from cryptography>=1.1->paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading idna-2.1-py2.py3-none-any.whl (54kB)

==> default: Collecting six>=1.4.1 (from cryptography>=1.1->paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading six-1.10.0-py2.py3-none-any.whl

==> default: Collecting setuptools>=11.3 (from cryptography>=1.1->paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading setuptools-23.0.0-py2.py3-none-any.whl (435kB)

==> default: Collecting enum34 (from cryptography>=1.1->paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading enum34-1.1.6-py2-none-any.whl

==> default: Collecting ipaddress (from cryptography>=1.1->paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading ipaddress-1.0.16-py27-none-any.whl

==> default: Collecting cffi>=1.4.1 (from cryptography>=1.1->paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading cffi-1.7.0.tar.gz (400kB)

==> default: Collecting pycparser (from cffi>=1.4.1->cryptography>=1.1->paramiko>=1.10->Fabric==1.9.0->-r /home/vagrant/vi-firmware/script/bootstrap/pip-requirements.txt (line 1))

==> default:   Downloading pycparser-2.14.tar.gz (223kB)

==> default: Installing collected packages: pyasn1, idna, six, setuptools, enum34, ipaddress, pycparser, cffi, cryptography, paramiko, Fabric, ecdsa, prettyprint

==> default:   Found existing installation: pyasn1 0.0.11a0

==> default:     Uninstalling pyasn1-0.0.11a0:

==> default:       Successfully uninstalled pyasn1-0.0.11a0

==> default:   Found existing installation: setuptools 0.6rc11

==> default:     DEPRECATION: Uninstalling a distutils installed project (setuptools) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.

==> default:     Uninstalling setuptools-0.6rc11:

==> default:       Successfully uninstalled setuptools-0.6rc11

==> default:   Running setup.py install for pycparser: started

==> default:     Running setup.py install for pycparser: finished with status 'done'

==> default:   Running setup.py install for cffi: started

==> default:     Running setup.py install for cffi: finished with status 'error'

==> default:     Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-fRKq4Q/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-N4_DN5-record/install-record.txt --single-version-externally-managed --compile:

==> default:     running install

==> default:     running build

==> default:     running build_py

==> default:     creating build

==> default:     creating build/lib.linux-x86_64-2.7

==> default:     creating build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/recompiler.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/lock.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/cparser.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/vengine_gen.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/ffiplatform.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/model.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/__init__.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/commontypes.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/api.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/verifier.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/_cffi_include.h -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/parse_c_type.h -> build/lib.linux-x86_64-2.7/cffi

==> default:     copying cffi/_embedding.h -> build/lib.linux-x86_64-2.7/cffi

==> default:     running build_ext

==> default:     building '_cffi_backend' extension

==> default:     creating build/temp.linux-x86_64-2.7

==> default:     creating build/temp.linux-x86_64-2.7/c

==> default:     gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o

==> default:     c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory

==> default:     compilation terminated.

==> default:     error: command 'gcc' failed with exit status 1

==> default:     

==> default:     ----------------------------------------

==> default: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-fRKq4Q/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-N4_DN5-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-fRKq4Q/cffi/

==> default: /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

==> default:   InsecurePlatformWarning

The SSH command responded with a non-zero exit status. Vagrant

assumes that this means the command failed. The output for this command

should be in the log above. Please read the output to determine what

went wrong.


I don't know how to proceed. Any advice would be appreciated.


Kyle

Eric Marsman

unread,
Jun 21, 2016, 3:27:44 PM6/21/16
to OpenXC
Ah yes, something changed in the CFFI dependencies that I wasn't able to track down. I saw this last week. I was able to fix it by doing

% vagrant ssh
sudo apt-get install libffi-dev
% exit
% vagrant up --provision

And then it will continue on. Check that log and make sure it completes successfully.

Regards,
Eric

Eric Marsman

unread,
Jun 21, 2016, 4:18:01 PM6/21/16
to ope...@googlegroups.com
Forgot one. Before exiting vagrant, run

% sudo pip install cffi

The provision should do this for you, but this will make sure the dependencies are correct before moving on.

From: Eric Marsman
Sent: ‎6/‎21/‎2016 3:27 PM
To: OpenXC
Subject: Re: [OpenXC] Problem using Vagrant in Windows

[The entire original message is not included.]

Kyle Kelly

unread,
Jun 22, 2016, 2:22:03 PM6/22/16
to OpenXC
Thanks! Completely resolved the issue.

pmathe...@gmail.com

unread,
Feb 7, 2017, 4:34:15 AM2/7/17
to OpenXC
Hi Eric,

I'm getting pretty much exactly the same problem as listed above. I enter the final command you've listed into the VM shell (% sudo pip install cffi), then I exit, then run 'vagrant up --provision' in the windows shell but I get the following:

~\version-control\vi-firmware [master]> vagrant up --provision
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/precise64' is up to date...
==> default: Configuring proxy for Apt...
==> default: Configuring proxy environment variables...
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: ln:
==> default: failed to create symbolic link `vi-firmware/vagrant'
==> default: : Protocol error
==> default: ~/vi-firmware ~
==> default: Storing all downloaded dependencies in the "dependencies" folder
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: libc6-i386 is already the newest version.
==> default: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
==> default: Updating Git submodules...
==> default: Synchronizing submodule url for 'src/libs/AT-commander'
==> default: Synchronizing submodule url for 'src/libs/BSP'
==> default: Synchronizing submodule url for 'src/libs/CDL'
==> default: Synchronizing submodule url for 'src/libs/MLA'
==> default: Synchronizing submodule url for 'src/libs/STBTLE'
==> default: Synchronizing submodule url for 'src/libs/arduino.mk'
==> default: Synchronizing submodule url for 'src/libs/bitfield-c'
==> default: Synchronizing submodule url for 'src/libs/cJSON'
==> default: Synchronizing submodule url for 'src/libs/cmp'
==> default: Synchronizing submodule url for 'src/libs/emqueue'
==> default: Synchronizing submodule url for 'src/libs/http-parser'
==> default: Synchronizing submodule url for 'src/libs/isotp-c'
==> default: Synchronizing submodule url for 'src/libs/nanopb'
==> default: Synchronizing submodule url for 'src/libs/nxpUSBlib'
==> default: Synchronizing submodule url for 'src/libs/openxc-message-format'
==> default: Synchronizing submodule url for 'src/libs/uds-c'
==> default: Installing Python development headers...
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: python-dev is already the newest version.
==> default: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
==> default: Traceback (most recent call last):
==> default:   File "/usr/local/bin/pip", line 5, in <module>
==> default:
==> default: from pkg_resources import load_entry_point
==> default:   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init
__.py", line 72, in <module>
==> default:
==> default: import packaging.requirements
==> default:   File "/usr/local/lib/python2.7/dist-packages/packaging/requiremen
ts.py", line 59, in <module>
==> default:
==> default: MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
==> default: TypeError
==> default: :
==> default: __call__() takes exactly 2 arguments (1 given)
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
~\version-control\vi-firmware [master]>


Are there any additional commands I need to execute?

Cheers,
Paul Matheson.

Eric Marsman

unread,
Feb 7, 2017, 11:12:59 AM2/7/17
to OpenXC
Hi Paul,

From your log, it seems like you're having a different issue. Did you originally have cffi install problems? That should be fixed since this thread. 

I was able to reproduce your problem on a clean install. It looks like the latest pip 9.0.1 is causing a problem. I would do the following:


% vagrant ssh
% sudo python -m pip install --upgrade --force pip==9.0.0 ; roll back
% sudo pip install --upgrade --force packaging ; fix bad package
% sudo pip install openxc ; this is just to test you don't get the same error
% exit
% vagrant halt
% vagrant up --provision

Not sure what recent update to python/pip packages is causing this. I'm assuming it's temporary. 9.0.1 was just released in Nov. They have a pending 9.1.0, but I don't see any mention of this issue:


Regards,
Eric
Reply all
Reply to author
Forward
Message has been deleted
0 new messages