importing ecoinvent 3.2 with brightway
Question: I am having some trouble importing Ecoinvent 3.2 with Brightway2, I was
following the [example
notebook](http://nbviewer.jupyter.org/urls/bitbucket.org/cmutel/brightway2/raw/default/notebooks/IO%20-%20importing%20Ecoinvent.ipynb):

    
    
    from brightway2 import *
    fp = 'D:\LCAdb\e_3.2_cutoff_lci\datasets'
    projects.set_current("myproject")
    bw2setup()
    ei = SingleOutputEcospold2Importer(fp, "ecoinvent 3.2 cutoff")
    

I get a warning message that seems to block the import process

> C:\Users\@@@\Anaconda3\envs\bw3\lib\site-packages\bw2data\project.py:157:
> UserWarning: **_Read only project_**
>
> This project is being used by another process and no writes can be made
> until: 1\. You close the other program, or switch to a different project,
> _and_ 2\. You call `projects.enable_writes` _and_ get the response `True`.
>  
>  
>     If you are **sure** that this warning is incorrect, call
>     `projects.enable_writes(force=True)` to enable writes.
>  
>
> warnings.warn(READ_ONLY_PROJECT)

if I run

    
    
    projects.enable_writes(force=True)
    

I get another a persmission error

> PermissionError Traceback (most recent call last) in () \----> 1
> projects.enable_writes(force=True)
>
> C:\Users\@@@\Anaconda3\envs\bw3\lib\site-packages\bw2data\project.py in
> enable_writes(self, force) 234 """Enable writing for the current project."""
> 235 if force: \--> 236 os.remove(os.path.join(self.dir, "write-lock")) 237
> self.read_only = not self._lock.acquire(timeout = 0.05) 238 if not
> self.read_only:
>
> PermissionError: [WinError 32] El proceso no tiene acceso al archivo porque
> está siendo utilizado por otro proceso:
> 'C:\Users\@@@\AppData\Local\pylca\Brightway3\myproject.4da39212894ad06eb7c95810f8a2a6b0\write-
> lock'

the winerror translated would be something like "the process does not have
access to the file because the file is being used by other process"

I do not have other Brightway environments running at the same time and I have
recently updated Brightway2 so I do not know where the problem may be. Any
ideas?

thanks!

UPDATE1: I have installed brightway2 in a different computer and I have found
the same warning message. Despite the message, the import seems to be correct.
once the database is loaded and written, if I open the project again the
database is still there.

In the previous laptop the process of importing seems to be too much for the
machine (an ASUS S56CB with windows 10 and 6 GB RAM). After 40 min waiting for
the result I usually despair and kill it. I will give a try reinstalling
python...


Answer: I have run into this in the past, surely because of the reasons @Chris evoked.

You can use `projects.read_only = False` to force-write data. Please make sure
that this is really what you want to do. You will _not_ want to do this, for
example, if you are accessing the same project through two different kernels
that may try to write data at the same time.

