Questions tagged as 'import'

1
answer

Importing classes in Python 3

I have three .py files in my directory: Banco.py , app.py , Usuarios.py . My app.py contains the Tkinder import I am using in the code and here I start all my view and import the Usuarios.py class as follows:...
asked by 02.02.2018 / 02:07
1
answer

Importing modules into PyCharm

I'm trying to import modules into PyCharm: from mymodule import fileHandler However, IDLE reports error ImportError: cannot import name FileHandle I have tried to follow the most common suggestions: Identify the root folder a...
asked by 20.12.2017 / 20:46
1
answer

Error in relative import in python

I'm trying to test a simple python code using pytest. My hierarchy is as follows: PythonExamples files mymath.py tests test_mymath.py In test_mymath.py, I import mymath as from ..files import mymath as mm def test_...
asked by 16.03.2017 / 20:24
1
answer

Can not import X

I have two files within a project of which one has the import of the other and vice versa, in this case the main_server.py has the from Servidor.skeletons.Threads import Thread to be able to create an instance of the class Threads...
asked by 25.12.2017 / 22:39
1
answer

Python import file from variable

If I define a variable as the directory from which I will import a file, such as: a = 'C:\Users\Windows 7\Desktop\Program10.py If I try to from a import foo , I'm given ModuleNotFoundError: No module named 'a'. In context,...
asked by 12.04.2018 / 14:09
1
answer

Error ORA-01843 when importing table in Sqoop

I'm facing an error from which I can not understand the source. Previously I had imported a table with the same data format, with 54 million lines to the HDFS of my Hadoop cluster . Now I created a _View_ in my database Oracle an...
asked by 16.05.2017 / 22:23
1
answer

How to import photos from an XML with PHP

I'm trying to import an XML file, but I do not know how to import it when it has a field inside another field, see below the example that explains better: <imovel> <id>1</id> <endereco>abc</endereco> <fot...
asked by 07.11.2018 / 17:53
0
answers

How to pass variable in require

I'm trying to pass a populated variable through the database, containing my route to require, but it's giving the following error: "Cannot find module 'views/Cadastros/Usuario'" And these are the forms that I tried to import and unfortunate...
asked by 29.10.2018 / 14:21
1
answer

Imports in python that are not found

Good afternoon!    I'm facing some problems with imports downloaded with the pip, more specifically imports Pypi Wikipedia and Google ...    I install both via pip install and they can be found in the site-packages folder in Python. But imports...
asked by 12.09.2018 / 20:01
0
answers

Problem importing NLTK packages

               from nltk.machado import *         Traceback (most recent call last): File "<pyshell#8>", line 1, in <module> from nltk.machado import * ModuleNotFoundError: No module named 'nltk.machado' However, when I run the...
asked by 13.07.2018 / 23:16