iPython/jupyter notebook fails to start "image not found" - ipython

Trying to start iPython/jupyter notebook crashes giving the following error:
ImportError: dlopen(/Library/Python/2.7/site-packages/zmq/backend/cython/constants.so, 2): Library not loaded: /opt/local/lib/libzmq.3.dylib
Referenced from: /Library/Python/2.7/site-packages/zmq/backend/cython/constants.so
Reason: image not found

Tracked down a solution here:
https://github.com/zeromq/pyzmq/issues/493
Something had gone wrong with the install of pyzmq but uninstalling via macports or pip then reinstalling didn't get rid of the problem files.
Deleting the zmq directories from /Library/Python/2.7/site-packages/ then reinstalling using pip fixed this.

Related

Snapml Not installing on windows

For a ML project on credit-card (ML with python coursera) I needed to import snapml. But unfortunately in pip install module its not unstalling.
Its showing -" error could not find a version that satisfies the requirement snapml"
and "error no matching distribuition found for snapml"
I also tried .whl file which also isnt working.
What should I do fix the issues?
Tried to install and didnt work

"undefined symbol: opus_multistream_surround_encoder_create" when calling opusenc or ffmpeg

On Ubuntu 20.04, I had two operational copies of opus-tools 0.1.10-1 (amd64) and ffmpeg 7:4.2.4-1ubuntu0.1 (amd64). I installed lame 3.100-3 (amd64) and opus-tools / ffmpeg stopped working with the following errors:
ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libavcodec.so.58: undefined symbol: opus_multistream_surround_encoder_create
opusenc: symbol lookup error: opusenc: undefined symbol: opus_multistream_surround_encoder_create
I uninstalled lame and got the same messages. Then I used the --auto-remove option to remove any dependency and faced the same issues. After that, I uninstalled and reinstalled opus-tools and ffmpeg and that didn't help. Almost giving up, I followed this FFmpeg-user thread and executed ldconfig. No luck either.
Finally, I tried building and installing opus-tools from the sources but got the following message:
configure: error: Package requirements (ogg >= 1.3) were not met:
No package 'ogg' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables OGG_CFLAGS
and OGG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Thanks in advance for any help.
Do a backup of your files and reinstall ubuntu 20.04.

VS code giving error when installing extension

Hi guys im encountering an error when I try to install extension for VS Code in elementary. It gives an error as Failed to install 'felixfbecker.php-intellisense' when i try to install by downloading manually it says ENOENT: no such file or directory, mkdir
Inside the developer console it shows the same error for 1st method also. I have installed VS Code using the deb file with sudo.
It was a permission issue solved it using
this

Error with installing pygame with pip

The following is the EXACT output when running the command sudo python -m pip install pygame on raspberry pi:
Collecting pygame
Using cached pygame-1.9.3.tar.gz
Complete output from command python setup.py egg_info:
WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...
Hunting dependencies...
SDL : found 1.2.15
FONT : found
IMAGE : found
MIXER : found
PNG : found
JPEG : found
SCRAP : found
PORTMIDI: not found
PORTTIME: not found
FREETYPE: found 2.5.2
Missing dependencies
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nOupZN/pygame/
I have tried installing pygame in ways without using pip but all of them fail in other ways and I think this problem may be the easiest to fix. I don't mind the missing dependencies. I know error code 1 is "operation not permitted" error, but i did use sudo, so I don't know why this comes up. I apologize for having so much code, but I wanted to provide as much information as possible. I have no idea what the problem is, but if anyone can help it would be a lifesaver.
Notes:
The last line of the output appears in red text in the shell
nOupZN is probably just random; I've tried installing multiple times and that part changes each time
I am using python 2.7.9 and do not wish to switch
I have recently upgraded pip
The error still occurs even when using the --user flag
The error still occurs even when running sudo su beforehand
sudo apt-get install python3-pygame
I've been struggling to learn the right way to install stuff on my Pi too. I've just started this past year, and pretty much new to linux. I've converged on this technique working most of the time.

Matlab MCR in ubuntu Amazon ec2

After installing MCR on Ubuntu, I cant run my code. The following is the error that I get. I tried googling but cant solve the problem.
./run_HPC_Location_Replacer.sh /usr/local/MATLAB/MATLAB_Compiler_Runtime/v83
Setting up environment variables
LD_LIBRARY_PATH is .:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/sys/os/glnxa64
An Error has occurred while trying to initialize the MCR.
The error is: Fatal error loading library /usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64/libmwmclbase.so Error: libXt.so.6: cannot open shared object file: No such file or directory
Error:mclmcr initialization failed
I run into the same problem on my EC2 instance, and seems like it is missing the package lixbt6.
The problem got fixed after I did sudo apt-get install libxt6