Code Monkey home page Code Monkey logo

Comments (18)

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

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.

kodewise avatar kodewise commented on May 19, 2024

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Did you run setupConfig with python3?

from ytmdl.

kodewise avatar kodewise commented on May 19, 2024

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

That's a weird issue man.
Try sudo pip install pathlib

from ytmdl.

kodewise avatar kodewise commented on May 19, 2024

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

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.

mehalter avatar mehalter commented on May 19, 2024

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.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

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.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

@mehalter Do you have a .config folder?

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

I do. That is a type error for join, not a problem with my folder. Also I have all the dependencies.

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

@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.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

@mehalter @NaiCity Can you guys check the latest update and report?
I have made some major changes. Should work now.

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

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.

kodewise avatar kodewise commented on May 19, 2024

@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.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

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.

kodewise avatar kodewise commented on May 19, 2024

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.