Skip to content
Advertisement

salesforce python Beatbox import error

I am trying to log in to salesforce.com’s sandbox using a URL, ID and PASS. I want to use SOAP API for that. When I try to import beatbox in python3, it throws an ImportError exception. However, I can confirm that beatbox is installed in python3. So what am I doing wrong? Is there any other way to do it?

Python 3.5.0 (default, Dec  6 2015, 17:23:12) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import beatbox
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/site-packages/beatbox-32.1-py3.5.egg/beatbox/__init__.py", line 1, in <module>
ImportError: No module named '_beatbox'
>>> 

Advertisement

Answer

The beatbox module that you probably installed is this : Beatbox 32.1.

Solution 1 : The above beatbox module only supports python 2.x (tested with python 2.7). So, switch to Python 2.x if that is an option.

You can find the source by original author of beatbox here and it has been updated to support python3.

Solution 2 :

  • Clone the repo in your local machine using git clone https://github.com/superfell/Beatbox.git

  • Change to the Beatbox directory

  • Install the module using python setup.py install

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement