pacman broke python 3.4.0 (from 3.3.5) & python2 packages?

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

pacman broke python 3.4.0 (from 3.3.5) & python2 packages?

Postby neep8 » Wed Apr 09, 2014 4:02 am

Updated today 'sudo pacman -Syu'

Python 3 library pybluez gives file not found errors, the adaptor is on as python bluetooth direct socket access works. Had to install quick2wire again but that is fine now.

$this->bbcode_second_pass_code('', 'raise BluetoothError (str (e))
bluetooth.btcommon.BluetoothError: (2, 'No such file or directory')
File "/usr/lib/python3.4/site-packages/bluetooth/bluez.py", line 236, in advertise_service')


Python2 is missing smbus and get pages of error when trying to install from tar.

The pybluez loss is the killer tho, everything worked perfectly before the update?
Does it need real root access rather than me sudoing?
I restored the image from a backup and repeated the process but still had problems of missing site-packages, still pybluez could not find something, socket access over bluetooth again worked, smbus had dissapeared with ciif or something, major problems with this also. So I restored again for the time being.

At a loss for now, anyone have an idea?

$this->bbcode_second_pass_code('', '$ sudo python2 setup.py install
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_BLOCK_DATA':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:498:20: error: 'I2C_SMBUS_BLOCK_DATA' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_BLOCK_DATA) && (I2C_SMBUS_BLOCK_DATA) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:498:20: note: each undeclared identifier is reported only once for each function it appears in
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_BLOCK_MAX':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:517:20: error: 'I2C_SMBUS_BLOCK_MAX' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_BLOCK_MAX) && (I2C_SMBUS_BLOCK_MAX) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_BLOCK_PROC_CALL':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:536:20: error: 'I2C_SMBUS_BLOCK_PROC_CALL' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_BLOCK_PROC_CALL) && (I2C_SMBUS_BLOCK_PROC_CALL) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_BYTE':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:555:20: error: 'I2C_SMBUS_BYTE' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_BYTE) && (I2C_SMBUS_BYTE) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_BYTE_DATA':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:574:20: error: 'I2C_SMBUS_BYTE_DATA' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_BYTE_DATA) && (I2C_SMBUS_BYTE_DATA) <= LONG_MAX)
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_I2C_BLOCK_BROKEN':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:593:20: error: 'I2C_SMBUS_I2C_BLOCK_BROKEN' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_I2C_BLOCK_BROKEN) && (I2C_SMBUS_I2C_BLOCK_BROKEN) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_I2C_BLOCK_DATA':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:612:20: error: 'I2C_SMBUS_I2C_BLOCK_DATA' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_I2C_BLOCK_DATA) && (I2C_SMBUS_I2C_BLOCK_DATA) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_PROC_CALL':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:631:20: error: 'I2C_SMBUS_PROC_CALL' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_PROC_CALL) && (I2C_SMBUS_PROC_CALL) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_QUICK':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:650:20: error: 'I2C_SMBUS_QUICK' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_QUICK) && (I2C_SMBUS_QUICK) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_READ':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:669:20: error: 'I2C_SMBUS_READ' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_READ) && (I2C_SMBUS_READ) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_WORD_DATA':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:688:20: error: 'I2C_SMBUS_WORD_DATA' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_WORD_DATA) && (I2C_SMBUS_WORD_DATA) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_const_I2C_SMBUS_WRITE':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:707:20: error: 'I2C_SMBUS_WRITE' undeclared (first use in this function)
if (LONG_MIN <= (I2C_SMBUS_WRITE) && (I2C_SMBUS_WRITE) <= LONG_MAX)
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_check_union_i2c_smbus_data':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:725:12: error: dereferencing pointer to incomplete type
(void)((p->byte) << 1);
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:726:12: error: dereferencing pointer to incomplete type
(void)((p->word) << 1);
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:727:33: error: dereferencing pointer to incomplete type
{ unsigned char(*tmp)[34] = &p->block; (void)tmp; }
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c: In function '_cffi_layout_union_i2c_smbus_data':
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:732:58: error: field 'y' has incomplete type
struct _cffi_aligncheck { char x; union i2c_smbus_data y; };
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:734:12: error: invalid application of 'sizeof' to incomplete type 'union i2c_smbus_data'
sizeof(union i2c_smbus_data),
^
In file included from smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:3:0:
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:736:20: error: invalid use of undefined type 'union i2c_smbus_data'
offsetof(union i2c_smbus_data, byte),
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:737:39: error: dereferencing pointer to incomplete type
sizeof(((union i2c_smbus_data *)0)->byte),
^
In file included from smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:3:0:
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:738:20: error: invalid use of undefined type 'union i2c_smbus_data'
offsetof(union i2c_smbus_data, word),
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:739:39: error: dereferencing pointer to incomplete type
sizeof(((union i2c_smbus_data *)0)->word),
^
In file included from smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:3:0:
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:740:20: error: invalid use of undefined type 'union i2c_smbus_data'
offsetof(union i2c_smbus_data, block),
^
smbus/__pycache__/_cffi__xc41ff28axd27e9e5c.c:741:39: error: dereferencing pointer to incomplete type
sizeof(((union i2c_smbus_data *)0)->block),
^
Traceback (most recent call last):
File "setup.py", line 7, in <module>
import smbus
File "/home/ross/smbus-cffi-0.1/smbus/__init__.py", line 1, in <module>
from .smbus import ffi
File "/home/ross/smbus-cffi-0.1/smbus/smbus.py", line 94, in <module>
""", ext_package='smbus')
File "/usr/lib/python2.7/site-packages/cffi/api.py", line 341, in verify
lib = self.verifier.load_library()
File "/usr/lib/python2.7/site-packages/cffi/verifier.py", line 74, in load_library
self._compile_module()
File "/usr/lib/python2.7/site-packages/cffi/verifier.py", line 139, in _compile_module
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "/usr/lib/python2.7/site-packages/cffi/ffiplatform.py", line 25, in compile
outputfilename = _build(tmpdir, ext)
File "/usr/lib/python2.7/site-packages/cffi/ffiplatform.py", line 50, in _build
raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'gcc' failed with exit status 1')
^
neep8
 
Posts: 1
Joined: Wed Apr 09, 2014 3:53 am

Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 7 guests