ModuleNotFoundError: No module named 'deap' in Spyder3 - spyder

I've got this same error on both Windows 10 and Raspbian. I checked here but doesn't help me. "pip install deap" downloads fine, but when I execute a DEAP sample code, I get the Module Not Found Error.

From here, running "easy_install deap" command worked for me.

Related

No Module Named PyQt5 and Pyside2 Error While Trying to open rqt

I've been trying to use the ROS(Robot Operating System) using this page:
Tutorial page
In the link it makes you use turtle sim it seemed to work fine with me without any errors.
In the 4th step(install rqt),i get this error:
`INPUT: RQT
OUTPUT: ImportError for 'pyqt': No module named 'PyQt5'
ModuleNotFoundError: No module named 'PyQt5'
ModuleNotFoundError: No module named 'PySide2'`
There was more lines of error but it seemed irrelevant to me because it only says file names.
I'm using python version 3.8.3 and qt version 5.12.12.
I downloaded the qt manually in their website.Didn't use:
pip install PyQt5
And i don't exactly remember now but someone said something about local files of pyhton but i had none of them:
screenshot of C:\Users\Boran\AppData\Local\Programs
It supposed to be Pyhton files in here.
Also there is no problem about python it works fine and i used talker and listener(pyhton coded applications of ROS.) and they worked fine.
I solved the problem by installing graphviz.It appears that to run rqt i had to install graphviz.

Can't import Twilio package on Pycharm

In the last couple of days I've been working with Twilio package. Didn't have any kind of problem until today when I tried to import it for a new project (using PyCharm) and appears this message
PackagesNotFoundError: The following packages are not available from current channels
Does anyone know why?
If you have Anaconda Navigator, launch the CMD.exe Prompt. Type "pip install twilio" and run. That solved it for me.

Flutter run command error : FlutterView.send called on a detached view

Can anyone tell me why my app is not installing at all and ending with the error message
Observatory connection never became ready.
the app was working perfectly fine until yesterday .
I have changed the channel to master yesterday in the command prompt and from then on the app never runs.
I even switched back to channel alpha but still no use.
I have attached a screenshot of the command prompt where the installation was stuck forever.
I am not so sure if I need to reinstall the flutter. I am worried if I uninstall the flutter now it may not configure properly and I might break it forever.
Please can someone tell me what exactly might have gone wrong.
Many Thanks,
Mahi
Instead of reinstall try with following: (Mac)
Set Path Variable: via following terminal command
export PATH=~/flutter/bin:$PATH;
that is bin folder path of flutter.
export PATH=[PATH_TO_FLUTTER_GIT_FOLDER]/bin:$PATH
https://flutter.io/setup-macos/#update-your-path
If above not worked. Check with the Dart version
dart --version
Install the latest dart version:
brew install dart --devel
Hope this helps others.
For Mac
open terminal
$ echo $PATH
it will show like this
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
it means you need to add flutter in to path
Open Finder presss command + shift + G
Put /etc/paths in dialog and press GO
Copy the file "paths" and paste it on desktop
Then open the pasted "paths" file from desktop
and add following line into end of the file "/flutter/bin"
Then copy that file and again paste it on /etc/paths
same like step no 2
it will ask you to replace or not
press replace
Now if you hit $ echo $PATH on terminal it will show
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/swagat/development/flutter/bin
Now your $flutter doctor will work perfectly
The solution is from Google Groups #Flutter-Dev
Thank you very much for your reply #Michael Thomsen.
I've tried what you have suggested and the details are as follows:
When I used flutter run -v command the command prompt output is as follows:
It was stuck for a while at waiting for port connection if I am not wrong.
So I've used AndroidStudio, File>Open and selected android/ folder to run the app then the gradle was showing an error:
Error:Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (25.2.0) and test app (25.4.0) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
I modified the build.gradle(Module:app) to show the correct version of 25.2.0 which was previously showing 25.4.0.
dependencies {
androidTestCompile 'com.android.support:support-annotations:25.2.0'
}
I just saved the changes inside android studio and the gradle sync completed without any errors.
Now I can run the app from inside Android Studio and also from IntelliJ IDE.
Thanks very much Michael this solved my problem.
Reinstalling flutter would be my starting point. If this problem persists, please post the output of $>flutter doctor and a description of what exactly leads to this error.

CRF++-0.58 installation on 64 bit ubuntu

getting error: "error while loading shared libraries: libcrfpp.so.0: cannot open shared object file: No such file or directory"
run sudo ldconfig
and then try again in a new terminal window.
I hope it should solve your problem.
Also you can see the installation procedure in this video: https://www.youtube.com/watch?v=6b3DmE2jYzg
Hope it helps
Error means that shared library was not installed correctly. Could you please mention the steps you followed before you got this error.
Also see installation steps give here: https://taku910.github.io/crfpp/#install

Ejabberd can't find include lib "p1_xml/include/

I have follow https://www.process-one.net/en/wiki/ejabberd_HTTP_request_handlers/ to create example, I have installed Ejabberd 14.07 on mac os. I have compile this program by using
erlc -I /Applications/ejabberd-14.07/lib/ejabberd-14.07/include -pz /Applications/ejabberd-14.07/lib/ejabberd-14.07/ebin mod_http_hello.erl
But when I compile I have found below Error Message.
/Applications/ejabberd-14.07/lib/ejabberd-14.07/include/jlib.hrl:22: can't find include lib "p1_xml/include/xml.hrl"
/Applications/ejabberd-14.07/lib/ejabberd-14.07/include/jlib.hrl:426: record xmlel undefined
/Applications/ejabberd-14.07/lib/ejabberd-14.07/include/jlib.hrl:466: type xmlel() undefined
I have Searched but didn't find any solution, If you any idea how to solve this error then guide me.
i did the following to get it solved, at the source i ran ./rebar get-deps and ./rebar compile and then i copied the deps to the include folder
cp -R deps/* /lib/ejabberd/include/
after that i was able to compile my module just fine
From 15.03, in order to fix this you must add an argument to erlc: -DNO_EXT_LIB
You missing some dependencies. Run ./rebar get-deps in the root of the ejaberd source directory and look in the ./deps directory.
I have Solved this issue, this is not the proper solution for this error, but I have spent 2 days to solve this so to work ahead I have used this solution.
You can see that xml.hrl file is not found, so I have copied file content to jlib.hrl file, where it is included and it shows no error.
If you are confused about that xml.hrl file is not available so How can the content be copied then for that you have to follow steps to install ejabberd using command line. When you run "make command" it will add all dependencies.
GO to deps -> p1_xml-> xml.hrl

Resources