Giter VIP home page Giter VIP logo

Comments (5)

daleholborow avatar daleholborow commented on July 24, 2024

This is a common problem I've encountered in a product of my own. You'll find similar issues with things called ~com etc, there are several reserved words. My solution was to prefix files with underscore etc

from robintrack.

pp92391 avatar pp92391 commented on July 24, 2024

Hi guys, I'm experiencing the same issue when extracting the data into Python. I'm a beginner in Python.

I download the Robintrack tar.gz file manually via the website. I then try to extract the files using tarfile in Python:
import tarfile
tf = tarfile.open(fname)
tf.extractall()

But I get the error: FileNotFoundError: [Errno 2] No such file or directory: '.\tmp\popularity_export\PRN.csv'

Any solution to overcome this without manually extracting the files out of Python first?

Thanks very much for any help

from robintrack.

pp92391 avatar pp92391 commented on July 24, 2024

Thanks for the reply dalexj - how do I use this write_csv_file script (or all the popularity_history_exporter script in general) to export the tar.gz file? Sorry if this is a basic question.

I have the path name of my tar.gz file - where do I go from there to just extract all that data into Python?

from robintrack.

Ameobea avatar Ameobea commented on July 24, 2024

The changes to prefix file names that are reserved on Windows has been pushed and the current archive available for download shouldn't have any issues on Windows.

@pp92391 you don't need to run the script yourself, it runs automatically and is used to produce the archive available for download on the Robintrack website.

from robintrack.

pp92391 avatar pp92391 commented on July 24, 2024

The changes to prefix file names that are reserved on Windows has been pushed and the current archive available for download shouldn't have any issues on Windows.

@pp92391 you don't need to run the script yourself, it runs automatically and is used to produce the archive available for download on the Robintrack website.

Thank you very much Ameobea, works very well now. Appreciate the help!

from robintrack.

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.