Comments (18)
Do you have python 3.4+ ? pathlib is supposed to be in your python setup.
Please upgrade your python version to the latest one or at least one that is v3.4 or more.
from ytmdl.
from ytmdl.
Did you run setupConfig with python3?
from ytmdl.
from ytmdl.
That's a weird issue man.
Try sudo pip install pathlib
from ytmdl.
from ytmdl.
I really think this is probably because of two setups. Other users are not facing any issues. If possible can you try anywhere with just python 3 installed?
from ytmdl.
I cannot get anything to run either. Both the setupConfig.py and the ytmdl.py return this error
Traceback (most recent call last):
File "setupConfig.py", line 8, in <module>
class DEFAULTS:
File "setupConfig.py", line 24, in DEFAULTS
CONFIG_PATH = os.path.join(Path.home(), '.config', 'ytmdl')
File "/usr/lib/python3.5/posixpath.py", line 89, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib/python3.5/genericpath.py", line 143, in _check_arg_types
(funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'PosixPath'
from ytmdl.
Its weird coz i am able to use it all right.
Can you post the pathlib version?
Just run the following command and post the output
sudo pip install pathlib
Also which linux distro are you using?
from ytmdl.
@mehalter Do you have a .config folder?
from ytmdl.
I do. That is a type error for join, not a problem with my folder. Also I have all the dependencies.
from ytmdl.
@mehalter Type following and show me the output
python
Then the following
from pathlib import Path
print(Path.home())
Please post the output
from ytmdl.
@mehalter @NaiCity Can you guys check the latest update and report?
I have made some major changes. Should work now.
from ytmdl.
So I have done the pip install and it installed great. If I run ytmdl -s
without the config folder already created I get the error AttributeError: module 'os' has no attribute 'mkdirs'
.
from ytmdl.
@mehalter Exactly. I'm getting this error
Traceback (most recent call last):
File "/usr/local/bin/ytmdl", line 168, in
main()
File "/usr/local/bin/ytmdl", line 60, in main
setupConfig.make_config()
File "/usr/local/lib/python3.5/dist-packages/ytmdl/setupConfig.py",n make_config
os.mkdirs(DEFAULTS.CONFIG_PATH)
AttributeError: module 'os' has no attribute 'mkdirs'
from ytmdl.
Sorry about that issue. I made a silly mistake. I have fixed it and it should be working all right now. Please try it.
from ytmdl.
from ytmdl.
@NaiCity Sorrry for such a late reply. Most issues are fixed now. Please try installing the latest version by
sudo pip install --no-cache-dir ytmdl --upgrade
If you have any version already installed then consider uninstalling it by the followingf command
sudo pip uninstall ytmdl
from ytmdl.
Related Issues (20)
- Fetching metadata from yt-dlp using --add-metadata HOT 7
- Filename control from CLI HOT 5
- Ytmdl skipping meta without flags and deleting the downloaded file. HOT 1
- Why does it output 320 kbps MP3? HOT 2
- Super annoying to tag playlist HOT 1
- Automatic skipping of songs already HOT 1
- Didn't work: complaining about iTunes... HOT 7
- ytmdl --list YOUTUBE_PLAYLIST_URL ====> YOUTUBE_PLAYLIST_URL is empty HOT 1
- Question
- Allow overriding ytmdl config file every run HOT 9
- Windows "|" in song name issue again HOT 1
- Zombie files buildup HOT 1
- Saavn songs doesn't have 100x100 album art HOT 1
- Add sponsorblock support HOT 1
- [Bug] Errors from missing videos in playlists don't seem to be handled gracefully.
- [Premium Youtube Music] can't download premium only songs! HOT 1
- Crash on ampersand in artist HOT 2
- "UnicodeEncodeError: 'charmap' codec can't encode character" when trying to download a song. HOT 3
- [FEATURE REQUEST] Consider dropping/replacing ffmpeg-python dependency because of future transitive dependency HOT 2
- Add support for showing `album name` in the metadata results
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 ytmdl.