Comments (16)
Update : installing with pip worked
pip install scdl
from scdl.
i had the same error while trying to install it whitout sudo...
but install with pip should not work : urllib does not exist in python2.
from scdl.
Here's my output for pip install
Downloading/unpacking scdl
Downloading scdl-0.9.tar.gz
Running setup.py (path:/tmp/pip_build_philippe/scdl/setup.py) egg_info for package scdl
Requirement already satisfied (use --upgrade to upgrade): docopt in /usr/local/lib/python2.7/dist-packages (from scdl)
Requirement already satisfied (use --upgrade to upgrade): soundcloud in /usr/local/lib/python2.7/dist-packages (from scdl)
Requirement already satisfied (use --upgrade to upgrade): wget in /usr/local/lib/python2.7/dist-packages (from scdl)
Requirement already satisfied (use --upgrade to upgrade): configparser in /usr/local/lib/python2.7/dist-packages (from scdl)
Requirement already satisfied (use --upgrade to upgrade): fudge==1.0.3 in /usr/local/lib/python2.7/dist-packages (from soundcloud->scdl)
Requirement already satisfied (use --upgrade to upgrade): requests>=0.14.0 in /usr/lib/python2.7/dist-packages (from soundcloud->scdl)
Requirement already satisfied (use --upgrade to upgrade): simplejson>=2.0 in /usr/local/lib/python2.7/dist-packages (from soundcloud->scdl)
Installing collected packages: scdl
Running setup.py install for scdl
Installing scdl script to /usr/local/bin
Successfully installed scdl
Cleaning up...
from scdl.
and the script works ?
from scdl.
I believe not...
scdl https://soundcloud.com/sandervandoorn/sander-van-doorn-oliver-heldens-this-original-mixout-now
Traceback (most recent call last):
File "/usr/local/bin/scdl", line 9, in <module>
load_entry_point('scdl==0.9', 'console_scripts', 'scdl')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python2.7/dist-packages/scdl/scdl.py", line 36, in <module>
import urllib.request
ImportError: No module named request
from scdl.
that is what i said, request doesn't exist on python2.
try to install configparser by hand with pip3
from scdl.
pip3 install configparser
still gives me the same "invalid syntax" error. And from what I saw Googling around, is that it's a known problem/bug
https://bugs.launchpad.net/ubuntu/+source/python-virtualenv/+bug/1156704
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1095272
from scdl.
do it with sudo
from scdl.
yeah I tried both... It's a syntax error, not a permission error.
from scdl.
weird cause i had this issue and if my memory is good when i tried with sudo it worked ....
from scdl.
huum perhaps i tried with easy_install3
from scdl.
There we go!!! It worked!
easy_install3 configparser
Followed by
pip3 install scdl
Outputs
Downloading/unpacking scdl
Downloading scdl-0.9.tar.gz
Running setup.py (path:/tmp/pip_build_philippe/scdl/setup.py) egg_info for package scdl
Downloading/unpacking docopt (from scdl)
Downloading docopt-0.6.2.tar.gz
Running setup.py (path:/tmp/pip_build_philippe/docopt/setup.py) egg_info for package docopt
Downloading/unpacking soundcloud (from scdl)
Downloading soundcloud-0.4.1.tar.gz
Running setup.py (path:/tmp/pip_build_philippe/soundcloud/setup.py) egg_info for package soundcloud
Downloading/unpacking wget (from scdl)
Downloading wget-2.2.tar.gz
Running setup.py (path:/tmp/pip_build_philippe/wget/setup.py) egg_info for package wget
Requirement already satisfied (use --upgrade to upgrade): configparser in /usr/local/lib/python3.4/dist-packages/configparser-3.5.0b2-py3.4.egg (from scdl)
Downloading/unpacking fudge==1.0.3 (from soundcloud->scdl)
Downloading fudge-1.0.3.tar.gz (87kB): 87kB downloaded
Running setup.py (path:/tmp/pip_build_philippe/fudge/setup.py) egg_info for package fudge
warning: no files found matching '*.txt' under directory 'javascript/fudge'
no previously-included directories found matching 'docs/_build'
Requirement already satisfied (use --upgrade to upgrade): requests>=0.14.0 in /usr/lib/python3/dist-packages (from soundcloud->scdl)
Downloading/unpacking simplejson>=2.0 (from soundcloud->scdl)
Downloading simplejson-3.6.5.tar.gz (73kB): 73kB downloaded
Running setup.py (path:/tmp/pip_build_philippe/simplejson/setup.py) egg_info for package simplejson
Installing collected packages: scdl, docopt, soundcloud, wget, fudge, simplejson
Running setup.py install for scdl
Installing scdl script to /usr/local/bin
Running setup.py install for docopt
Running setup.py install for soundcloud
Fixing build/lib/soundcloud/__init__.py build/lib/soundcloud/client.py build/lib/soundcloud/request.py build/lib/soundcloud/hashconversions.py build/lib/soundcloud/resource.py
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Fixing build/lib/soundcloud/__init__.py build/lib/soundcloud/client.py build/lib/soundcloud/request.py build/lib/soundcloud/hashconversions.py build/lib/soundcloud/resource.py
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Running setup.py install for wget
Running setup.py install for fudge
warning: no files found matching '*.txt' under directory 'javascript/fudge'
no previously-included directories found matching 'docs/_build'
Fixing build/lib/fudge/inspector.py build/lib/fudge/__init__.py build/lib/fudge/util.py build/lib/fudge/exc.py build/lib/fudge/patcher.py build/lib/fudge/tests/test_inspector.py build/lib/fudge/tests/__init__.py build/lib/fudge/tests/test_import_all.py build/lib/fudge/tests/_py3_suite.py build/lib/fudge/tests/test_patcher.py build/lib/fudge/tests/test_fudge.py build/lib/fudge/tests/test_registry.py build/lib/fudge/tests/test_inspector_import_all.py build/lib/fudge/tests/support/_for_patch.py build/lib/fudge/tests/support/__init__.py
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Fixing build/lib/fudge/inspector.py build/lib/fudge/__init__.py build/lib/fudge/util.py build/lib/fudge/exc.py build/lib/fudge/patcher.py build/lib/fudge/tests/test_inspector.py build/lib/fudge/tests/__init__.py build/lib/fudge/tests/test_import_all.py build/lib/fudge/tests/_py3_suite.py build/lib/fudge/tests/test_patcher.py build/lib/fudge/tests/test_fudge.py build/lib/fudge/tests/test_registry.py build/lib/fudge/tests/test_inspector_import_all.py build/lib/fudge/tests/support/_for_patch.py build/lib/fudge/tests/support/__init__.py
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Running setup.py install for simplejson
building 'simplejson._speedups' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c simplejson/_speedups.c -o build/temp.linux-x86_64-3.4/simplejson/_speedups.o
simplejson/_speedups.c:2:20: fatal error: Python.h: Aucun fichier ou dossier de ce type
#include "Python.h"
^
compilation terminated.
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
I'm retrying the build without the C extension now.
***************************************************************************
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
***************************************************************************
Successfully installed scdl docopt soundcloud wget fudge simplejson
Cleaning up...
Got a compilation on "simplejson/_speedups.c" but not a big deal.
UPDATE : To fix Python.h not found
sudo apt-get install python3-dev
after adding my path and auth-token I ran the following command and it worked
scdl -l SOUNDCLOUD_URL_HERE
Big thanks! :)
from scdl.
the auth_token is only needed when you use scdl me [OPTIONS]
;)
from scdl.
In case this is helpful to future people: I had this same error, and easy_install-3.4 worked for me as well. BUT scdl still didn't resolve because it didn't make any symlinks from any directories in my $PATH.
ln -s /Library/Frameworks/Python.framework/Versions/3.4/bin/scdl /usr/local/bin/scdl
fixed that for me.
from scdl.
@staringispolite 's instructions worked for me!
from scdl.
This seems to be the fix, had to actually go into /bin
and -rm -rf
the scdl
package because pip3/pip wasn't doing it. Just FYI. Thanks so much man.
from scdl.
Related Issues (20)
- How to get the auth token? HOT 1
- [FEATURE REQ] prefer opus over mp3 HOT 3
- Some specific song won't download HOT 3
- Playlist stops downloading upon reaching a track it has issues with.
- "path not found" error HOT 4
- Original File downloads broken HOT 3
- Invalid client_id HOT 2
- Having trouble with title tags on playlist download HOT 1
- Invalid client ID. Using a dynamically generated client_id.
- Downloading doesn't work anymore HOT 1
- Read Timeout error HOT 1
- Delete *.scdl.lock after all processes are complete HOT 3
- Log to stderr, download to stdout HOT 2
- sanitize_str function makes new character appear on Debian Linux HOT 1
- Android/Termux doesn't have flock, see yt-dlp solution HOT 1
- Document how scdl chooses which transcoding to download
- Issue on directory when working on lib HOT 1
- Debug session returns `false` on everything, then errors out. HOT 5
- --flac Broken Length/Bitrate HOT 1
- Download playlist failed HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scdl.