You are not logged in.

#1 2015-06-01 03:25:04

b2bwild
Member
Registered: 2015-05-31
Posts: 2

Python Import failures while installing unqlite

I'm trying to install unqlite-python but I'm getting following error.

File "ctypesgen/ctypesgen.py", line 38, in <module>
        import ctypesgencore
      File "/tmp/pip-build-5mqtbyod/unqlite/ctypesgen/ctypesgencore/__init__.py", line 60, in <module>
        import descriptions
    ImportError: No module named 'descriptions'

I've installed required dependancies, the 'descriptions' module happens to be the one in the exact same folder as __init__.py
I've had similar problem in my project earlier but I don't remember what fixed it.

I tried to install unqlite with pip on OS X 10.10 and Fedora 22, where it installed without any errors, the problem only persists for Arch Linux, so it seems it's more Arch related.. maybe?

I also tried if I can recreate the error in Arch Linux but import seems to work fine, Currently the problem seems to be with only this specific package.

Offline

#2 2015-06-01 03:37:33

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Python Import failures while installing unqlite

What version of Python does unqlite-python use? The default Python executable on Arch is currently Python 3.

Please provide more explicit information when seeking help on the forum. Tell us exactly how you installed unqlite-python (with pip?) and provide the actual commands or script that generates the error.

b2bwild wrote:

I also tried if I can recreate the error in Arch Linux but import seems to work fine, Currently the problem seems to be with only this specific package.

Which error?  Is the error in your post generated on Arch Linux or not?

Incidentally, you should avoid installing modules directly with pip and learn how to make a PKGBUILD instead (python-unqlite).


I'm moving this to the beginners' subforum for now but I expect that it will end up in "Creating & Modifying Packages".


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2015-06-01 05:53:48

b2bwild
Member
Registered: 2015-05-31
Posts: 2

Re: Python Import failures while installing unqlite

I tried installing unqlite on both Python 2 and Python 3

with

sudo pip2 install unqlite

and

sudo pip3 install unqlite

I get the above error for both Python versions, (2.7.10 and 3.4.3)..  on Arch Linux only.

.
├── ctypesgen
│   ├── ctypesgencore
│   │   ├── ctypedescs.py
│   │   ├── descriptions.py
│   │   ├── expressions.py
│   │   ├── __init__.py
│   │   ├── libraryloader.py
│   │   ├── messages.py
│   │   ├── old libraryloader.py
│   │   ├── options.py
│   │   ├── parser
│   │   │   ├── cdeclarations.py
│   │   │   ├── cgrammar.py
│   │   │   ├── cparser.py
│   │   │   ├── ctypesparser.py
│   │   │   ├── datacollectingparser.py
│   │   │   ├── __init__.py
│   │   │   ├── lex.py
│   │   │   ├── lextab.py
│   │   │   ├── parsetab.py
│   │   │   ├── pplexer.py
│   │   │   ├── preprocessor.py
│   │   │   └── yacc.py
│   │   ├── printer
│   │   │   ├── defaultheader.py
│   │   │   ├── __init__.py
│   │   │   ├── preamble.py
│   │   │   ├── printer.py
│   │   │   └── test.py
│   │   └── processor
│   │       ├── dependencies.py
│   │       ├── __init__.py
│   │       ├── operations.py
│   │       └── pipeline.py
│   ├── ctypesgen.py
│   └── __init__.py
├── docs
│   ├── api.rst
│   ├── conf.py
│   ├── index.rst
│   ├── installation.rst
│   ├── Makefile
│   └── quickstart.rst
├── LICENSE
├── MANIFEST.in
├── README.md
├── setup.py
└── unqlite
    ├── core.py
    ├── __init__.py
    ├── src
    │   ├── unqlite.c
    │   └── unqlite.h
    └── tests.py

I tried to get similar error by creating similar module structure but it worked fine..
I get the error when I try to build the module manually with

python setup.py build

as you can see, build throws error for every local module in unqlite directory.. i.e 'printer', 'parser','processor'.. followed by 'descriptions', 'options' etc.

Secondly, I maintain different virtualenviroments for my each project so installing with pip is fairly safe.
The system wide python modules are installed with pacman only.

Last edited by b2bwild (2015-06-01 05:54:32)

Offline

Board footer

Powered by FluxBB