Questions tagged [imp]
Used for questions relating to the Electric Imp, a programmable Internet of Things eco-system.
78
questions
4
votes
2
answers
5k
views
MultiQC: ModuleNotFoundError: No module named 'imp'
enter image description here
I am running fastqc and multiqc in ubuntu linux terminal. fastqc runs perfectly without any issues but multiqc fails to run, showing the message. No idea how to fix the ...
-1
votes
1
answer
912
views
Print packet protocol type using PyShark
I want to print all the protocols of the packet (ie: ICMP, ARP, TCP, UDP, etc.) but I am getting only TCP and UDP. I am using pyshark and python to capture packets.
import pyshark
capture = pyshark....
0
votes
0
answers
43
views
Oracel Garbled characters were generated during import
The client uses US7ASCII encoding to export DMP, any encoding used during import will result in annotated Chinese garbled characters. comment. view...
0
votes
1
answer
382
views
XCode 12 error with IMP instance: Too many arguments to function call, expected 0, have 2
I just got some work for the old project. There is compile-time error with IMP instance:
While searching for the cause and solution I came across the links:
https://developer.apple.com/forums/thread/...
1
vote
1
answer
4k
views
Import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set, but nothing happen?
I got no error when importing my XXX.DMP file using imp, but there is no database, schema, or table has imported and log file is empty too. Here what it's look :
Connected to: Oracle Database 11g ...
0
votes
1
answer
272
views
Issues with module imports going from python 2 to python 3
I am trying to upgrade a 10 year old event listener that I didn't write from Python 2.7 to python 3.7. The basic issue I'm running into is the way the original script was importing its plugins. The ...
0
votes
2
answers
1k
views
How to make android device as slave and read the slave data from iot hardware as Electric Imp, Arduiono or even PC?
I am looking for a solution where my Android Device is connected to IoT devices such as Electric Imp, Arduino or Windows PC via USB.
So the requirement here comes that I want to write some data(text ...
0
votes
1
answer
323
views
How to extract table data from Oracle EXP dump file. First 1MB of the dump is corrupted, and database is lost
My Oracle DB is destroyed including backups (ransomware). I have a dump file 11GB in size. Exported by EXP with parameters FULL=Y. First objects in dump belong to SYSTEM USER. The dump is encrypted ...
2
votes
0
answers
80
views
Is it possible to send print commands to IMP MICR Printer by Inotech using ASCII codes?
I have a MICR printer from InoTech called IMP. The printer is installed as "Generic/Text Only" printer which prints RAW data. It has a MICR character drum which moves and impacts the codes.
Now i am ...
-1
votes
1
answer
2k
views
sklearn: DeprecationWarning: theimp module is deprecated - safe to ignore?
Whenever I try to use "sklearn", I get the following error:
>>>from sklearn.tree import DecisionTreeRegressor
/home/ec2-user/anaconda2/envs/argosv2/lib/python3.6/site-packages/sklearn/...
0
votes
1
answer
131
views
Import a table from a user to a table of an other user
I am trying to use imp to Import a table from user abdou2 to user abdou1.
I exported my table from abdou2 inside a file dump using:
exp abdou2/root file=CLIENTS.dmp tables=CLIENTS
Then, I created in ...
1
vote
1
answer
5k
views
the imp module is deprecated in favour of importlib
I use sublime , this is my code:
when I build it, it warning:
and my python version is 3.6.4.
how could i do? thank you!
0
votes
1
answer
986
views
insufficient privileges SYS.DBMS_DDL
I am trying to use the Oracle imp utility. A lot of good documentation exists but it seems that it is not possible or documented how to import with a regular user. It is assumed that sys will be used ...
3
votes
1
answer
4k
views
Python: Importing arbitrarily named source files using importlib
I use the imp module to import Python modules from source, given the absolute filename. I.e.
import imp
my_module = imp.load_source('my_module', '/paht/to/my_module')
Here, /paht/to/my_module is the ...
-1
votes
1
answer
975
views
Python dynamic module loading with multiprocessing
The following code works if the module "user.py" is in the same directory as the code, but fails if it is in a different directory. The error message I get is "ModuleNotFoundError: No module named '...
0
votes
0
answers
1k
views
Homemade package ImportError: DLL load failed: The specified module could not be found
I am trying to run a "homemade" package I recently received. It is native C++ code wrapped with SWIG.
EDIT: I have installed all the C++ dependencies required. I know that the package works, as it ...
-1
votes
1
answer
42
views
python: import function doesnt work in 3.5
I use this to import a function in 2.7 which works:
def import_x():
import os
import imp
directory = os.path.dirname(os.path.realpath(__file__))
os.environ['...
0
votes
2
answers
20k
views
How Can I import or open a .dmp file?
Update:
I tried the impdp command and it's giving me that it cannot create a user. I tried creating the user as well
This is how my .par file looks like
This is a snip of .sh file
I have never used ...
1
vote
1
answer
7k
views
Value for EXCLUDE is badly formed Importing Oracle Database 12c Enterprise Edition Release 12.1.0.1.0
I want to import a Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
using the command :
impdp SOLVIA/SOLVIA900@IMMBO DIRECTORY=DB_EXP DUMPFILE=week_exp_immbo.dmp LOGFILE=...
3
votes
1
answer
2k
views
Import Oracle Database 12c Enterprise Edition Release 12.1.0.1.0
I want to import a Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
using the command :
impdp SOLVIA/SOLVIA900@IMMBO DUMPFILE=week_exp_immbo.dmp LOGFILE=week_exp_immbo....
2
votes
3
answers
2k
views
How to have oracle imp 11gr2 and 12cr2 on the same machine and just choose the one that I want to use
I'm currently developing an application to import oracle dbs. In order to do that I'm using Data Pump and the original imp client (version 12.2.0.1). However I cannot use that imp client against an ...
0
votes
0
answers
845
views
How to transfer all data from oracle 9i to oracle oracle 11g?
1.9i version command(9i version contains a user taoTest,which 11g version not contain):
exp system/* file=d:\exp_full.dmp full=y;
2.11g version command(create taoTest user which same as 9i version):...
1
vote
0
answers
874
views
ORA-00904: invalid identifier error
I have used IMP utility to import the tables of a schema. The import was successful. But when I am checking the tables, for one table I am getting " ORA-00904: "to": invalid identifier " error. The ...
0
votes
0
answers
187
views
Can't import praw
My program's attempt to load praw 5.0.0.dev0 is failing:
>>> import praw
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\...\Anaconda3\lib\...
21
votes
2
answers
35k
views
imp module is deprecated in favour of importlib
I'm using pandas in my code and in pandas they use the imp nodule. Now I get the following error/warnning
C:\Users\refaelc\AppData\Local\Temp\collection_id-96deaf03-9b39-46c0-a843-63f6101481c1-...
2
votes
0
answers
1k
views
Single Byte to Multi Byte Conversion
We are converting a Oracle Single Byte instance into Multi-Byte. Following is the summery of steps we have following:
Take an export of Single Byte schema
Generate DDL file from exported Dump in step ...
0
votes
0
answers
21
views
Python custom testreports
I'm looking for a way to customize the output of python unittests. So far, I think my best chance is using pytest hooks to achieve my goal.
Regardless, I've tried to implement something myself and ...
0
votes
1
answer
32
views
Importing a whole python hierarchy dynamically
I have written my own python code, organized in dirs and sub dirs hierarchy
I'm trying to use this code (package/module, I'm not sure about the terminology) in a few projects.
The issue is that the ...
0
votes
0
answers
486
views
export and import to different tablespace
I am after doing an export from a tablespace and then importing it into a different tablespace. However i cannot use datapump as i want to do an export into my local pc and then import it from my ...
0
votes
1
answer
1k
views
Python dynamic import and changing a variable
Lets say I have the following config file:
config.py:
x = 2
y = x * 2
I would like to import this in the file main.py, preferably using load_source command, but I also want to be able to change the ...
1
vote
1
answer
1k
views
Trouble with imp.load_source: 'module' has no attribute 'foo'
I have a directory filled with an arbitrary number of modules, each of which contains only a function do_stuff. For example:
foos/
__init__.py
foo_1.py
foo_2.py
...
foo_n.py
...
1
vote
0
answers
382
views
How can one replace a path from a module in the list sys.path premanently?
I've installed and loaded the module "windrose" to Python2.7 in the path "/home/user/.local/lib/python2.7/site-packages/windrose/windrose.py". When I run a program including
from windrose import ...
1
vote
1
answer
61
views
Why MySQL database registering blank entiry?
I'm working with electric imp + MySQL database. I'm trying to pass my imp values to MySQL using PHP but it's showing up blank entries, any idea why? I tried everything but can't figure out what's ...
2
votes
1
answer
137
views
Electric IMP + PubNub: Agent making extra calls
I'm working on a IoT project that uses Electric Imp and PubNub for communication, and Parse for data logging, cloud code, etc.
For some reason my code in the IMP IDE is making multiple calls to ...
1
vote
1
answer
1k
views
How to integrate APScheduler and Imp?
I have built a plugin-based application where "plugins" (python modules) can be loaded by imp and then scheduled for later execution by APScheduler, I was able to successfully integrate them but I ...
0
votes
1
answer
7k
views
How to use imp command for overwrite existing data
I am using the imp command for importing a database but after one time, we are executing the imp command again so that data is inserted a 2nd time. We want to remove the old data and insert fresh data....
0
votes
1
answer
9k
views
Using Oracle IMP gives the error IMP-00058
I have received some data in Oracle DMP format that I am trying to use imp to import into an Oracle database.
I am running the command:
imp <user>/<pass>@<tns> FILE=...
-1
votes
1
answer
82
views
Why do you divide the raw data by 16?
http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
Read page 3, Operation – Measuring Temperature. The following code works to get the temp. I understand all of it except why they divide the ...
1
vote
1
answer
95
views
if statement stuck in loop, how to run it only once?
I'm creating a system that will send texts every time a temperature sensor goes outwith the limit. I need this text to only be sent once but it keeps sending.
Code:
if(temp > (userTemp + 5.00))
...
0
votes
1
answer
453
views
dynamically update module using exec and compile in Python
I would like to dynamically import and update modules. The more efficient way would likely be to use importlib and imp.reload as suggested by abarnet. However another solution would be to use exec ...
3
votes
1
answer
8k
views
Oracle dump file table data extraction to file (original exp format)
I have Oracle dump files created with original exp (not expdp) (EXPORT:V10.02.01, Oracle 10g). They contain only table data for four tables.
1) I want to extract the table data into files (flat/fixed-...
0
votes
1
answer
190
views
Firebase + Electric Imp
The provided Firebase + Electric Imp code seems like it doesn't work anymore, specifically for streaming.
https://github.com/firebase/ElectricImpDemo/blob/master/ImpFirebase-HRmonitor/bracelet-agent....
11
votes
1
answer
14k
views
__imp link errors using g++ running under mingw
I have a simple socket program that I'm trying to compile using g++ running in mingw (both the latest versions) on a Win8 system. I'm getting the common linker errors
undefined reference to `...
0
votes
2
answers
2k
views
Run Oracle import Command from Java and see Console output
I am running an Oracle database Command for a .dmp file like this:
String impcmd = "imp askul/askul@askdb file=mydumpfile.dmp log=mylogfile.log fromuser=askul touser=askul full=N ignore=Y grants=Y ...
0
votes
1
answer
1k
views
OCaml - How to put a let binding inside a match expression?
I have the following code statement:
let execute command =
match command with
|Skip -> ()
|Changestate (l,r) -> (let l = ref r)
|_ -> failwith "Not a command"
when I run this in the ...
2
votes
1
answer
958
views
Writing a Haskell program for typechecking programs written in an imperative programming language
I am trying to write a program in Haskell to type check programs written in an imperative programming language.
Here is the abstract syntax:
type Name = String
-- a program is a series (list) ...
10
votes
1
answer
2k
views
extract BNF grammar rules from yacc file
I have a yacc file describing a certain language for which i am developing an Editor using IMP (eclipse project).I am using LPG as a parser generator, so I needed to extract a BNF rules from my yacc ...
0
votes
1
answer
4k
views
Trying to compile winsock program in dev C++ win7 - error
I try to compile this http://www.nongnu.org/cpirc/
I have got errors like : (when linking)
118 IRC.cc undefined reference to `__imp_socket'
123 IRC.cc undefined reference to `...
0
votes
1
answer
311
views
Using ElectricImp server.show() and Arduino
I'm following the sparkfun tutorial for connecting an arduino to electric imp. I only have one arduino and imp, so I'm trying to get whatever I type in the arduino serial monitor to display in the imp ...
6
votes
3
answers
3k
views
Make python reload() function read from .py instead of .pyc
I have written a rather large module which is automatically compiled into a .pyc file when I import it.
When I want to test features of the module in the interpreter, e.g., class methods, I use the ...