tableau / TabPy

Execute Python code on the fly and display results in Tableau visualizations:
https://tableau.github.io/TabPy/
MIT License
1.56k stars 598 forks source link

After tabpy installation error: configparser.DuplicateOptionError: While reading from '<dict>': option 'socks_proxy' in section 'DEFAULT' already exists #525

Closed demekSR closed 2 years ago

demekSR commented 2 years ago

Environment information:

Describe the issue After installation tabpy in accrodance with https://tableau.github.io/TabPy/docs/server-install.html, when I run tabpy I am getting error:

 /infa/mgmt/pythons/python-3.8.12/bin> ./tabpy
Traceback (most recent call last):
  File "./tabpy", line 8, in <module>
    sys.exit(main())
  File "/infa/mgmt/pythons/python-3.8.12/lib/python3.8/site-packages/tabpy/tabpy.py", line 43, in main
    app = TabPyApp(config)
  File "/infa/mgmt/pythons/python-3.8.12/lib/python3.8/site-packages/tabpy/tabpy_server/app/app.py", line 76, in __init__
    self._parse_config(config_file)
  File "/infa/mgmt/pythons/python-3.8.12/lib/python3.8/site-packages/tabpy/tabpy_server/app/app.py", line 243, in _parse_config
    parser = configparser.ConfigParser(os.environ)
  File "/infa/mgmt/pythons/python-3.8.12/lib/python3.8/configparser.py", line 639, in __init__
    self._read_defaults(defaults)
  File "/infa/mgmt/pythons/python-3.8.12/lib/python3.8/configparser.py", line 1219, in _read_defaults
    self.read_dict({self.default_section: defaults})
  File "/infa/mgmt/pythons/python-3.8.12/lib/python3.8/configparser.py", line 752, in read_dict
    raise DuplicateOptionError(section, key, source)
configparser.DuplicateOptionError: While reading from '<dict>': option 'socks_proxy' in section 'DEFAULT' already exists

To Reproduce

OpenSSl installation:

wget https://www.openssl.org/source/openssl-1.0.2o.tar.gz

./config --prefix=/infa/mgmt/pythons/openssl --openssldir=/infa/mgmt/pythons/openssl
make 
make install

Python installation:

 LDFLAGS="${LDFLAGS} -Wl,-rpath=/infa/mgmt/pythons/openssl/lib" ./configure --prefix=/infa/mgmt/pythons/python-3.8.12 --with-ensurepip=install --with-openssl=/infa/mgmt/pythons/openssl/
 make
 make test
 make install 

Tabpy installation: /infa/mgmt/pythons/python-3.8.12/bin/pip3.8 install tabpy Run tabpy:

./tabpy

or 

./tabpy --config file.conf   

file.conf exactly the same like example: https://tableau.github.io/TabPy/docs/server-config.html#configuration-file-example

Expected behavior

Running tabpy wihtout error.

nmannheimer commented 2 years ago

@demekSR is this still an issue?

demekSR commented 2 years ago

Running command unset socks_proxy resolved the issue.