Thank you, Adam. When running #7 - Set up your Arches Database, I encountered this error. Please see if you may know what the reason is.
Thanks! Viktor *.........* * from django.contrib.gis.gdal.driver import Driver # NOQA File "C:\Projects\ENV\lib\site-packages\django\contrib\gis\gdal\driver.py", line 5, in <module> from django.contrib.gis.gdal.prototypes import ds as vcapi, raster as rcapi File "C:\Projects\ENV\lib\site-packages\django\contrib\gis\gdal\prototypes\ds.py", line 9, in <module> from django.contrib.gis.gdal.libgdal import GDAL_VERSION, lgdal File "C:\Projects\ENV\lib\site-packages\django\contrib\gis\gdal\libgdal.py", line 48, in <module> lgdal = CDLL(lib_path) File "c:\python27\Lib\ctypes\__init__.py", line 362, in __init__ self._handle = _dlopen(self._name, mode)TypeError: LoadLibrary() argument 1 must be string, not unicode* *(ENV) C:\Projects\my_project>* On Monday, May 1, 2017 at 4:22:00 PM UTC-7, Adam Cox wrote: > Ah, that step is actually unnecessary, given that the arches-project > create command worked (I think it got dragged along from the developer > installation steps). Just skip to the setup database step, and you should > be good to go. > > On Mon, May 1, 2017 at 6:09 PM, Viktor_Getty <[email protected] > <javascript:>> wrote: > >> Thank you! I just modified the file 'arches-project' as in your commit, >> and #5. 'Create my_project' ran with no error. But now, when I tried the >> next one >> >> 6. Run the bower installation >> >> Enter your new project directory (cd my_project) and run: >> >> bower install >> >> >> I got this message: >> >> >> (ENV) C:\Projects\my_project>bower install >> bower ENOENT No bower.json present >> >> Thanks again! >> Viktor >> >> >> >> On Monday, May 1, 2017 at 3:44:05 PM UTC-7, Adam Cox wrote: >> >> Hi Viktor. Yes, that command must be run with the virtual environment >>> activated. I should make a note that all arches CLI commands should be run >>> with the virtual environment activated. >>> >>> As for the subprocess error, that was fixed a little while ago with this >>> commit: >>> https://github.com/archesproject/arches/commit/2a71b729d03ac6958241c31f202b39f65b19707a, >>> >>> however it was after the latest publication of Arches to pip. >>> >>> For now, you should just enter your new project folder, and then run bower >>> install to manually accomplish what that the error-throwing command is >>> trying to do. It is the last step in the project creation command, so you >>> should be good to go after that. >>> >>> Adam >>> >>> On Mon, May 1, 2017 at 5:19 PM, Viktor_Getty <[email protected]> wrote: >>> >>>> Adam, thank you much for answering my 'Mapnik' question. I started a >>>> new thread since it is no longer a 'Mapnik' issue. >>>> >>>> I was able to install dependences and did steps 1 - 4 in >>>> https://arches4.readthedocs.io/en/latest/installation/. But I stumbled >>>> on #5 (Create a new Arches project). According to the document, the >>>> command >>>> for Windows is: >>>> >>>> python C:\Projects\ENV\Scripts\arches-project create my_project >>>> >>>> >>>> But when I run it as it is, I get this error: >>>> >>>> >>>> C:\Projects>python C:\Projects\ENV\Scripts\arches-project create my_project >>>> Traceback (most recent call last): >>>> File "C:\Projects\ENV\Scripts\arches-project", line 2, in <module> >>>> import arches >>>> ImportError: No module named arches >>>> >>>> >>>> I suspect this command has to be run from the virtual environment *((ENV) >>>> C:\Projects>python c:\projects\env\scripts\arches-project create >>>> my_project*). >>>> But when I do, I get this error message: >>>> >>>> Traceback (most recent call last): >>>> File "c:\projects\env\scripts\arches-project", line 137, in <module> >>>> main() >>>> File "c:\projects\env\scripts\arches-project", line 131, in main >>>> COMMANDS[args.command](args) >>>> File "c:\projects\env\scripts\arches-project", line 58, in >>>> command_create_app >>>> subprocess.call(bower_install.split(), shell=False) >>>> File "c:\python27\Lib\subprocess.py", line 168, in call >>>> return Popen(*popenargs, **kwargs).wait() >>>> File "c:\python27\Lib\subprocess.py", line 390, in __init__ >>>> errread, errwrite) >>>> File "c:\python27\Lib\subprocess.py", line 640, in _execute_child >>>> startupinfo) >>>> WindowsError: [Error 2] The system cannot find the file specified >>>> (ENV) C:\Projects> >>>> >>>> >>>> Thank you, >>>> Viktor >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> -- To post, send email to [email protected]. To unsubscribe, >>>> send email to [email protected]. For more information, >>>> visit https://groups.google.com/d/forum/archesproject?hl=en >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Arches Project" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> -- To post, send email to [email protected] <javascript:>. To >> unsubscribe, send email to [email protected] <javascript:>. >> For more information, visit >> https://groups.google.com/d/forum/archesproject?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Arches Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
