because its turn out like this
from printSoln import *
ModuleNotFoundError: No module named 'printSoln'
Im using printSoln how can i install that?
As I know there is not any module named printSoln. This may be some custom .py file that has the functions which are used here.
I found one of its types file on GitHub: https://github.com/mateuv/MetodosNumericos/blob/master/python/NumericalMethodsInEngineeringWithPython/printSoln.py
you can download and write that code and save it in the same folder in which your code file exists.
Related
I have a myFunction.pyd file which I have tested to make sure that modules defined internally are accessible.
I then created a wheel file myFunction-1.0-py3-none-any.whl
Finally using cmd prompt I installed the wheel file. I can then also see the following location:
C:\Program Files\Python38\Lib\site-packages\myFunction-1.0.dist-info
However, when I do the following import myFunction as mf it gives error ModuleNotFoundError: No module named 'myFunction'
Only thing I can think of is I didn't do anything with the pyd file that I had generated. Do I need to also move that file to some location?
I have a simple program to read .docx files. But when I run it, the following error occurred. Can someone explain to me what the error description is?
i have resolved the issue myself. There was a file named docx.py inside the folder where i kept all of my python stuff. Actually, pythons was import that file instead of original module "docx".
I have written a ejabbed custom module but i am not able to install it
According to ejabbed module doc we have to put module files in $HOME/.ejabberd-modules then use ejabberdctl module_check to check the module but i am getting error
Error : not available
I guess your are following the instructions from https://docs.ejabberd.im/developer/extending-ejabberd/modules/#managing-your-own-modules
Did you create the spec file, as mentioned in this paragraph?
and creating a specification file in YAML format as
mod_mysupermodule.spec (see examples from ejabberd-contrib). From that
point you should see it as available module.
What is the use of Use of openerp.py file in openerp7.I understand the usage of init.py file.for my custom module how it is useful?
The __openerp__.py file is the OpenERP descriptor which contains a single Python dictionary with the actual declaration of Module. It is necessary file for an openerp module. All the details, dependencies, files used etc are specified here in the __openerp__.py file. Here is Python dictionary key description
name :- Name of Module like 'Sale'
version :- Version of Module like '1.0'
author :- Name of author like who develop this module
category :- Name of Module category like 'Accounting'
website :- Website of a Module
depends :- It's take a list of dependencies, when module install first install the depends modules
description :- Description of the module
summary :- summary of the module.
data :- Data file where we define .xml file path
demo :- Use for demonstration data, if database uses demo data, then it will load.
test :- test data(yaml testing, Unit testing) for this module,
active :- Where to install automatically at new Database creation.
installable :- Whether module is installable or not
auto_install :- When all the dependencies are installed, then this module will automatically install if its true.
Hope this will help you.
The openep.py file is like the setup.py file in Python modules. You need it in every module
I installed Biopython, but I am unable to get the computer to recognize the modules. For example, I create a text file in Komodo like this:
from Bio.Alphabet import IUPAC
from Bio import Seq
my_prot=Seq.Seq("AGTACACTGGT",IUPAC.protein)
and run it in terminal and receive:
Traceback (most recent call last):
File "bio.py", line 1, in <module>
from Bio.Alphabet import IUPAC
ImportError: No module named Bio.Alphabet
For the record, I can't get modules to import in interactive mode either. The documentation states that I can append the module search path by exporting to an environmental variable called PYTHONPATH (like with PATH), but when I type 'env' into the terminal, I see no environmental variable of the sort. I'm a biologist--not a computer scientist or programmer. Please bear with my naiveté if this sounds like nonsense.
You must find in which directory situated the module that you needs (Bio) and then add the path to the directory to PYTHONPATH.
$ export PYTHONPATH=/usr/local/bio-python/
Instead of /usr/local/bio-python/ you must specify the path that you've found.
To find the module you must use something like:
$ find / -name \*Bio\*
That is just an example. Of course it would be better if you could give some additional information (e.g. where you've installed the module and so on).
Press the start button, right click on my computer, select properties, go to advanced, click environment variables. Then find your path variable, and edit it by adding a semicolon, then your path. For example, if my path variable at the moment is "C:\Program Files\Java\jdk1.7.0_02\bin", I can change it to "C:\Program Files\Java\jdk1.7.0_02\bin;(PUT PATH HERE)"