Installing 0.6 fails

Bug #936695 reported by Christopher Wilson on 2012-02-20
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-msp430-tools
Undecided
zsquareplusc

Bug Description

$ pip install pyserial python-msp430-tools
Downloading/unpacking pyserial
  Downloading pyserial-2.6.tar.gz (116Kb): 116Kb downloaded
  Running setup.py egg_info for package pyserial

    warning: no files found matching 'examples/miniterm.py'
    warning: no files found matching 'test/test_io_lib.py'
Downloading/unpacking python-msp430-tools
  Downloading python-msp430-tools-0.6.tar.gz (237Kb): 237Kb downloaded
  Running setup.py egg_info for package python-msp430-tools

    warning: no files found matching 'CHANGES.txt'
    warning: no files found matching 'scripts/msp430-bsl-legacy'
    warning: no files found matching 'scripts/msp430-bsl'
    warning: no files found matching 'scripts/msp430-compare'
    warning: no files found matching 'scripts/msp430-convert'
    warning: no files found matching 'scripts/msp430-downloader'
    warning: no files found matching 'scripts/msp430-gdb'
    warning: no files found matching 'scripts/msp430-generate'
    warning: no files found matching 'scripts/msp430-hexdump'
    warning: no files found matching 'scripts/msp430-jtag-legacy'
    warning: no files found matching 'scripts/msp430-jtag'
    warning: no files found matching 'scripts/msp430-ram-usage'
    warning: no files found matching 'scripts/msp430-tool'
Installing collected packages: pyserial, python-msp430-tools
  Running setup.py install for pyserial
    changing mode of build/scripts-2.7/miniterm.py from 644 to 755

    warning: no files found matching 'examples/miniterm.py'
    warning: no files found matching 'test/test_io_lib.py'
    changing mode of /Users/cwilson/.virtualenvs/tmp/bin/miniterm.py to 755
  Running setup.py install for python-msp430-tools
    error: file '/Users/cwilson/.virtualenvs/tmp/build/python-msp430-tools/scripts/msp430-bsl' does not exist
    Complete output from command /Users/cwilson/.virtualenvs/tmp/bin/python -c "import setuptools;__file__='/Users/cwilson/.virtualenvs/tmp/build/python-msp430-tools/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/fx/lrsxqgz17hn9pp1g_zfr41140000gn/T/pip-MjF7nJ-record/install-record.txt --install-headers /Users/cwilson/.virtualenvs/tmp/bin/../include/site/python2.7:
    running install

running build

running build_py

creating build

creating build/lib

creating build/lib/msp430

copying msp430/__init__.py -> build/lib/msp430

copying msp430/target.py -> build/lib/msp430

creating build/lib/msp430/asm

copying msp430/asm/__init__.py -> build/lib/msp430/asm

copying msp430/asm/as.py -> build/lib/msp430/asm

copying msp430/asm/cpp.py -> build/lib/msp430/asm

copying msp430/asm/disassemble.py -> build/lib/msp430/asm

copying msp430/asm/forth.py -> build/lib/msp430/asm

copying msp430/asm/h2forth.py -> build/lib/msp430/asm

copying msp430/asm/infix2postfix.py -> build/lib/msp430/asm

copying msp430/asm/ld.py -> build/lib/msp430/asm

copying msp430/asm/lib.py -> build/lib/msp430/asm

copying msp430/asm/mcu_definition_parser.py -> build/lib/msp430/asm

copying msp430/asm/peripherals.py -> build/lib/msp430/asm

copying msp430/asm/rpn.py -> build/lib/msp430/asm

creating build/lib/msp430/bsl

copying msp430/bsl/__init__.py -> build/lib/msp430/bsl

copying msp430/bsl/bsl.py -> build/lib/msp430/bsl

creating build/lib/msp430/bsl/target

copying msp430/bsl/target/__init__.py -> build/lib/msp430/bsl/target

copying msp430/bsl/target/__main__.py -> build/lib/msp430/bsl/target

copying msp430/bsl/target/fcdprog.py -> build/lib/msp430/bsl/target

copying msp430/bsl/target/telosb.py -> build/lib/msp430/bsl/target

creating build/lib/msp430/bsl5

copying msp430/bsl5/__init__.py -> build/lib/msp430/bsl5

copying msp430/bsl5/bsl5.py -> build/lib/msp430/bsl5

copying msp430/bsl5/hid.py -> build/lib/msp430/bsl5

copying msp430/bsl5/uart.py -> build/lib/msp430/bsl5

creating build/lib/msp430/gdb

copying msp430/gdb/__init__.py -> build/lib/msp430/gdb

copying msp430/gdb/gdb.py -> build/lib/msp430/gdb

copying msp430/gdb/target.py -> build/lib/msp430/gdb

creating build/lib/msp430/jtag

copying msp430/jtag/__init__.py -> build/lib/msp430/jtag

copying msp430/jtag/clock.py -> build/lib/msp430/jtag

copying msp430/jtag/dco.py -> build/lib/msp430/jtag

copying msp430/jtag/HIL.py -> build/lib/msp430/jtag

copying msp430/jtag/hilspi.py -> build/lib/msp430/jtag

