#2470 closed defect (duplicate)

Build Failure AttributeError 'module' has no 'version'

Reported by: BillChappell Owned by: daira
Priority: normal Milestone: 1.10.2
Component: packaging Version: 1.10.1
Keywords: build failure AttributeError mock Cc:
Launchpad Bug:

Description

Building Tahoe 1.10.1 from source on Ubuntu 12.04 LTS. When I run "python setup.py build", I first see a warning while pyOpenSSL-0.13.1/setup.py is running that “no previously-included files matching ‘*.pyc’ found anywhere in distribution”. The build ends with message “AttributeError?: ‘module’ object has no attribute ‘version’”. I then run "python setup.py build" again and it finishes cleanly, creating a tahoe binary that uploads and downloads via the Web UI (have not tested all modes).

Change History (3)

comment:1 Changed at 2015-07-17T21:39:04Z by daira

  • Component changed from unknown to packaging
  • Keywords mock added
  • Milestone changed from undecided to 1.10.2
  • Priority changed from minor to normal
  • Resolution set to duplicate
  • Status changed from new to closed

“no previously-included files matching '*.pyc' found anywhere in distribution” is a harmless warning.

“AttributeError: 'module' object has no attribute 'version'” is a duplicate of #2465 (when mock 1.1.3 is used).

comment:2 follow-up: Changed at 2015-07-28T23:15:20Z by BillChappell

I am wondering if it makes sense that immediately running "python setup.py build" a second time results in an apparently clean build, generating a tahoe executable in the bin directory which apparently works fine.

comment:3 in reply to: ↑ 2 Changed at 2015-07-28T23:27:07Z by daira

Replying to BillChappell:

I am wondering if it makes sense that immediately running "python setup.py build" a second time results in an apparently clean build, generating a tahoe executable in the bin directory which apparently works fine.

That's because the version of mock that will be downloaded is (unfortunately) nondeterministic.

Note: See TracTickets for help on using tickets.