I'm trying to link to the Scrapy documentation using intersphinx, but it does not appear to work.
I have the entry:
'scrapy': ('https://docs.scrapy.org/en/latest/index.html', None)
in my intersphinx_mapping, but I get an error when building my docs saying:
intersphinx inventory 'https://docs.scrapy.org/en/latest/index.html/objects.inv' not fetchable due to <class 'requests.exceptions.HTTPError'>: 404 Client Error: Not Found for url: https://docs.scrapy.org/en/latest/index.html/objects.inv
Obviously this is not the correct link to use (or there isn't one).
I find it strange, because I also have w3lib in my intersphinx_mapping. w3lib is a scrapy subproject and it works just fine. So, I find it strange that intersphinx is possible with a subproject of scrapy, but not with the main project itself.
Related
In Scrapy, I was trying to incorporate the ImagesPipeline and run it, but it took me a while to notice the spelling mistakes in the settings. (It expects "IMAGES_STORE" but I typed to "IMAEGS_STORE"). I found that the ImagesPipeline was not loaded in the debug log, but the cause was not immediately understood. It is mysterious why it will not cause an error when running Scrapy.
It did not throw error because you can put your custom settings in settings.py of your choice.
So Scrapy thought that IMAEGS_STORE was some your custom variable and that maybe used somewhere.
You can put Keisuke_URAGO=123 in settings.py and scrapy will not throw error. This is what settings.py is meant to be.
There are a lot of questions about "phpunit/phpunit_story" module, and here is another one:
We're using Yii with Codeception, which contains PHPUnit, but missing the PHPUnit_Extensions_Story_TestCase.php module. We're also not using pear or composer. Everytime I'm running /utests I'm getting following warning:
PHP Warning: include(PHPUnit_Extensions_Story_TestCase.php): failed to open stream: No such file or directory in /*/framework/YiiBase.php on line 421
There are a lot of answers about how to fix this problem with pear or composer, but is there any other way to deal with this warning?
This usually happens when your autoloader is too eager, ie. when it tries to load sourcecode files for classes it is not responsible for.
I'm trying to use ogr2ogr to filter a shapefile. I'm working through Mike Bostock's Let's Make a Map tutorial. A bit of googling - including here - hasn't led to any solutions yet. I'm also VERY new to topojson (and shapefiles in general; my background is in economics/statistical software like Stata), so I'm not sure what I'm doing and where things are going wrong. Either way - here's the error result I'm getting:
dyld: Library not loaded: /usr/local/lib/liblwgeom-2.1.1.dylib
Referenced from: /usr/local/Cellar/libspatialite/4.1.1/lib/libspatialite.5.dylib
Reason: image not found
Trace/BPT trap: 5
No idea what liblwgeom-2.1.1.dylib is, what it does, where I get it, etc. Google hasn't helped much on defining it either.
FWIW, I'm on a Mac, I brew installed npm and gdal, and then npm installed topojson.
Thanks,
a
Edited to add: I just brew reinstalled gdal, because I remembered getting a warning (Caveats). See below:
==> Caveats
For non-homebrew python (2.x), you need to amend your PYTHONPATH like so:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
This version of GDAL was built with Python support. In addition to providing
modules that makes GDAL functions available to Python scripts, the Python
binding provides additional command line tools.
I actually tried to run export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH literally as-is, and it returned nothing. (Not sure if something happened in the background?) Basically fumbling in the dark!
I'm trying out casperJS to run some automated tests. On windows. I followed this installation guide but am stuck.
when I try to run a simple test from the command line like this:
casperjs.bat smoketest.js
I get the following error:
Error: Cannot find module 'C:/code/base/main/Shared/casperjs\modules\cli.js'
I checked, and the file cli.js does exist under the specified path.
I thought the problem could be the mixture of forward and backward slashes in the path, but I edited the bootstrap.js casper code to hard code the path and it made no difference - it still the cannot find module.
I'm have tried this using phantomJS version 1.9.0, and 1.8.2.
Anyone know what I am doing wrong?
Has anyone had success running casper on Windows?
This is due to a bug in PhantomJS 1.9.0 that does not allow for absolute path loading in Windows. Afaik, this should only be apparent if you are using a master build of CasperJS (v1.1).
This bug has been fixed, but is not yet in the Windows binary. You can compile it yourself if you'd like, but that can take quite a bit of time.
I was using the master build of casper. With the latest released version, 1.0.2, it works fine.
I have software that first loads a .dylib lets call libFirst.dylib using the following command:
void* handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL);
Later on inside a function from the loaded libFirst.dylib I attempt to load another .dylib using the same command but for libSecond.dylib, the loading of this shared library gives me the following warnings in my Xcode console:
error warning: Ignored unknown object module at 0x129310 with type 0x8a8399
dlerror: dlopen(/path/libSecond.dylib, 9): Library not loaded: libFirst.dylib
Referenced from: /path/libSecond.dylib
Reason: image not found
What I don't get is that its says libFirst.dylib is not loaded but I am currently inside a function from libFirst.dylib, so how can this be?
All my paths in DYLD_LIBRARY_PATH appear correct too.
Thanks in advance, I have been stuck on this for days.
I ended up using -install_name to change the install name of all my libraries to #rpath/dylibName.dylib and then in Xcode I set the Runpath Search paths using #loader_path to find all my .dylibs that I was using.
use:
install_name_tool -id #executable_path/../Frameworks/mylib.dylib mylib.dylib
then check it with:
otool -D mylib.dylib
I think an easier way to get around this error would be to revert to an earlier version where you were not getting this error. Right click on the project folder and navigate to local history to revert to an earlier version. I verified this to be working on the android studio installed on Mac OS Big sur.