copying msp430/jtag/jtag.py -> build/lib/msp430/jtag

copying msp430/jtag/profile.py -> build/lib/msp430/jtag

copying msp430/jtag/target.py -> build/lib/msp430/jtag

creating build/lib/msp430/legacy

copying msp430/legacy/__init__.py -> build/lib/msp430/legacy

copying msp430/legacy/bsl.py -> build/lib/msp430/legacy

creating build/lib/msp430/listing

copying msp430/listing/__init__.py -> build/lib/msp430/listing

copying msp430/listing/iar.py -> build/lib/msp430/listing

copying msp430/listing/mspgcc.py -> build/lib/msp430/listing

creating build/lib/msp430/memory

copying msp430/memory/__init__.py -> build/lib/msp430/memory

copying msp430/memory/bin.py -> build/lib/msp430/memory

copying msp430/memory/compare.py -> build/lib/msp430/memory

copying msp430/memory/convert.py -> build/lib/msp430/memory

copying msp430/memory/elf.py -> build/lib/msp430/memory

copying msp430/memory/error.py -> build/lib/msp430/memory

copying msp430/memory/generate.py -> build/lib/msp430/memory

copying msp430/memory/hexdump.py -> build/lib/msp430/memory

copying msp430/memory/intelhex.py -> build/lib/msp430/memory

copying msp430/memory/titext.py -> build/lib/msp430/memory

creating build/lib/msp430/shell

copying msp430/shell/__init__.py -> build/lib/msp430/shell

copying msp430/shell/command.py -> build/lib/msp430/shell

copying msp430/shell/watch.py -> build/lib/msp430/shell

creating build/lib/msp430/asm/definitions

copying msp430/asm/definitions/msp430-mcu-list.txt -> build/lib/msp430/asm/definitions

copying msp430/bsl/BL_150S_14x.txt -> build/lib/msp430/bsl

copying msp430/bsl/BL_150S_44x.txt -> build/lib/msp430/bsl

copying msp430/bsl/BS_150S_14x.txt -> build/lib/msp430/bsl

copying msp430/bsl/patch.txt -> build/lib/msp430/bsl

copying msp430/bsl5/RAM_BSL.00.05.04.34.txt -> build/lib/msp430/bsl5

running build_scripts

creating build/scripts-2.7

error: file '/Users/cwilson/.virtualenvs/tmp/build/python-msp430-tools/scripts/msp430-bsl' does not exist

----------------------------------------
Command /Users/cwilson/.virtualenvs/tmp/bin/python -c "import setuptools;__file__='/Users/cwilson/.virtualenvs/tmp/build/python-msp430-tools/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/fx/lrsxqgz17hn9pp1g_zfr41140000gn/T/pip-MjF7nJ-record/install-record.txt --install-headers /Users/cwilson/.virtualenvs/tmp/bin/../include/site/python2.7 failed with error code 1
Storing complete log in /Users/cwilson/.pip/pip.log

Related branches

Changed in python-msp430-tools:
assignee: nobody → zsquareplusc (zsquareplusc)
Changed in python-msp430-tools:
status: New → Confirmed
status: Confirmed → Fix Committed
Hashish (hashish) wrote :

Still not fixed in the PyPi repository.

ali65 (albert-kurucz) wrote :

I confirm, problem does not exist when installing from latest bzr branch.
But PyPi still has a broken 0.6.
Could someone kindly release a fixed version to PyPi(0.7?) ?
It is so much more convenient to use std setup tools.

Pedro Issa Helou (helou-pedro) wrote :

was it fixed?

mike7c2 (mike7c2) wrote :

PyPi still has a broken setup script.

To workaround this problem open setup.py and add ".py" to each of the paths in the scripts section.

Dirk Osswald (dirk-osswald) wrote :

Almost 2 years later the problem still exists - in the PyPI package.

Fortunately pip can access bzr/launchpad repositories directly (provided that the bzr commands are avaialable). So to save others, who are not pip/bzr/launchpad experts (like me one hour ago), some time, here is the command that installs the version 0.7 of python-msp430-tools directly from the bzr repository at launchpad:

pip install -e bzr+lp:python-msp430-tools#egg=python-msp430-tools

On Linux you might have to prepend "sudo" before the command,
and you might have to install bzr first ("sudo apg-get install bzr").

Didn't get it to install on Windows yet...

Vasya (pathfinder2) wrote :

I'm try to do this
pip install -e bzr+lp:python-msp430-tools#egg=python-msp430-tools
and got an error:
Obtaining python-msp430-tools from bzr+lp:python-msp430-tools#egg=python-msp430-tools
  Checking out lp:python-msp430-tools to d:\download\msp430\python-msp430-tools\src\python-msp430-tools
bzr: ERROR: Connection error: Unable to authenticate to SSH host as
  <email address hidden>
supported auth types: ['publickey']
Command "bzr branch -q lp:python-msp430-tools D:\Download\MSP430\python-msp430-tools\src\python-msp430-tools" failed with error code 3 in None
What i'm doing wrong?

Vasya (pathfinder2) wrote :

mike7c2 (mike7c2), Thanks a lot. I'm patch the setup script and tools to be installed.))

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers