Python doesn't run and I got this error: "ImportError: No module named site".
After installing lion python still was working but a new version was added and I don't know exactly what happend that no python scripts were able to run on my macbook. It might be because of path setting but I check many options such as setting PYTHONPATH enviroment variable, however it help a bit and now python is started but still couldn't run the spripts I was running them before.
This issure blocks all my development tasks.
The out of the commad find /System/Library/Frameworks/Python.framework -type f -name site.py* -ls:
8256584 32 -rw-r--r-- 1 root wheel 12354 Jun 14 07:21 /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.py
6020145 16 -rw-r--r-- 1 root wheel 12151 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.pyc
6020146 16 -rw-r--r-- 1 root wheel 12151 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.pyo
6021735 0 -rw-r--r-- 1 root wheel 3585 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2a pp/apptemplate/lib/site.py
6021736 0 -rw-r--r-- 1 root wheel 3325 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2a pp/apptemplate/lib/site.pyc
6021776 0 -rw-r--r-- 1 root wheel 3042 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2a pp/bundletemplate/lib/site.py
6021777 0 -rw-r--r-- 1 root wheel 3062 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2a pp/bundletemplate/lib/site.pyc
6021911 0 -rw-r--r-- 1 root wheel 2362 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/site .py
6021912 0 -rw-r--r-- 1 root wheel 1855 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/site .pyc
6021913 0 -rw-r--r-- 1 root wheel 1983 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/site .pyo
8252446 32 -rw-r--r-- 1 root wheel 14620 Jun 17 10:01 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.py
6011169 16 -rw-r--r-- 1 root wheel 16285 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.pyc
6011170 16 -rw-r--r-- 1 root wheel 16285 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.pyo
6022794 0 -rw-r--r-- 1 root wheel 3645 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/py2a pp/apptemplate/lib/site.py
6022795 0 -rw-r--r-- 1 root wheel 3385 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/py2a pp/apptemplate/lib/site.pyc
6022836 0 -rw-r--r-- 1 root wheel 3043 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/py2a pp/bundletemplate/lib/site.py
6022837 0 -rw-r--r-- 1 root wheel 3056 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/py2a pp/bundletemplate/lib/site.pyc
6022987 0 -rw-r--r-- 1 root wheel 2362 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/site .py
6022988 0 -rw-r--r-- 1 root wheel 1855 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/site .pyc
6022989 0 -rw-r--r-- 1 root wheel 1983 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/site .pyo
8253860 40 -rw-r--r-- 1 root wheel 19163 Jun 17 10:03 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.py
6014231 24 -rw-r--r-- 1 root wheel 20581 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc
6014232 24 -rw-r--r-- 1 root wheel 20581 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyo
6023870 0 -rw-r--r-- 1 root wheel 3645 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/py2a pp/apptemplate/lib/site.py
6023871 0 -rw-r--r-- 1 root wheel 3334 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/py2a pp/apptemplate/lib/site.pyc
6023912 0 -rw-r--r-- 1 root wheel 3043 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/py2a pp/bundletemplate/lib/site.py
6023913 0 -rw-r--r-- 1 root wheel 3009 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/py2a pp/bundletemplate/lib/site.pyc
6024063 0 -rw-r--r-- 1 root wheel 2362 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/site .py
6024064 0 -rw-r--r-- 1 root wheel 1809 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/site .pyc
6024065 0 -rw-r--r-- 1 root wheel 1937 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/site .pyo
8255408 40 -rw-r--r-- 1 root wheel 19929 Jun 17 10:03 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py
6017466 24 -rw-r--r-- 1 root wheel 21430 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc
6017467 24 -rw-r--r-- 1 root wheel 21430 Jul 21 14:06 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyo
Last night my colleague and I spent a while working on the issue, apparantly a sofware has set PYTHONPATH env variable and it causes the problem. How can I get rid of the variable permanently?
Thanks.
Similar Messages
-
i have windows 8 and I got this error "Adobe Photoshop has stopped working" whenever I start a program. please help. how can I fix this problem? many thanks
Please read these and proceed accordingly:
http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
http://forums.adobe.com/docs/DOC-2325 -
Hi when I updated my OS X to Mavericks (10.9.3), my python couldn't recognize bsddb anymore, which worked fine for my previous versions. This is very annoying since it wasted a whole day of mine without a solution.
I urge Apple support to give me an answer as QUICK as possible.
I have tried a lot of possible fixes on StackOverflow, and I have bsddb installed on my computer, and bsddb3 package. Also I followed this tutorial to fix the import issues (which worked before I updated my OS).
http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-b sddb-modules-to-work/
Please let me know a solution, this is urgent and I can't waste time on this anymore.carebearboy wrote:
I get this error when attempting to import pygame:
Python 3.2.1 (default, Jul 11 2011, 12:37:47)
[GCC 4.6.1] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
Traceback (most recent call last):
File "/home/user/Documents/fun.py", line 3, in <module>
import pygame, sys, random
ImportError: No module named pygame
>>>
I've tried installing:
python3-pygame
python3-pygame2
python-pygame
and a couple others...
Either I get the same error or the install yaourt aborts due to a bad compile. I noticed that I have python 2.7 also installed on my computer.
Have you tried python3-pygame-svn?
I'm not a pygame user myself, but it built okay for me, and I was able to import it in python3 with no errors.
EDIT: just noticed that the pkgbuild is missing a dependency: python-numpy.
Last edited by kachelaqa (2011-08-28 19:42:06) -
YouTube gives me an error when I try an upload a 6 minute video using Adobe Premier Elements 13. I looked to see what other formats in Premier Elements I could save the video in and there's only the default format. No other drop downs appear.
I've used other editing software and never had this happen. Has anyone encountered this problem? Thanksnicoleh
What version of Premiere Elements and what computer operating system?
What do you have for Timeline content that you are trying to upload to YouTube? What formats for video, audio, stills, graphics..?
In the YouTube feature of Premiere Elements what are you selecting for the preset?
Where in the process do you get the message about non supported format?
a. while the upload to YouTube is in progress?
b. during the YouTube processing of the video after the upload?
c. other?
Let us start here and then decide what next based on your reply.
Thank you.
ATR -
Firefox worked and then when I shut down and restarted I suddenly started getting this message. What can I do?
Such an error is always caused by inconsistent files in the Firefox program folder (application.ini and/or platform.ini and possibly others) and your only option is to reinstall that version of Firefox, either via the software repositories or the Mozilla server.<br />
Be sure to delete all files in that folder before copying the files from that tar.bz2 archive.<
*http://kb.mozillazine.org/Installing_Firefox#Linux
Note that the current ESR version is 10.0.5
*http://www.mozilla.org/en-US/firefox/organizations/all.html
*http://www.mozilla.org/en-US/firefox/17.0.5/releasenotes/
*http://www.mozilla.org/en-US/firefox/17.0.5/system-requirements/
All Firefox releases:
*https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/ (17.0.5esr/, latest-esr/, latest/) -
I need help to run this package and i got some error
create or replace
PACKAGE BODY SUBS_INS_API_sun
AS
PROCEDURE SUBSCRIBER_INS_sun
(SOURCE_SYS_ID IN VARCHAR2,
TRACKING_ID IN VARCHAR2,
ACCOUNT_NO IN VARCHAR2,
prepaidActDevDetails_tab IN prepaidactdvcdetailsobj_sun,
ERROR_CODE OUT VARCHAR2)
IS
Input_Parameter_Is_Null EXCEPTION;
pragma exception_init(Input_Parameter_Is_Null,-2000);
prepaidAccountDetails prepaidActDevDetails_tab:= prepaidActDevDetails_tab(NULL,NULL,NULL,NULL,NULL);
STATUS VARCHAR2(1):='1';
cust_no VARCHAR(10);
m_mac_id VARCHAR2(20);
subscriber_master_Rec subscriber_master%ROWTYPE :=NULL;
flg NUMBER(1);
BEGIN
IF(Source_Sys_Id IS NULL OR Tracking_Id IS NULL OR ACCOUNT_NO IS NULL OR prepaidAccountDetails.LAST=0) THEN
RAISE Input_Parameter_Is_Null;
END IF;
BEGIN
select cm_cust_no into cust_no from customer_master where cm_cust_id=ACCOUNT_NO and cm_status in('A','P','0');
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
STATUS:='0';
END;
BEGIN
FOR i IN prepaidAccountDetails.FIRST .. (prepaidAccountDetails.LAST) LOOP
prepaidAccountDetails1:=prepaidActDevDetails_tab(i);
prepaidAccountDetails1.Status_of_device:='1';
IF (prepaidAccountDetails.Account_id is NULL OR prepaidAccountDetails.Mac_Id is NULL or prepaidAccountDetails.LOB_value is NULL) THEN
RAISE Input_Parameter_Is_Null;
END IF;
IF(prepaidAccountDetails.LOB_value = 'VDO') THEN
IF(prepaidAccountDetails.Channel_Line_Up is NULL) THEN
Error_code :='SI002';
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
STATUS:=0;
prepaidAccountDetails.Status_of_device:='0';
END IF;
END IF;
begin
select 1 into flg from subscriber_master where pm_phone_no=prepaidAccountDetails.Mac_Id and pm_status in('P','0','A','B');
EXCEPTION
WHEN NO_DATA_FOUND THEN
flg:=0;
END;
if(flg=1) then
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
STATUS:=0;
prepaidAccountDetails.Status_of_device:='0';
END IF;
begin
select md_mac_id into m_mac_id from mac_details where md_mac_id=prepaidAccountDetails.Mac_Id and md_start_date<=sysdate
and md_status='A';
EXCEPTION when OTHERS then
Error_code :='SI004';
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
STATUS:=0;
prepaidAccountDetails.Status_of_device:='0';
end;
if(STATUS= 1 and prepaidAccountDetails.Status_of_device='1') then
SELECT PM_SUBS_ACT_NO_SEQ.nextval
INTO subscriber_master_rec.PM_SUBS_ACT_NO
FROM dual;
subscriber_master_Rec.pm_phone_no :=prepaidAccountDetails.Mac_Id;
subscriber_master_Rec.pm_open_date :=sysdate;
subscriber_master_rec.pm_status :='P';
subscriber_master_rec.PM_CUST_LVL_YN:='S';
subscriber_master_rec.PM_EQUP_CODE:=prepaidAccountDetails.LOB_value;
subscriber_master_rec.PM_HOME_AREA:='HOM';
subscriber_master_rec.PM_USG_CODE:='USG';
subscriber_master_rec.PM_NO_TYPE:='S';
subscriber_master_rec.PM_TCG_CODE:='DEF';
subscriber_master_rec.PM_APLN_DATE:=sysdate;
subscriber_master_rec.PM_USER2:=prepaidAccountDetails.LOB_value;
subscriber_master_rec.PM_USER3:=prepaidAccountDetails.Channel_Line_Up;
subscriber_master_rec.pm_cust_no:=cust_no;
INSERT INTO subscriber_master VALUES subscriber_master_rec;
END IF;
END LOOP;
END;
END SUBSCRIBER_INS_sun;
END SUBS_INS_API_sun;
and
i got this error
Package Body PREPAID_TESTNEW.SUBS_INS_API@PREPAID_TESTNEW
Error(73,4): PL/SQL: Statement ignored
Error(73,99): PLS-00302: component 'LAST' must be declared
Error(87,6): PL/SQL: Statement ignored
Error(87,37): PLS-00302: component 'FIRST' must be declared
please help to run this package if anyone knowsnow i corrected my package. It working fine. But, how to run this package via procedure. my procedure check below. I give all the details about my package check below.
---pkg specification
create or replace
PACKAGE SUBS_INS_API_SS
IS
PROCEDURE SUBSCRIBER_INS_SS
(SOURCE_SYS_ID IN VARCHAR2,
TRACKING_ID IN VARCHAR2,
ACCOUNT_NO IN VARCHAR2,
prepaidActDevDetails_tab IN prepaidActDeviceDetails_tabobj,
ERROR_CODE OUT VARCHAR2);
END SUBS_INS_API_SS;
-----pkg body
create or replace
PACKAGE BODY SUBS_INS_API_SS
AS
PROCEDURE log_error (ip_code IN VARCHAR2,
ip_message IN VARCHAR2,
ip_description IN VARCHAR2)
IS
BEGIN
INSERT INTO ERR_LOG (IEL_REF_ID,
IEL_DATE,
IEL_CODE,
IEL_MSG,
IEL_DESC)
VALUES (IVRS_ERR_LOG_SEQ.NEXTVAL,
SYSDATE,
ip_code,
ip_message,
ip_description);
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
END log_error;
PROCEDURE INSERT_WS_LOG (SOURCE_SYS_ID IN VARCHAR2,
STATUS IN VARCHAR2,
TRACKING_ID IN VARCHAR2,
ACCOUNT_ID IN VARCHAR2,
MAC_ID IN VARCHAR2)
IS
ws_log_rec WS_LOG%ROWTYPE := NULL;
BEGIN
SELECT WS_LOG#REC#ID.NEXTVAL INTO ws_log_rec.rec#id FROM DUAL;
ws_log_rec.VER#ID := 1;
ws_log_rec.CRE#TS := SYSDATE;
ws_log_rec.wl_source := SOURCE_SYS_ID;
ws_log_rec.wl_status := Status;
ws_log_rec.wl_tracking_id := tracking_id;
ws_log_rec.wl_account_id := account_id;
ws_log_rec.wl_mac_id := mac_id;
INSERT INTO ws_log
VALUES ws_log_rec;
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
END INSERT_WS_LOG;
PROCEDURE REPLICO_DEV_INFO( Acc_id IN VARCHAR2, Mc_Id IN VARCHAR2,channel IN VARCHAR2,
LOB_VAL IN VARCHAR2, outlet1 IN VARCHAR2, kit_cod IN VARCHAR2,
serial_No IN VARCHAR2, shipperr IN VARCHAR2, estm_recived_date IN date)
IS
Replico_device_info_det_Rec Replico_device_info_det%ROWTYPE := NULL;
REC_ID NUMBER;
BEGIN
SELECT REPLICO_DEVICE_INFO_DET#RECID.nextval INTO REC_ID FROM dual;
Replico_device_info_det_Rec.REC#ID := REC_ID;
Replico_device_info_det_Rec.ACCOUNT_ID := Acc_id;
Replico_device_info_det_Rec.MAC_ID := Mc_Id;
Replico_device_info_det_Rec.CHANNEL_LINE_UP := channel;
Replico_device_info_det_Rec.LOB_VALUE := LOB_VAL;
Replico_device_info_det_Rec.OUTLET := outlet1;
Replico_device_info_det_Rec.KIT_CODE := kit_cod;
Replico_device_info_det_Rec.SERIAL_NUMBER := serial_No;
Replico_device_info_det_Rec.SHIPPER := shipperr;
Replico_device_info_det_Rec.ESTIMATED_RECIVED_DATE := estm_recived_date;
INSERT INTO replico_device_info_det
VALUES Replico_device_info_det_Rec;
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
END REPLICO_DEV_INFO;
PROCEDURE SUBSCRIBER_INS_SS (
SOURCE_SYS_ID IN VARCHAR2,
TRACKING_ID IN VARCHAR2,
ACCOUNT_NO IN VARCHAR2,
prepaidActDevDetails_tab IN prepaidActDeviceDetails_tabobj,
ERROR_CODE OUT VARCHAR2)
IS
Input_Parameter_Is_Null EXCEPTION;
PRAGMA EXCEPTION_INIT (Input_Parameter_Is_Null, -2000);
prepaidAccountDetails prepaid_act_dvc_details_obj
:= prepaid_act_dvc_details_obj (NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
STATUS VARCHAR2 (1) := '1';
cust_no VARCHAR (10);
m_mac_id VARCHAR2 (20);
channel_lineup VARCHAR2 (25);
LOB_VALUE VARCHAR2 (25);
subscriber_master_Rec subscriber_master%ROWTYPE := NULL;
Replico_device_info_det_Rec Replico_device_info_det%ROWTYPE := NULL;
flg NUMBER (1);
plan_code VARCHAR2(10);
subs_aact_no NUMBER(20);
m_plan_code1 payment_transaction_history.TH_PLAN_CODE%type;
m_payment_mode1 payment_transaction_history.TH_PAYMENT_MODE%type;
pm_phone_no_cur subscriber_master.pm_phone_no%type;
pm_status_cur subscriber_master.pm_status%type;
pm_user2_cur subscriber_master.pm_user2%type;
pm_user9_cur subscriber_master.pm_user9%type;
pm_cust_no_cur subscriber_master.pm_cust_no%type;
pm_cust_1 subscriber_master.pm_cust_no%type;
cm_i customer_master.cm_status%type;
CURSOR subs_rec is select pm_cust_no, pm_phone_no, pm_status, pm_user2, pm_user9 from subscriber_master
where pm_cust_no = cust_no and pm_status= 'S';
BEGIN
IF ( Source_Sys_Id IS NULL
OR Tracking_Id IS NULL
OR ACCOUNT_NO IS NULL
OR prepaidActDevDetails_tab.LAST = 0)
THEN
RAISE Input_Parameter_Is_Null;
END IF;
BEGIN
SELECT cm_cust_no
INTO cust_no
FROM customer_master
WHERE cm_cust_id = ACCOUNT_NO AND cm_status IN ('A', 'P', '0');
EXCEPTION
WHEN NO_DATA_FOUND
THEN
ERROR_CODE := 'SI001';
log_error ('SI001',
SQLERRM,
'No Customer exist with Active or Pre Actiavted');
INSERT_WS_LOG (Source_Sys_Id,
'F',
Tracking_Id,
Account_No,
prepaidAccountDetails.Mac_Id);
STATUS := '0';
END;
BEGIN
FOR i IN prepaidActDevDetails_tab.FIRST ..
(prepaidActDevDetails_tab.LAST)
LOOP
prepaidAccountDetails := prepaidActDevDetails_tab (i);
prepaidAccountDetails.Status_of_device := '1';
IF ( prepaidAccountDetails.Account_id IS NULL
OR prepaidAccountDetails.Mac_Id IS NULL
OR prepaidAccountDetails.LOB_value IS NULL)
THEN
RAISE Input_Parameter_Is_Null;
END IF;
IF (prepaidAccountDetails.LOB_value = 'VIDEO')
THEN
/* Commented as channel lineup is not coming from the input request */
/*IF(prepaidAccountDetails.Channel_Line_Up is NULL) THEN
Error_code :='SI002';
log_error ('SI002', SQLERRM, 'Channel line up is mandatory for Video');
INSERT_WS_LOG(Source_Sys_Id,'F',Tracking_Id,Account_No,prepaidAccountDetails.Mac_Id);
STATUS:=0;
prepaidAccountDetails.Status_of_device:='0';
END IF;*/
SELECT EC_CHANNEL_LINEUP
INTO channel_lineup
FROM ELIGIBLE_CUSTOMER
WHERE EC_CUSTOMER_NO = cust_no;
END IF;
BEGIN
SELECT 1
INTO flg
FROM subscriber_master
WHERE pm_phone_no = prepaidAccountDetails.Mac_Id
AND pm_status IN ('P', '0', 'A', 'B');
EXCEPTION
WHEN NO_DATA_FOUND
THEN
flg := 0;
END;
IF (flg = 1)
THEN
ERROR_CODE := 'SI003';
log_error ('SI003',
SQLERRM,
'Customer Already Exist with given Mac Id');
INSERT_WS_LOG (Source_Sys_Id,
'F',
Tracking_Id,
Account_No,
prepaidAccountDetails.Mac_Id);
STATUS := 0;
prepaidAccountDetails.Status_of_device := '0';
END IF;
BEGIN
SELECT md_mac_id
INTO m_mac_id
FROM mac_details
WHERE md_mac_id = prepaidAccountDetails.Mac_Id
AND md_start_date <= SYSDATE
AND md_status = 'A';
EXCEPTION
WHEN OTHERS
THEN
ERROR_CODE := 'SI004';
log_error ('SI004', SQLERRM, 'Invalid Mac Id');
INSERT_WS_LOG (Source_Sys_Id,
'F',
Tracking_Id,
Account_No,
prepaidAccountDetails.Mac_Id);
STATUS := 0;
prepaidAccountDetails.Status_of_device := '0';
END;
select pm_cust_no into pm_cust_1 from subscriber_master where pm_cust_no = cust_no;
IF (STATUS = 1 AND prepaidAccountDetails.Status_of_device = '1')
THEN
SELECT DECODE (prepaidAccountDetails.LOB_value,
'HSD', 'HSD',
'VIDEO', 'VDO')
INTO LOB_VALUE
FROM DUAL;
OPEN subs_rec;
LOOP
FETCH subs_rec into pm_cust_no_cur, pm_phone_no_cur, pm_status_cur, pm_user2_cur, pm_user9_cur;
IF subs_rec%FOUND THEN
IF
( pm_cust_1 = pm_cust_no_cur and pm_user2_cur= LOB_VALUE and pm_user9_cur = prepaidAccountDetails.outlet and pm_status_cur = 'S')
THEN
update subscriber_master set pm_phone_no = prepaidAccountDetails.Mac_Id, pm_status = 'P', pm_name = prepaidAccountDetails.Mac_Id
where pm_cust_no = pm_cust_no_cur and pm_user9 = prepaidAccountDetails.outlet;
select cm_status into cm_i from customer_master where cm_cust_no = pm_cust_no_cur;
IF( cm_i = '0')
THEN
update customer_master set cm_status = 'P' where cm_cust_no = pm_cust_no_cur;
END IF;
REPLICO_DEV_INFO( prepaidAccountDetails.Account_id, prepaidAccountDetails.Mac_Id,channel_lineup,
prepaidAccountDetails.LOB_value, prepaidAccountDetails.outlet, prepaidAccountDetails.kit_code,
prepaidAccountDetails.serial_Number, prepaidAccountDetails.shipper,prepaidAccountDetails.estimated_recived_date);
ELSIF
( pm_cust_1 = pm_cust_no_cur and pm_user2_cur= LOB_VALUE and pm_user9_cur = null and pm_status_cur = 'S')
THEN
update subscriber_master set pm_phone_no = prepaidAccountDetails.Mac_Id, pm_status = 'P', pm_name = prepaidAccountDetails.Mac_Id, pm_user9 = prepaidAccountDetails.outlet
where pm_cust_no = pm_cust_no_cur and pm_user9 = NULL;
update customer_master set cm_status = 'P' where cm_cust_no = pm_cust_no_cur;
REPLICO_DEV_INFO( prepaidAccountDetails.Account_id, prepaidAccountDetails.Mac_Id,channel_lineup,
prepaidAccountDetails.LOB_value, prepaidAccountDetails.outlet, prepaidAccountDetails.kit_code,
prepaidAccountDetails.serial_Number, prepaidAccountDetails.shipper,prepaidAccountDetails.estimated_recived_date);
END IF;
ELSIF subs_rec%NOTFOUND THEN
SELECT PM_SUBS_ACT_NO_SEQ.NEXTVAL
INTO subs_aact_no
FROM DUAL;
subscriber_master_rec.PM_SUBS_ACT_NO := subs_aact_no;
subscriber_master_Rec.pm_phone_no :=
prepaidAccountDetails.Mac_Id;
subscriber_master_Rec.pm_open_date := SYSDATE;
subscriber_master_rec.pm_status := 'P';
subscriber_master_rec.PM_CUST_LVL_YN := 'S';
subscriber_master_rec.PM_EQUP_CODE := LOB_VALUE;
subscriber_master_rec.PM_HOME_AREA := 'HOM';
subscriber_master_rec.PM_USG_CODE := 'USG';
subscriber_master_rec.PM_NO_TYPE := 'S';
subscriber_master_rec.PM_TCG_CODE := 'DEF';
subscriber_master_rec.PM_APLN_DATE := SYSDATE;
subscriber_master_Rec.PM_NAME := prepaidAccountDetails.Mac_Id;
subscriber_master_Rec.PM_STAFF_id := '16';
subscriber_master_rec.PM_USER2 := LOB_VALUE;
subscriber_master_rec.PM_USER3 := channel_lineup;
subscriber_master_rec.pm_cust_no := cust_no;
subscriber_master_rec.PM_USER8 := 'Y';
INSERT INTO subscriber_master
VALUES subscriber_master_rec;
REPLICO_DEV_INFO( prepaidAccountDetails.Account_id, prepaidAccountDetails.Mac_Id,channel_lineup,
prepaidAccountDetails.LOB_value, prepaidAccountDetails.outlet, prepaidAccountDetails.kit_code,
prepaidAccountDetails.serial_Number, prepaidAccountDetails.shipper,prepaidAccountDetails.estimated_recived_date);
END IF;
END LOOP;
CLOSE subs_rec;
SELECT TH_PLAN_CODE,TH_PAYMENT_MODE
INTO m_plan_code1,m_payment_mode1
FROM PAYMENT_TRANSACTION_HISTORY
WHERE TH_CUSTOMER_NO = cust_no
AND TH_LOB = LOB_VALUE
AND TH_SUBSCRIBER_NO IS NULL;
IF(LOB_VALUE = 'HSD') THEN
IF(m_plan_code1 = 'SIKI') THEN
plan_code := 'SIKI';
ELSE
plan_code := 'KIT';
END IF;
ELSE
IF(m_plan_code1 = 'SIKT') THEN
plan_code := 'SIKT';
ELSE
plan_code := 'TV';
END IF;
END IF;
UPDATE PAYMENT_TRANSACTION_HISTORY SET TH_SUBSCRIBER_NO = subs_aact_no, th_writeback_status = 'Y' WHERE TH_CUSTOMER_NO = cust_no AND TH_PLAN_CODE = plan_code;
COMMIT;
END IF;
END LOOP;
END;
END SUBSCRIBER_INS_SS;
END SUBS_INS_API_SS;
--- type object
create or replace
TYPE prepaid_act_dvc_details_obj--prepaidAccountDeviceDetailsObj
AS OBJECT ( Account_id VARCHAR2 ( 25 )
, Mac_Id VARCHAR2 ( 25 )
, Channel_Line_Up VARCHAR2 ( 25 )
, LOB_value VARCHAR2 ( 25 )
, Status_of_device VARCHAR2 ( 25 )
, outlet VARCHAR2(25)
, kit_code VARCHAR2(25)
, serial_Number VARCHAR2(25)
, shipper VARCHAR2(25)
, estimated_recived_date date )
type---
create or replace
TYPE prepaidActDeviceDetails_tabobj as table of prepaid_act_dvc_details_obj
---- i need to run this package via separate procedure. but i don't know how to pass the variable. because the passing argument contain object tab variable. please help me.. give me suggestion or procedure to run this pkg. -
itunes update would not install due to an error, now itunes won't run and I get this error message when I try to launch itunes: iTunes.exe - Unable to Locate Component "This application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem."
I'm on a Dell PC running Vista Home Premium.
HELP!!!!!!!!!!!!!!!!!!!try removing all itunes and all other apple program
follow this link for more info. http://support.apple.com/kb/HT1923
reboot ur window after uninstalling
after that download the latest itunes setup and install. -
Still got this error even after re-installing
I re installed Oracle 11g on windows xp and still got this error -
Listener refused the connection error : ORA - 12505 TNS listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: local host:1521:orcl
Thanks for the help in advanceModerator Comment and Action:
... again, the same issue as your original post:
Listener refused the connection error : ORA - 12505 TRIED EVERYTHING
As advised in that thread, continue the ENTIRE discussion in one place.
(which means that thread, including updating all relevant information as may become necessary)
Do not multi-post, if you ever expect to get assistance.
This new post of yours is locked. -
Hello Everybody,
I have a site collection in sharepoint 2013. When I go to site contents and then click on workflows I got this error:
Method 'StartWorkflowOnListItem' in
type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider' from
assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not have an
implementation.
Then I created a site workflow using SharePoint designer 2013 and I published, Still the same error.
I created a list and a workflow associated to that list. That workflow is configured to run manually for every item in that list. Again when I go to the item in the list and click workflows I got the same error.
What Am I missing?
Please, Can anyone help me?I'm having this issue as well, the apparent fix is to install
an additional patch to the farm servers. I installed the patch in my dev environment and it takes SharePoint down for about 5 minutes per install, but doesn't require a reboot.
Source:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/b189e4b8-bb9e-4ade-a3d5-cd2e0f90e93f/workflow-not-working-after-installing-service-pack-1-and-patches?forum=sharepointadmin -
By the today e-received updates for Adobe Photoshop Elemenst 12.1 and Adobe Premiere Elements 12.1 I got this error messages: Failure code = U44M1P2003. What to do? System = Window7 64bit.
Sometimes the Adobe servers used for the updates can get busy and it’s necessary to try a couple of times. Also make sure you don’t have a firewall which may be blocking the connection. It sometimes helps to temporarily disable internet security/anti-virus software. Because the Organizer is shared by both programs it often helps to do the PSE update first, followed by the PRE update in that order.
Select the 12.1 update for PSE from the updater dialog and ensure everything else is unchecked. Quit PSE and PRE if you have it running and then start the update.
If PSE updates properly to 12.1 repeat the process for PRE. -
When i run relink FND using adadmin, i got this error...
when i run relink FND using adadmin, i got this error...
Starting link of product 'pay' on Sun Nov 7 20:50:35 PKT 2004
Current product is pay
Current product TOP is $PAYTOP
Current prodarea is /home/oracle/opt/d01/oracle/prodappl/pay/11.5.0
Backing up or removing executables...
adrelink: error: program PYATUPD is not writable.
Please make sure that the Unix userid running this program has write
permissions on it, and that it is not in use. If the program PYATUPD
is in use, please make sure to terminate it before relinking
Oracle Applications.
adrelink is exiting with status 1
End of adrelink session
Date/time is Sun Nov 7 20:50:35 PKT 2004
You are running adrelink, version 115.82
Pl suggest
regrds,
Rizwanwhen i run relink on dbnode it compile successfully, but when i do same on apps node it give below error
Done with link of fnd executable 'flint60' on Thu Nov 4 18:12:59 PKT 201
Relink of module "flint60" failed.
See error messages above (also recorded in log file) for possible
reasons for the failure. Also, please check that the Unix userid
running adrelink has read, write, and execute permissions
on the directory /home/oracle/opt/d01/oracle/prodappl/fnd/11.5.0/bin,
and that there is sufficient space remaining on the disk partition
containing your Oracle Applications installation.
Done with link of product 'fnd' on Thu Nov 4 18:12:59 PKT 2010
adrelink is exiting with status 1
End of adrelink session
Date/time is Thu Nov 4 18:12:59 PKT 2010
Line-wrapping log file for readability ... -
Where can I find this download...I just updated to Yomesite and I got this message:What is says is To open "Adobe Dreamweaver CS5.app" you need to install the legacy Java SE 6 runtine.
Hi zimieh. Do you get it by going to the app store and run update,. If not here is a link for the only java update I find for Yosemite. http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
-
I am using Acrobat XI Pro and tried to install the current update. I got this error message: "Error 1328.Error applying patch to file C:\Config.Msi\pT64b3.tmp It has probably been updated by other means1 and can no longer be modified by this patch. For more information contact your patch vendor." tried uninstalling and reinstalling and still get the error. Searched for C:\Config.Msi\pT64b3.tmp and cannot find the path or the file
For AA XI, you only need the 11.0.09 patch. Download from http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows (Use "MAC" if a MAC is used).
-
I just tried to connect and sync my iTouch 4G to iTunes and got this error message: " This iPod can't be used because Apple Mobile Device service is not started". I just did the upgrade fo Safari and iCloud. Any suggestions?
Thanks!
Dan FarrellI corrected the link in the previous post you responded to, but here is the correct link again.
http://support.apple.com/kb/ts1567
B-rockt -
I am having trouble dating to version 3.6.14 or updating to the Beta testing. I am running Linux/Ubutu OS and I get this error message:/tmp/p7x3vko2.part could not be saved, because the source file could not be read. Please help. Thank you , Deb
Solved for me.
I set the owner/permissions of my profile's mozilla folder's (and all the files in it) to read/write access, and the problem disappeared.
in linux:''
* cd /home/myusername/.mozilla
* chown -cR myusername:mygroup ./
* chmod -cR +rw ./
'''Never do that with root privs (nor with sudo)'''
Maybe you are looking for
-
How can I purchase more storage for assets?
What options do I have to upgrade my storage plan once I reach my limit?
-
Hi. My application has a gui. Now, when a button in the gui is invoked, its action should invoke Ant build which is existing , so that the build.xml will do what is necessary. How can I do it? That is, how to call the Ant via java? can anybody help m
-
SAXParser inside unsigned Applet: Validation with DTD
Hello! I am trying to run an applet that performs some XML parsing ideally with DTD validation. The issue is that I can't access files directly, but using tricks such as Class.getResourceAsStream() which I can do fine for my XML file my XML file. But
-
I have ACS v5 connected to a Windows 2008 AD. Why cant I see any other groups besides the default builtin or Users? If I set my Base DN to search for groups : CN=Groups,DC=LAB,DC=LOCAL, I do not see any groups listed within it. But if I do CN=Built
-
Unable to turn on two-step verification
I thought that I had turned on two-step verification but when I check System Preferences > iCloud > Account Details > Security I see "Two-Step Verification: Off" So I go to My Apple ID > Password and Security but don't see any Two-Step Verification l