How to add a URL for an image attribute type? / Akeneo 2.* - akeneo

How to add a URL for an image attribute type ?
The import process of Akeneo looks for a folder files/ at the level of the execution of the import. How to change this by searching through the URL put in the product file?
My akeneo error:
Property "img_1" expects a valid pathname as data,
"data/import/http://mywebsite.de/Documents/PHOTO/DMIM_BD.jpg"
given.)
My order to run the import product:
bin/console akeneo:batch:job csv_product_import -c "{\"filePath\": \"/custom/path/to/product.xlsx\"}" --env=prod

Related

Image Extractor by AI Habitat produces a configuration error when importing Matterport dataset

I need help understanding the error message, which is along the lines of changing the file name to json because the configuration fails. I have a long error message but pasted the part that is mostly repeated throughout the message:
/Users/kyra/Documents/GitHub/habitat-sim/matterport/scans/house1/8194nk5LbLH 13/poisson_meshes/8194nk5LbLH_10.stage_config.json
I0412 19:04:17.735939 42397184 AttributesManagerBase.h:296] AttributesManager::createFromJsonOrDefaultInternal (Stage) : Proposing JSON name : /Users/kyra/Documents/GitHub/habitat-sim/matterport/scans/house1/8194nk5LbLH 13/poisson_meshes/8194nk5LbLH_10.stage_config.json from original name : /Users/kyra/Documents/GitHub/habitat-sim/matterport/scans/house1/8194nk5LbLH 13/poisson_meshes/8194nk5LbLH_10.ply | This file does not exist.
I0412 19:04:17.736085 42397184 AbstractObjectAttributesManagerBase.h:182] AbstractObjectAttributesManager::createObject (Stage) : Done making attributes with handle : /Users/kyra/Documents/GitHub/habitat-sim/matterport/scans/house1/8194nk5LbLH 13/poisson_meshes/8194nk5LbLH_10.ply
I0412 19:04:17.736093 42397184 AbstractObjectAttributesManagerBase.h:189] File (/Users/kyra/Documents/GitHub/habitat-sim/matterport/scans/house1/8194nk5LbLH 13/poisson_meshes/8194nk5LbLH_10.ply) exists but is not a recognized config filename extension, so new default Stage attributes created and registered.
I0412 19:04:17.736124 42397184 SceneDatasetAttributes.cpp:46]
What I did: Ran image extractor after activating Conda env. I modified the image extractor to change the file path to point to a .ply file in the matterport dataset.
Setup: 1)Facebook's AI Habitat-sim built from source,
2)MacBook Air M1,
3)Conda environment with the dependencies (using pip install -r requirements.txt) but habitat-sim is not installed by Conda,
4)Matterport3D dataset (downloaded one house).
Thank you.

Error: "Dashboard" is not a valid value for --theme

I have attempted a few times to create my own bake theme following the tutorial here:
https://book.cakephp.org/bake/1/en/development.html#creating-a-bake-theme
When I attempt to run my theme, called Dashboard, I get these:
Error: "Dashboard" is not a valid value for --theme. Please use one of "Bake, Migrations, WyriHaximus/TwigView"
Error: "DashboardTheme" is not a valid value for --theme. Please use one of "Bake, Migrations, WyriHaximus/TwigView"
I attempted the following commands:
cake bake all --theme Dashboard clients
cake bake all --theme DashboardTheme clients
My file structure:
The plugin wasn't loaded, missing statement in bootstrap().

Symfony3 and Sonata-adminBundle:dev-master Admin route is not automatically generated

I'm using symfony3 and sonata-project/admin-bundle:dev-master. my problem is that when I generate an Admin class by the command line: sonata:admin:generate, now when I try to access the admin dashboard in order to see my admin class...I get the following error: An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "admin_pa_pacomplaint_create" as such route does not exist.") in SonataAdminBundle:Block:block_admin_list.html.twig at line 39.
Edit: Event bin/console debug:router does not show the route of the newly created admin class
Sorry for my question where so easy: I just needed to update the app/config/routing.yml file with the following:
_sonata_admin:
resource: .
type: sonata_admin
prefix: /admin

ODK briefcase command-line form export

