Categories
Mastering Development

Compress string in php and decompress in python using zlib

I know this question has already been asked there: Compress string in php and decompress in python But there was no answer provided (discussion in chat has been lost). I want a PHP client to compress a string on its side, send it to the server as a string contained in a json, then I […]

Categories
Linux Mastering Development

emoji module names are not working in python3 [migrated]

I’m trying to use some emojis like these: 😀 😃 😄 😁 😆 😅 😂 🤣 ☺️ 😊 😇 🙂 🙃 😉 😌 😍 🥰 😘 😗 😙 😚 😋 😛 😝 😜 🤪 🤨 🧐 🤓 😎 🤩 🥳 😏 😒 😞 😔 😟 😕 🙁 ☹️ 😣 😖 😫 😩 🥺 😢 😭 […]

Categories
Mastering Development

How do I have multiple versions of numpy installed and how to I delete the early versions?

I do not understand how Python can have multiple versions of a single package installed, or why, when I have multiple versions installed, import package does not give me the most recent one. I am using AWS linux and the AWS repo. When I install Python 3.6 it gives me Numpy version 1.14.5 by default. […]

Categories
Mastering Development

How to coding to fix Fatal error detected : Failed to execute script BoxDetection after use auto-py-to-exe compile python code to exe file?

How to coding to fix Fatal error detected : Failed to execute script BoxDetection after use auto-py-to-exe compile python code to exe file? I learn to compile python code to exe file with vdo link https://www.youtube.com/watch?v=ZtBTrARHJps&list=WL&index=3&t=156s . I have problem to after use auto-py-to-exe compile python code to exe file and have popup error after […]

Categories
Linux Mastering Development Ubuntu

how to install pytorch on ubuntu 16.04lts?

i tried to install pytorch on ubuntu 16.04 everything running fine but when i activate pytorch_awesome and put python for import torch so it shows error (pytorch-awesome) linux@ubuntu:~/pytorch_awesome$ python Python 3.5.2 (default, Jul 17 2020, 14:04:10) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import torch Traceback (most […]

Categories
Mastering Development

System Python virtual environment ‘finds’ the Anaconda Python instead – how to prevent this?

I have anaconda but now I have to get pure Python and create a venv there. So I install the most recent python. I go to the command prompt, and typing in ‘python, I get exactly what I want: Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit (Intel)] on win32 Type "help", […]

Categories
Linux Mastering Development Ubuntu

PlayOnLinux not working with on wxPython 4.1.0 – ImportError: No Module named wxversion, needs to be wx.version instead

The latest version of wxPython doesn’t support the wxversion module. Instead the information is available as wx.version. Is there any suggested work around to this? Thanks! My environment is Ubuntu 20.04 LTS, pyenv, python 3.8.3, python 2.7.18, wxPython 4.1.0 $ apt-cache policy playonlinux playonlinux: Installed: 4.3.4-1ubuntu1 Candidate: 4.3.4-1ubuntu1 Version table: *** 4.3.4-1ubuntu1 500 500 http://us.archive.ubuntu.com/ubuntu […]

Categories
Mastering Development

A strange import error while importing pandas from python3x

Python 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. import pandas Traceback (most recent call last): File "", line 1, in File "/home/suman/.local/lib/python3.6/site-packages/pandas/init.py", line 180, in import pandas.testing File "/home/suman/.local/lib/python3.6/site-packages/pandas/testing.py", line 5, in from pandas._testing import ( File "pandas/src/testing.pyx", line 4, in init pandas._testing […]

Categories
Mastering Development

Issue while importing Python nltk package

I would like to import package nltk. But for some reason, it’s not possible cos the following error message. I’ve even reinstalled the nltk. I would really appreciate it, if someone could tell me how to fix it. I use intentionally Python 2.7. Stay healthy :-), Gunardi Ali Error when using Eclipse Traceback (most recent […]

Categories
Bitcoin Cryptocurrency Mastering Development

how to create Bitcoin address , p2sh segwit and Bitcoin segwit address on python console from pubkey?

i am new on python, i know it how to create Bitcoin address , p2sh segwit and Bitcoin segwit address on python console ? i use https://github.com/richardkiss/pycoin and command-line (base) C:\Users\MM>ku 04c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee51ae168fea63dc339a3c58419466ceaeef7f632653266d0e1236431a950cfe52a input : >04c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5\ 1ae168fea63dc339a3c58419466ceaeef7f632653266d0e1236431a950cfe52a network : Bitcoin mainnet symbol : BTC public pair x : 89565891926547004231252920425935692360644145829622209833684329913297188986597 public pair y : 12158399299693830322967808612713398636155367887041628176798871954788371653930 x as […]