Giter Site home page Giter Site logo

Comments (13)

jorvis avatar jorvis commented on July 16, 2024

I'm a little confused by that. Your command line shows you invoking Perl to run the script, but then the stack trace is python. I'm assuming that is a mis-paste.

I'm not at a spot at the moment where I can edit and test this. If you open the tbl.py module there and replace each instance of " utils." with " biocode.utils." does this fix the problem?

from biocode.

arsilan324 avatar arsilan324 commented on July 16, 2024

I am sorry it was typo. I should have written python3 instead of perl; (fixed now) in the code above.
The code is here
https://github.com/jorvis/biocode/blob/master/gff/convert_gff3_to_ncbi_tbl.py

Even replacing utils with biocode.utils in the code doesn't work. Instead it says
NameError: name 'biocode' is not defined

from biocode.

jorvis avatar jorvis commented on July 16, 2024

from biocode.

arsilan324 avatar arsilan324 commented on July 16, 2024

I just wrote you email with the dropbox links..

from biocode.

bernt-matthias avatar bernt-matthias commented on July 16, 2024

as a follow up: replacing "utils." with " biocode.utils." does this fix the problem

from biocode.

jorvis avatar jorvis commented on July 16, 2024

Thanks for the report. Corrected in commit 3e095dd

from biocode.

eloguh avatar eloguh commented on July 16, 2024

I have the same problem, i can't resolve it, NameError: name 'biocode' is not defined

from biocode.

jorvis avatar jorvis commented on July 16, 2024

@eloguh Did you happen to see if your script has the changes from the commit linked above? If not, maybe you still have the older script version. There are 4 lines of code that were corrected.

from biocode.

eloguh avatar eloguh commented on July 16, 2024

from biocode.

jorvis avatar jorvis commented on July 16, 2024

If you're not using a GitHub checkout then you should probably replace your tbl file with this one:

https://raw.githubusercontent.com/jorvis/biocode/3e095dd233dcf3353654f3958b6117a6f2d3ea44/lib/biocode/tbl.py

That's a critical part which uses the module name as needed.

from biocode.

eloguh avatar eloguh commented on July 16, 2024

from biocode.

jorvis avatar jorvis commented on July 16, 2024

I'm surprised you're seeing this if you're using an updated version of biocode, as I've made a release since this bugfix was added.

from biocode.

eloguh avatar eloguh commented on July 16, 2024

from biocode.

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.