I want to start programming my SIP client and I started with an example of pjsua to test REGISTRATION CODE
Traceback (most recent call last):
File "D:\work\zscenter\registration.py", line 49, in <module>
lib.create_transport(pj.TransportType.UDP, pj.TransportConfig(5080))
File "C:\Python27\lib\site-packages\pjsua.py", line 2301, in create_transport
err, tp_id = _pjsua.transport_create(type, cfg._cvt_to_pjsua())
File "C:\Python27\lib\site-packages\pjsua.py", line 536, in _cvt_to_pjsua
cfg.qos_type = self.qos_type
AttributeError: '_pjsua.Transport_Config' object has no attribute 'qos_type'
Exception AttributeError: "'NoneType' object has no attribute 'destroy'"
in <bound method Lib.__del__ of <pjsua.Lib instance at 0x0212AE40>> ignored
can someone help me please ?
I installed the latest version and its working fine thanks
Related
I am experiencing issues to instantiate an Influxdb client for python in a Raspberry Pi 4b (OS: Linux).
influxdb_client version: 1.35
I have tested to pass the arguments by means of a yaml file as well as directly to the InfluxDBClient class:
Option 1:
self.url = config["INFLUXDB_URL"]
self.org = config["INFLUXDB_ORG"]
self.token = config["INFLUXDB_TOKEN"]
self.influxClient = InfluxDBClient(url=self.url, token=self.token, org=self.org, debug=True)
Option 2:
self.influxClient = InfluxDBClient(url="https://TEST.data.test.ca/", token="TOKENVALUE", org="JPerez")
And voila the result:
Exception ignored in: <function ApiClient.__del__ at 0x7f641ecee0>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py", line 84, in __del__
self._signout()
File "/usr/local/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py", line 661, in _signout
if _requires_expire_user_session(self.configuration, self.cookie):
AttributeError: 'ApiClient' object has no attribute 'configuration'
Exception ignored in: <function InfluxDBClient.__del__ at 0x7f648d6c10>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/influxdb_client/client/influxdb_client.py", line 283, in __del__
if self.api_client:
AttributeError: 'InfluxDBClient' object has no attribute 'api_client'
I've got this issue while running circus-serve locally and calling the service with circus-script.
Tried different versions of circus and reinstalling dependant packages but nothing worked.
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "./.pyenv/versions/3.5.3/envs/carta-web/lib/python3.5/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done
return handle(*args_tuple)
File "./.pyenv/versions/3.5.3/envs/carta-web/lib/python3.5/site-packages/circus/thrift/servers/gevent.py", line 68, in handle
self.processor.process(iprot, oprot)
File "./.pyenv/versions/3.5.3/envs/carta-web/lib/python3.5/site-packages/circus/thrift/processor.py", line 100, in process
result = tcall_meta.result
AttributeError: 'TApplicationException' object has no attribute 'result'
The issue was because I was using different configurations for the service and for the client.
i'm working on an virtualbox VM, and i use to build an docker image with a python script using a docker sdk client. here is the code:
try:
#print(os.environ)
client = docker.from_env()
# building the base image
image=client.images.build(path=os.getcwd(), dockerfile=os.getcwd()+"/Dockerfile", tag="xlrelease/builder", nocache=True, forcerm=True, use_config_proxy=True)
except Exception as er:
print(er)
And i have the following exception:
'NoneType' object has no attribute 'setdefault'
After investigate, i discover that it's when i add the ## use_config_proxy=True ## parameter, the error appear.
Could someone help me fix this isssue ?
the Traceback was:
Traceback (most recent call last):
File "build.py", line 41, in <module>
image=client.images.build(path=os.getcwd(), dockerfile=os.getcwd()+"/Dockerfile", tag="xlrelease/builder", nocache=True, forcerm=True, use_config_proxy=True)
File "/usr/local/python3.7.3/lib/python3.7/site-packages/docker/models/images.py", line 279, in build
resp = self.client.api.build(**kwargs)
File "/usr/local/python3.7.3/lib/python3.7/site-packages/docker/api/build.py", line 179, in build
buildargs.setdefault(k, v)
AttributeError: 'NoneType' object has no attribute 'setdefault'
i solved the issue by finding the full traceback:
Traceback (most recent call last):
File "build.py", line 41, in <module>
image=client.images.build(path=os.getcwd(), dockerfile=os.getcwd()+"/Dockerfile", tag="xlrelease/builder", nocache=True, forcerm=True, use_config_proxy=True)
File "/usr/local/python3.7.3/lib/python3.7/site-packages/docker/models/images.py", line 279, in build
resp = self.client.api.build(**kwargs)
File "/usr/local/python3.7.3/lib/python3.7/site-packages/docker/api/build.py", line 179, in build
buildargs.setdefault(k, v)
AttributeError: 'NoneType' object has no attribute 'setdefault'
I have a new parameter(buildargs) when i call the client function:
image=client.images.build(path=os.getcwd(), buildargs={'tags':'test'}, dockerfile=os.getcwd()+"/Dockerfile", tag="xlrelease/builder", nocache=True, forcerm=True, use_config_proxy=True)
This solved the issue
With Apache Storm 1.1.0 and streamparse there is an issue. After configuring serializer as "msgpack" I see the following error. Do you know any fixes?
java.lang.RuntimeException: org.apache.storm.multilang.NoOutputException: Pipe to subprocess seems to be broken! No output read.
Serializer Exception:
Traceback (most recent call last):
File "/home/ab/topology/bin/streamparse_run", line 11, in <module> sys.exit(main())
File "/home/ab/topology/lib/python3.6/site-packages/streamparse/run.py", line 45, in main cls(serializer=args.serializer).run()
File "/home/ab/topology/lib/python3.6/site-packages/pystorm/component.py", line 483, in run storm_conf, context = self.read_handshake()
File "/home/ab/topology/lib/python3.6/site-packages/pystorm/component.py", line 311, in read_handshake pid_dir, _conf, _context = msg['pidDir'], msg['conf'], msg['context']
TypeError: 'int' object is not subscriptable
at org.apache.storm.utils.ShellProcess.launch(ShellProcess.java:96)
at org.apache.storm.spout.ShellSpout.open(ShellSpout.java:111)
at org.apache.storm.daemon.executor$fn__4976$fn__4991.invoke(executor.clj:600)
at org.apache.storm.util$async_loop$fn__557.invoke(util.clj:482)
at clojure.lang.AFn.run(AFn.java:22)
at java.lang.Thread.run(Thread.java:748)
Related projects are:
https://github.com/Parsely/streamparse
https://github.com/apache/storm
https://github.com/pystorm/pystorm
I have created a set of python scripts that scrape information out of a website using Internet Explorer. This methodology while not ideal, is the only way I could get it to work as the site does not work well with other browsers and has single-sign on authentication which was difficult to deal with through requests. Anyways, it works. I'd like to be able to share with coworkers without them needing to install python or modify scripts.
I was able to create an executable of the scripts that works on my computer through pyinstaller. When I share with coworkers, though, the get an error "local variable 'browser' referenced before assignment." I tried referencing the IEWebdriverService.exe the binaries field of the pyinstaller .spec file. This caused the size of the .exe to grow so it did something..but it didn't solve the problem.
This is my first time creating an executable and I have really no idea how the IE Driver works so I'm stuck at the moment. Any help would be greatly appreciated. I'm open to using another tool than pyinstaller if that helps, I just found it the easiest to use of the alternatives. I'm using Python 3.5.
thanks.
Edit - Error Log
run # 1
['Part Number = 12649189']
Error
Exception ignored in: <bound method Service.__del__ of <selenium.webdriver.ie.se
rvice.Service object at 0x0000000004D00D30>>
Traceback (most recent call last):
File "site-packages\selenium\webdriver\common\service.py", line 173, in __del_
_
File "site-packages\selenium\webdriver\common\service.py", line 145, in stop
AttributeError: 'Service' object has no attribute 'process'
['Part Number = 12649189']
Error
Exception ignored in: <bound method Service.__del__ of <selenium.webdriver.ie.se
rvice.Service object at 0x0000000004D00D30>>
Traceback (most recent call last):
File "site-packages\selenium\webdriver\common\service.py", line 173, in __del_
_
File "site-packages\selenium\webdriver\common\service.py", line 145, in stop
AttributeError: 'Service' object has no attribute 'process'
['Part Number = 12649189']
Error
Exception ignored in: <bound method Service.__del__ of <selenium.webdriver.ie.se
rvice.Service object at 0x0000000004D00D30>>
Traceback (most recent call last):
File "site-packages\selenium\webdriver\common\service.py", line 173, in __del_
_
File "site-packages\selenium\webdriver\common\service.py", line 145, in stop
AttributeError: 'Service' object has no attribute 'process'
Traceback (most recent call last):
File "Parent_Part_W_UI.py", line 138, in <module>
File "Parent_Part_W_UI.py", line 23, in __init__
File "Parent_Part_W_UI.py", line 40, in init_window
File "Parent_Part_W_UI.py", line 122, in execute_main
UnboundLocalError: local variable 'browser' referenced before assignment