ModuleNotFoundError: No module named 'apt_pkg && ln: failed to create symbolic link 'apt_pkg.so': File exists on ubuntu20.04 - symlink

I already have python version 3.7.4 and i am trying to install new python version along with the existing but unable to do so as the following error occur:
ModuleNotFoundError: No module named 'apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
i tried to reinstall apt_pkg to solve this and even remove it and install it again but nothing works
during the re-installation process the following error occur:
ln: failed to create symbolic link 'apt_pkg.so': File exists on ubuntu20.04
on listing i found:
ll apt_pkg.*
i can see multiple versions of apt_pkg. how to correctly link this and solve the problem?

Related

C:\Users\stc>cxxtestgen --version python: can't open file 'C:\\Users\\stc\\cxxtestgen': [Errno 2] No such file or directory

When i install cxxtest then it installed successfully . but when i check its version on cmd it show that python can't open file no such directory. I have installed python also. I add the path also after them this type of error came.

How can I add conda python libraries as ubuntu system root libraries

I am trying to import the scikit and dlib library in my editor. However, it shows module not found. Also, when I try to download the module, it shows that it already exist. I can easily open juptyer notebook via command line.
Even when it asks for password for root permission, it shows:
File "/lib/security/howdy/compare.py", line 17, in <module>
import dlib
ModuleNotFoundError: No module named 'dlib'
Unknown error: 1
However, when I try to install dlib, it shows that it is already installed in the anaconda directory.

Not accessing the correct package

I have to use qdiscs in some part of my project. so i was using the below command and got this error. the problem is there is libnl3 package prersent but it is searhing for libnl version.
nl-qdisc-add --dev=veth-host --parent=root --update plug --buffer
Error: Unable to load module "/usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so": /usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so: cannot open shared object file: No such file or directory
So I tried this solution mentioned in comments, but its not working. cannot comment on this link due to reputation.
I changed the 4th step to ./configure --prefix=/usr/local --with-pkgconfigdir=/usr/local/lib because of some error it was giving.
It throws this error:
/usr/local/sbin/nl-qdisc-add --dev=veth-host --parent=root plug --limit=32768
/usr/local/sbin/nl-qdisc-add: /lib/x86_64-linux-gnu/libnl-3.so.200: no version information available (required by /usr/local/sbin/nl-qdisc-add)
/usr/local/sbin/nl-qdisc-add: /usr/lib/x86_64-linux-gnu/libnl-cli-3.so.200: no version information available (required by /usr/local/sbin/nl-qdisc-add)
/usr/local/sbin/nl-qdisc-add: /usr/lib/x86_64-linux-gnu/libnl-route-3.so.200: no version information available (required by /usr/local/sbin/nl-qdisc-add)
Error: Unable to load module "/usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so": /usr/lib/x86_64-linux-gnu/libnl/cli/qdisc/plug.so: cannot open shared object file: No such file or directory
I'm using the system ubuntu 19.10

read-the-docs: ImportError despite dependency being set in setup.py

Consider this build error:
I see lines like: ImportError: No module named swisseph and invalid signature for automodule (u'jyotisha\n :members:'). My setup.py does include pyswisseph as a dependency already.. What's a good fix?
PS: My local sphinx build seems fine.
Following #steve-piercy's tip and the FAQ, I was able to get past this error - I just needed to to enable the virtualenv feature in the Admin page of my project.
The install then fails for another (as yet undebugged reason) - but that's separate.

After i run the server i get "No module named 'crispy_forms'" message?

I have tried to installed django-crispy-forms ;however, i got this error: ImportError: No module named 'crispy_forms'
Ps. i needed to install with -sudo..
thank you

Resources