Im using on my windows python 3.3.2 I have a problem to instal pydelicious API. I was trying to make it work for a whole week but I couldnt make it happen.
This is my problem:
C:\Users\bartl\Desktop\python-delicious-master>python setup.py install
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import pydelicious
File "C:\Users\bartl\Desktop\python-delicious-master\pydelicious\__init__.py", line 171
raise DeliciousItemExistsError, params['url']
^
SyntaxError: invalid syntax
Can somebody help me?
Replace the __init__.py in the python-delicious-master/pydelicious/.
Here is the link for __init__.py, https://github.com/pcao10/pydelicious/issues/43
It works for me!
Related
I installed pyAudioAnalysis on python2.7 using pycharm (linux). Trying to run audioBasicIO.py gives the following error. I have installed eyeD3 but it does not work.
/usr/bin/python2.7 /usr/local/lib/python2.7/dist-packages/pyAudioAnalysis/audioBasicIO.py
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pyAudioAnalysis/audioBasicIO.py", line 6, in <module>
import eyed3
File "/home/.local/lib/python2.7/site-packages/eyed3/__init__.py", line 31, in <module>
from .utils.log import log # noqa: E402
File "/home/.local/lib/python2.7/site-packages/eyed3/utils/__init__.py", line 361
msg = f"invalid level choice: {level} (choose from {parser.log_levels})"
^
SyntaxError: invalid syntax
Is my installation incorrect? This is the first time I use this library, does anyone have any suggestions.
f-strings aren't supported for python 2.7. You need python 3.6 or above to use them. Here is a good workaround, in which you can use f-strings in below python 3.6.
When I am running python gfxinfo2.py com.android.systemui from this link
I am getting the following message Traceback (most recent call last):
File "gfxinfo2.py", line 13, in from com.dtmilano.android.viewclient import ViewClient File "D:\Softwares\AndroidViewClient-master\AndroidViewClient-master\src\com\dtmilano\android\viewclient.py", line 25, in from culebratester_client import WindowHierarchyChild, WindowHierarchy File "D:\Softwares\AndroidViewClient-master\AndroidViewClient-master\src\com\dtmilano\android\culebratester_client__init__.py", line 18, in from culebratester_client.api.default_api import DefaultApi ImportError: No module named culebratester_client.api.default_api
I am a newbie and don't know much about android and how it works. I need to understand how this works. Kindly help me out. What am I doing wrong over here?
You have to install culebratester-client
pip install culebratester-client
I am running a python code using python3.7 in Ubuntu 18.10.
The code requires use of aux module of python.
So, I installed the aux python module.
After that if I run the code it shows the following error,
Traceback (most recent call last):
File "models.py", line 5, in <module>
from aux.ptb_aux import *
File "/home/rstudio/anaconda3/lib/python3.7/site-packages/aux/__init__.py", line 40
except Exception, e:
^
SyntaxError: invalid syntax
Can anyone please tell me what might be the source of error and the possible solution.
Thanks in advance.
I tried to install a python package "BeautifulSoup" and it gave a error message: "pkg_resources.DistributionNotFound". After going through stackoverflow website I download a python script and ran it:
https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py
Now it is throwing a new error message when I try to install sudo pip install beautifulsoup4:
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.4/dist-packages/pkg_resources.py", line 45
def _bypass_ensure_directory(name, mode=0777):
SyntaxError: invalid token
Another interesting thing is when a type a wrong command in terminal like "lss" or anything error message is like this appear:
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 8, in <module>
import CommandNotFound
File "/usr/share/command-not-found/CommandNotFound/__init__.py", line 1, in <module>
from CommandNotFound import CommandNotFound
File "/usr/share/command-not-found/CommandNotFound/CommandNotFound.py", line 13
except gdbm.error, err:
SyntaxError: invalid syntax
Could someone guide me in how to resolve this? My system:
kernel: 3.16.0-4-amd64 x86_64 (64 bit)
desktop: MATE 1.10.0
distro: LinuxMint 2 betsy
Solution
Changed the symblic link "python" in /usr/bin to point at "/usr/bin/python3.4" to "/usr/bin/python2.7".
Other thing is "mintMenu" the advanced start menu in the panel is now working again.
For some odd reason Pystacia is not able to find MagickWand.h on OS X.
I tried to tweak $DYLD_LIBRARY_PATH and $C_INCLUDE_PATH but no luck.
I have imagemagick up and running.
$ mdfind MagickWand.h
/usr/local/Cellar/imagemagick/6.8.010/share/doc/ImageMagick/www/api/MagickWand/struct__MagickWand.html
/usr/local/Cellar/imagemagick/6.8.0-10/include/ImageMagick/wand/MagickWand.h
And keep getting this error:
>>> import pystacia
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/pystacia/__init__.py", line 193, in <module>
init()
File "/Library/Python/2.7/site-packages/pystacia/__init__.py", line 28, in init
raise TinyException('Could not find or load magickWand')
pystacia.util.TinyException: Could not find or load magickWand
I went further down to figure it out how pystacia looks for MagickWand.h:
from ctypes.util import find_library
resolved_path = find_library('MagickWand')
if not resolved_path:
raise PystaciaException('Could not find or load magickWand')
Still no lucky.
Looking to the latest pystacia code from bitbucket I realized that the version from pip is pretty old (from 2011) and a installation from the latest code solved my problem -- as I can afford to run unreleased code.
I also entered an Issue on bitbucket so the maintainer put out a new code release.