Skip to content
Advertisement

Tag: python-3.x

How to install Cartopy to python-3.5 on linux-32

When I try to install it throught conda apper message: Fetching package metadata ……… Solving package specifications: . PackageNotFoundError: Package not found: ” Package missing in current linux-32 channels: – cartopy Close matches found; did you mean one of these? You can search for packages on anaconda.org with When I run appear new message Packages: Name | Version | Package

Datastax Python cassandra driver build fails on Ubuntu

I was trying to install Datastax Python Cassandra driver on Ubuntu 14.04.5. LTS. Installation succeeds but subsequent attempt to use it fails with the error: Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-91-generic x86_64) ~$ python3 –version Python 3.5.2 ~$ python3 -c ‘import cassandra; print(cassandra.__version__)’ 3.7.0 ~$ python3 cassandra_loader.py Traceback (most recent call last): File “cassandra_loader.py”, line 7, in from cassandra_tools

How to compile python with PyInstaller in Linux

I am using Python 3.5.2 , PyQt 5.7 , PyInstaller 3.2 and I’m in Linux I can compile file.py with : pyinstaller file.py but when I run the binary file in Build folder it returns: Error loading Python lib ‘/home/arash/build/file/libpython3.5m.so.1.0’: /home/arash/build/file/libpython3.5m.so.1.0: cannot open shared object file: No such file or directory Where is the python library (.so file) to copy

Cython standalone executable on ubuntu

I want my cython program to be standalone executable on linux, not to be imported. After cython –embed i got a c file,now how can i make it executable? Answer I guess you have to compile the .c file you have obtained. Assuming you are using python 3.5 and don’t have to link to other libraries than python you can

Exposing python jupyter on LAN

I’ve installed jupyter on local network LAN but im unable to access http://<IP>:8888 from another macine on LAN. I’ve opened ports 8888 and port range 49152 to 65535 with iptables (this range is specified at http://jupyter-notebook.readthedocs.io/en/latest/public_server.html) This guide http://jupyter-notebook.readthedocs.io/en/latest/public_server.html describes exposing a notebook publicly but I’m just attempting to share over LAN. Have I missed a step ? Answer Try

How to avoid defunct python processes in Linux?

With python3 (3.4.3) on Ubuntu 14.04 I have created a Forker class which I use in two different processes to create child processes. Here is the Forker class: In the two different Linux processes I derive from this class and then call e.g. something like: However, I still get a couple of defunct python processes: Maybe there is something I

Improve MySQL Performance

Info: MySQL Community 5.7.12 64 bits Programming Language: Python 3.5 mysqld.cnf: Mysqld.cnf result of “show variables” show variables Description: – I have 200 000 tasks. – I process these tasks with 500 threads, one per task, when a thread finishes, another task start. The point of this is not to have more than 500 threads running. – I am creating

How do I handle POST requests in Twisted?

I’m trying to write a script where someone can type the name of a website into a box and my script will render the resources of that website. I’m not sure how to go about it, I’m thinking it would like something like this: This script just isn’t working, when the script I get an Error: Request did not return

Advertisement