I am trying to automaticly backup forms submited to transform them to CSV.
I am using this commandline:
java -jar ./ODK_Briefcase_v1.4.5_Production.jar --form_id NameOfTheForm
--odk_username USER --odk_password PASSWORD
--export_directory /var/www/data --storage_directory /var/www/data
--export_filename A_Chaufferie.csv --overwrite_csv_export
--export_start_date 2014/02/05 --export_end_date 2016/02/06
I get the error GRAVE: Form not found
I have no idea what is the purpose of storage_directory. I can't find any forms submissions on mys server (tryed with the linux command find).
Do you know what I am missing?
i have this --help:
java -jar briefcase.jar
-ed,--export_directory </path/to/dir> Directory to export the CSV and
media files into (relative path
unless it begins with / or C:\)
-em,--exclude_media_export Flag to exclude media on export
-end,--export_end_date <yyyy/MM/dd> Include submission dates before
(exclusive) this date in export
to CSV
-f,--export_filename <name.csv> File name for exported CSV
-h,--help Print help information (this
screen)
-id,--form_id <form_id> Form ID of form to download and
export
-oc,--overwrite_csv_export Flag to overwrite CSV on export
-od,--odk_directory </path/to/dir> /odk directory from ODK Collect
(relative path unless it begins
with / or C:\)
-p,--odk_password <password> ODK password
-pf,--pem_file </path/to/file.pem> PEM private key file (relative
path unless it begins with / or
C:\)
-sd,--storage_directory </path/to/dir> Directory to create or find ODK
Briefcase Storage directory
(relative path unless it begins
with / or C:\)
-start,--export_start_date <yyyy/MM/dd> Include submission dates after
(inclusive) this date in export
to CSV
-u,--odk_username <username> ODK username
-url,--aggregate_url <url> ODK Aggregate URL (must start
with http:// or https://)
-v,--version Print version information
I didn't know i had to put --aggregate_url even if the brieface and ODK aggregate are in the same server. Don't miss the http:// or it won't work
java -jar ./ODK_Briefcase_v1.4.5_Production.jar --form_id NameOfTheForm
--odk_username USER --odk_password PASSWORD
--export_directory /var/www/data --storage_directory /var/www/briefcase
--export_filename A_Chaufferie.csv --overwrite_csv_export
--export_start_date 2014/02/05 --export_end_date 2016/02/06
--aggregate_url http://your.odk-aggregate.site

Google App Engine and ttf font not working

I've got a small problem where google app engine is complaining about my ttf file. This is what it says:
Could not guess mimetype for css/fonts/Pacifico.ttf. Using application/octet-stream.
Now I've followed this link and changed my yaml file appropriately (or so I think):
- url: /css/fonts/(.*\.ttf)
static_files: css/fonts/\1
upload: css/fonts/(.*\.ttf)
mime_type: application/x-font-ttf
But when I do this i get the following:
appcfg.py: error: Error parsing C:\Users\Roberto\Desktop\bootstrap\app.yaml: mapping values are not allowed here
in "C:\Users\Roberto\Desktop\bootstrap\app.yaml", line 25, column 17.
2014-01-16 23:22:16 (Process exited with code 2)
Any help in this matter?
I have done a test with glyphicons-halflings-regular.ttf from the Bootstrap project with the same app.yaml handler that you use (save for the indentation change as per the comments) and can verify that it works as expected:
This leads me to believe that you may using an older version of the GAE SDK (I use 1.8.8) or something else is wrong with your installation.
You can try this: appcfg.py uses python's mimetypes module to guess the type from the file extension so in any case, you should be able to solve the issue by adding the application/x-font-ttf mime type to your OS.
You're on Windows so you need to edit your registry and add a application/x-font-ttf key to HKEY_CLASSES_ROOT\MIME\Database\Content Type and add a string value called Extension with the value .ttf under the new key.
Extended procedure for adding the mimetype to Windows
Open the registry editor: Hit Winkey + R and type regedit, hit Enter
Navigate through the registry to the desired location: open HKEY_CLASSES_ROOT, inside it open MIME, inside that open Database and inside that open Content Type. It's like a folder structure.
Right click on Content Type and select New > Key, give it the name application/x-font-ttf.
Right click on the key you just created and select New > String Value. give it the name Extension.
Double click on the value you just created and assign it the Value data .ttf, hit OK.
Exit regedit and you're done!
Final none: I don't think it can be anything to do with the file itself, because the mimetypes module uses only the file extension to work out the MIME type. Unless there is some crazy unprintable character in the filename. You could try using the glyphicons-halflings-regular font I linked to to eliminate this possibility.

Resources