Giter Club home page Giter Club logo

Comments (8)

grantbevis avatar grantbevis commented on June 19, 2024 1

Solved it, I deleted my cache file and it's on it's merry way! cheers guys!

from redbetter-crawler.

grantbevis avatar grantbevis commented on June 19, 2024

I managed to solve this part:

  File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'redacted'

by renaming the top section in my config file ;)

from redbetter-crawler.

taylorthurlow avatar taylorthurlow commented on June 19, 2024

Sorry about that! I made a bunch of sweeping name changes last night, and didn't think about the config section header name changing. Glad you got it sorted.

from redbetter-crawler.

grantbevis avatar grantbevis commented on June 19, 2024

I still have the top issue referring to namespace unfortunately, now I get logged into the site and it searches for the first item to process and the it exits with pretty much the same error as above.

from redbetter-crawler.

taylorthurlow avatar taylorthurlow commented on June 19, 2024

Can you post the stack trace as it is now?

from redbetter-crawler.

grantbevis avatar grantbevis commented on June 19, 2024

Apologies, it would have been useful if I had commented with that before!

~ # redactedbetter 
Logging in to PTH...
Searching for transcode candidates...

Release found: <snip>
Release URL: <snip>
Formats needed: 
Traceback (most recent call last):
  File "/usr/bin/redactedbetter", line 4, in <module>
    __import__('pkg_resources').run_script('redactedbetter==1.3', 'redactedbetter')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 739, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1501, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/redactedbetter-1.3-py2.7.egg/EGG-INFO/scripts/redactedbetter", line 231, in <module>
    
  File "/usr/lib/python2.7/site-packages/redactedbetter-1.3-py2.7.egg/EGG-INFO/scripts/redactedbetter", line 227, in main
    
AttributeError: 'str' object has no attribute 'add'
~ # 

Edit: Also just to rule it out I created a Debian container with all the dependancies and I get the same error;

Traceback (most recent call last):
  File "/usr/local/bin/redactedbetter", line 4, in <module>
    __import__('pkg_resources').run_script('redactedbetter==1.3', 'redactedbetter')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 739, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1501, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/redactedbetter-1.3-py2.7.egg/EGG-INFO/scripts/redactedbetter", line 231, in <module>
    
  File "/usr/local/lib/python2.7/dist-packages/redactedbetter-1.3-py2.7.egg/EGG-INFO/scripts/redactedbetter", line 227, in main
    
AttributeError: 'str' object has no attribute 'add'

I wanted to ensure that it wasn't something strange with using Alpine linux which it appears not to be the case.

Edit 2: back using alpine if I pull the previous commit before the name changes it's working so must be something with the name change mate, I'll continue testing and if I fix it I'll submit a PR.

from redbetter-crawler.

taylorthurlow avatar taylorthurlow commented on June 19, 2024

Phew, I'm glad I didn't break anything serious. Interesting, though - does your docker image have a default cache file it uses? I'd assume that it's generated the first time you run the script.

from redbetter-crawler.

grantbevis avatar grantbevis commented on June 19, 2024

I mount the cache file from the host to inside the container, same for config :) once I've finished my testing and I'm happy I'll up the code to my GitHub and I'll put a PR in here for the readme of how to use the image with docker.

from redbetter-crawler.

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.