Git Product home page Git Product logo

Comments (5)

Rasinj avatar Rasinj commented on September 24, 2024

Hi!

That's mysterious, Pathlib should have the exist_ok argument added from 3.5, and it looks like you're using 3.6.

Can you run this line below (swapping out python for the interpreter you're using if necessary)?

python -c "from pathlib import Path; Path('./output').mkdir(exist_ok=True)"

Let me know if that's giving the same error. You may want to try with python3.8 instead if it does.

from duplex-tools.

defendant602 avatar defendant602 commented on September 24, 2024

Thanks for your reply. I swapped out python for the python I used for duplex_tools and run the above command. It gave the same error.

Traceback (most recent call last): File "<string>", line 1, in <module> TypeError: mkdir() got an unexpected keyword argument 'exist_ok'

I will try with another python version. Thanks.

from duplex-tools.

defendant602 avatar defendant602 commented on September 24, 2024

Hi , @Rasinj
I reinstalled duplex_tools using python 3.8, run the same command : duplex_tools pairs_from_summary sequencing_summary.txt ./output , but the problem still exists.

[19:03:13 - FindPairs] Duplex tools version: 0.2.7
Traceback (most recent call last):
  File "/export/pipeline/RNASeq/Software/Duplex_tools/bin/duplex_tools", line 8, in <module>
    sys.exit(main())
  File "/export/pipeline/RNASeq/Software/Duplex_tools/lib/python3.8/site-packages/duplex_tools/__init__.py", line 39, in main
    args.func(args)
  File "/export/pipeline/RNASeq/Software/Duplex_tools/lib/python3.8/site-packages/duplex_tools/pairs_from_summary.py", line 336, in main
    find_pairs(
  File "/export/pipeline/RNASeq/Software/Duplex_tools/lib/python3.8/site-packages/duplex_tools/pairs_from_summary.py", line 34, in find_pairs
    outdir, output_pairs, output_intermediate = prepare_output_paths(
  File "/export/pipeline/RNASeq/Software/Duplex_tools/lib/python3.8/site-packages/duplex_tools/pairs_from_summary.py", line 101, in prepare_output_paths
    outdir.mkdir(parents=True, exist_ok=True)
TypeError: mkdir() got an unexpected keyword argument 'exist_ok'

from duplex-tools.

defendant602 avatar defendant602 commented on September 24, 2024

I checked my pathlib package version, it's 1.0.1. Is this version too old for duplex_tools?

but pip automatically installed pathlib 1.0.1 when I install duplex_tools.

Maybe the dependencies to install duplex_tools should be modified a little?

from duplex-tools.

Rasinj avatar Rasinj commented on September 24, 2024

Hi @defendant602, ah I think that must be it. Thanks for noticing. In fact, I believe it should be included by default, so perhaps the most sensible thing is to remove it as an explicit dependency

from duplex-tools.

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.