Error installing python cassandra-driver 3.11

380 views
Skip to first unread message

buburuza smintita

unread,
Oct 17, 2017, 10:03:39 AM10/17/17
to DataStax Python Driver for Apache Cassandra User Mailing List
Hello,

i tried installing the current cassandra-driver on a windows 10 plattform using a Anaconda distribution with python 3.6. I tired the commands
- pip install cassandra-driver and
- pip install cassandra-driver --install-option="--no-cython".
With both Installation I recieve following error code:
[9/9] Cythonizing cassandra\row_parser.pyx
error: [WinError 2] Das System kann die angegebene Datei nicht finden
 (German for: the system is unable to find the given file)

I also tried downloading the sources from github and installing those. But I recieve the same error.

What am I doing wrong?

Thank you for your help
Best regards
Alex

Greg Bestland

unread,
Oct 17, 2017, 10:24:34 AM10/17/17
to python-dr...@lists.datastax.com
Alex,
You are likely missing some native library needed for the C extensions to build correctly.
For more information about those depedencies take a look here, http://datastax.github.io/python-driver/installation.html#cython-based-extensions

The quick and dirty fix is to use --no-cython when installing, this will bypass the cythonizing of the files, but will yield less overall performance.

~Thanks
Greg Bestland.


--
You received this message because you are subscribed to the Google Groups "DataStax Python Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.

Greg Bestland

unread,
Oct 17, 2017, 10:30:52 AM10/17/17
to python-dr...@lists.datastax.com
Alex,

I should have read your note more carefully. I see you already tried --no-cython. Alternatively you could set the environment variable CASS_DRIVER_NO_CYTHON=1. I'm wondering if there is something particular about anaconda which might cause the argument to be lost. 

~Thanks
Greg Bestland.


On Tue, Oct 17, 2017 at 9:24 AM, Greg Bestland <greg.b...@datastax.com> wrote:
Alex,
You are likely missing some native library needed for the C extensions to build correctly.
For more information about those depedencies take a look here, http://datastax.github.io/python-driver/installation.html#cython-based-extensions

The quick and dirty fix is to use --no-cython when installing, this will bypass the cythonizing of the files, but will yield less overall performance.

~Thanks
Greg Bestland.

On Tue, Oct 17, 2017 at 9:03 AM, 'buburuza smintita' via DataStax Python Driver for Apache Cassandra User Mailing List <python-driver-user@lists.datastax.com> wrote:
Hello,

i tried installing the current cassandra-driver on a windows 10 plattform using a Anaconda distribution with python 3.6. I tired the commands
- pip install cassandra-driver and
- pip install cassandra-driver --install-option="--no-cython".
With both Installation I recieve following error code:
[9/9] Cythonizing cassandra\row_parser.pyx
error: [WinError 2] Das System kann die angegebene Datei nicht finden
 (German for: the system is unable to find the given file)

I also tried downloading the sources from github and installing those. But I recieve the same error.

What am I doing wrong?

Thank you for your help
Best regards
Alex

--
You received this message because you are subscribed to the Google Groups "DataStax Python Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsubscribe@lists.datastax.com.


buburuza smintita

unread,
Oct 18, 2017, 2:58:08 AM10/18/17
to python-dr...@lists.datastax.com
Hi Greg,

Thank you for your advice. However, I still could not manage to install it. I have set the environment variable as suggested. While looking at the output I was recognizing on line. Even though I tried the options: "--no_cython", "--no-murmur3" and final "--no-libev" It is:
>> copying cassandra\io\libevwrapper.c -> build\lib.win-amd64-3.6\cassandra\io
>  running build_ext

>  error: [WinError 2] Das System kann die angegebene Datei nicht finden
My system seems to have trouble build the libewrapper.c class. I have already tried updating Cython ist is running in Version 0.27.1 now. Pip should be the current version with 9.0.1.

Is there any way to analyze further, why it is not building the package?

Thanks



To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.

buburuza smintita

unread,
Oct 18, 2017, 3:07:54 AM10/18/17
to python-dr...@lists.datastax.com
One aditional pice of information.

I had a closer look at the libewrapper.c file. Two classes are included:
- #include <Python.h> and
- #include <ev.h>.

I could find those within the downloaded sources. Do I need to include those classes out of the libev souce code? Or is there a binary, which could be included.

Thanks


To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsubscribe@lists.datastax.com.


Alan Boudreault

unread,
Oct 18, 2017, 7:52:13 AM10/18/17
to python-dr...@lists.datastax.com
Try to set the variable environment CASS_DRIVER_NO_EXTENSIONS=1, this will disable all extensions and provide the driver with its pure python implementation.


To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.



--

Alan Boudreault
Software Engineer (Drivers) | alan.bo...@datastax.com


buburuza smintita

unread,
Oct 20, 2017, 1:47:36 AM10/20/17
to python-dr...@lists.datastax.com
Hello,

Thank you all for your help. I solved it. But the environment variable didn't work.What did happen: I added python environment variables to my Windows system. Unlike the pure python installation Anaconda is not adding those to the system. After that the installation with worked with the normal comand: pip install cassandra-drivar --install-option="--no-extensions".

Maybee this will help others with similar problems.

Nevertheless I would als like to experience the complete optimized version. I will try to get it to run.

Best reards

2017-10-18 13:51 GMT+02:00 Alan Boudreault <alan.bo...@datastax.com>:
Try to set the variable environment CASS_DRIVER_NO_EXTENSIONS=1, this will disable all extensions and provide the driver with its pure python implementation.

To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsubscribe@lists.datastax.com.



--

Alan Boudreault
Software Engineer (Drivers) | alan.bo...@datastax.com


Reply all
Reply to author
Forward
0 new messages