Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: Can't get attribute 'work' on <module '__mp_main__' and yaml config file failed installation #16

Open
JPPereira93 opened this issue Nov 12, 2024 · 0 comments

Comments

@JPPereira93
Copy link

Hello!

When im trying to run rasterize.py script im getting this:

python "C:\Users\fuji_\Desktop\WFS_CTAPP\Tree_Segmentation\TreeCrownDelineation\scripts\rasterize.py" -i "D:\World_From_Space\CTAPP\Internal_outputs\Tree_segmentation\Hradec_Kralove\Folder_Structure\data\tiles\Hradec_Kralove_orthoimagery_merged_5514_part_3.tif" -o "D:\World_From_Space\CTAPP\Internal_outputs\Tree_segmentation\Hradec_Kralove\Folder_Structure\data\mask\mask_" -shp "D:\World_From_Space\CTAPP\Internal_outputs\Tree_segmentation\Hradec_Kralove\Training_Samples\sample_segments_hrka_5514_tile_3.geojson"

Im getting:

Process SpawnPoolWorker-1:
Traceback (most recent call last):
File "C:\Users\fuji_\anaconda3\envs\ctapp\Lib\multiprocessing\process.py", line 314, in bootstrap
self.run()
File "C:\Users\fuji
\anaconda3\envs\ctapp\Lib\multiprocessing\process.py", line 108, in run
self._target(*self.args, **self.kwargs)
File "C:\Users\fuji
\anaconda3\envs\ctapp\Lib\multiprocessing\pool.py", line 114, in worker
task = get()
^^^^^
File "C:\Users\fuji
\anaconda3\envs\ctapp\Lib\multiprocessing\queues.py", line 367, in get
return ForkingPickler.loads(res)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: Can't get attribute 'work' on <module 'mp_main' from 'C:\Users\fuji
\Desktop\WFS_CTAPP\Tree_Segmentation\TreeCrownDelineation\scripts\rasterize.py'>

Os System: Windows 11

Also I couldnt install yaml config file:

(ctapp) C:\Users\fuji_\Desktop\WFS_CTAPP>conda env create -f https://raw.githubusercontent.com/AWF-GAUG/TreeCrownDelineation/master/environment.yml -n tree_crown_env
Channels:

  • pytorch
  • conda-forge
  • defaults
    Platform: win-64
    Collecting package metadata (repodata.json): done
    Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • zstd==1.4.9=haebb681_0
  • zlib==1.2.11=h7f8727e_4
  • zfp==0.5.5=h2531618_6
  • zeromq==4.3.4=h2531618_0
  • yaml==0.2.5=h7b6447c_0
  • xz==5.2.5=h7b6447c_0
  • xerces-c==3.2.3=h780794e_0
  • tornado==6.1=py38h27cfd23_0
  • tk==8.6.11=h1ccaba5_0
  • tiledb==2.2.9=hffe1d7a_0
  • sqlite==3.36.0=hc218d9a_0
  • snappy==1.1.8=he6710b0_0
  • sip==4.19.13=py38he6710b0_0
  • shapely==1.7.1=py38h98ec03d_0
  • setuptools==58.0.4=py38h06a4308_0
  • scipy==1.7.1=py38h292c36d_2
  • scikit-image==0.18.1=py38ha9443f7_0
  • readline==8.1=h27cfd23_0
  • rasterio==1.1.2=py38h900e953_0
  • qt==5.9.7=h5867ecd_1
  • pyzmq==22.3.0=py38h295c915_2
  • pyyaml==6.0=py38h7f8727e_1
  • pywavelets==1.1.1=py38h7b6447c_2
  • pytorch==1.10.1=py3.8_cuda11.3_cudnn8.2.0_0
  • python==3.8.12=h12debd9_0
  • pyqt==5.9.2=py38h05f1152_4
  • pymongo==3.12.0=py38h295c915_0
  • psutil==5.8.0=py38h27cfd23_1
  • proj==6.2.1=haa6030c_0
  • postgresql==12.9=hc2c5182_1
  • poppler-data==0.4.10=h06a4308_0
  • poppler==0.81.0=h01f5e8b_2
  • pixman==0.40.0=h7f8727e_1
  • pip==21.2.4=py38h06a4308_0
  • pillow==8.4.0=py38h5aabda8_0
  • pcre==8.45=h295c915_0
  • pandas==1.3.4=py38h8c16a72_0
  • openssl==1.1.1l=h7f8727e_0
  • openjpeg==2.4.0=h3ad879b_0
  • openh264==2.1.1=h4ff587b_0
  • numpy-base==1.21.2=py38h79a1101_0
  • numpy==1.21.2=py38h20f2e39_0
  • numexpr==2.7.3=py38h22e1b3c_1
  • nettle==3.7.3=hbbd107a_1
  • ncurses==6.3=h7f8727e_2
  • mkl_random==1.2.2=py38h51133e4_0
  • mkl_fft==1.3.1=py38hd3c417c_0
  • mkl-service==2.4.0=py38h7f8727e_0
  • mkl==2021.4.0=h06a4308_640
  • matplotlib-base==3.5.0=py38h3ed280b_0
  • lz4-c==1.9.3=h295c915_1
  • locket==0.2.1=py38h06a4308_1
  • libzopfli==1.0.3=he6710b0_0
  • libxml2==2.9.12=h03d6c58_0
  • libxcb==1.14=h7b6447c_0
  • libwebp-base==1.2.0=h27cfd23_0
  • libwebp==1.2.0=h89dd481_0
  • libuv==1.40.0=h7b6447c_0
  • libuuid==1.0.3=h7f8727e_2
  • libunistring==0.9.10=h27cfd23_0
  • libtiff==4.2.0=h85742a9_0
  • libtasn1==4.16.0=h27cfd23_0
  • libstdcxx-ng==9.3.0=hd4cf53a_17
  • libssh2==1.9.0=h1ba5d50_1
  • libspatialite==4.3.0a=h793db0d_0
  • libsodium==1.0.18=h7b6447c_0
  • libpq==12.9=hc2c5182_1
  • libpng==1.6.37=hbc83047_0
  • libnghttp2==1.46.0=hce63b2e_0
  • libnetcdf==4.6.1=h2053bdc_4
  • libkml==1.3.0=h7ecb851_5
  • libidn2==2.3.2=h7f8727e_0
  • libiconv==1.15=h63c8f33_5
  • libgomp==9.3.0=h5101ec6_17
  • libgfortran4==7.5.0=ha8ba4b0_17
  • libgfortran-ng==7.5.0=ha8ba4b0_17
  • libgdal==3.0.2=h7c14f60_1
  • libgcc-ng==9.3.0=h5101ec6_17
  • libffi==3.3=he6710b0_2
  • libev==4.33=h7f8727e_1
  • libedit==3.1.20210910=h7f8727e_0
  • libdeflate==1.8=h7f8727e_5
  • libdap4==3.19.1=h6ec2957_0
  • libcurl==7.80.0=h0b77cf5_0
  • libboost==1.73.0=h3ff78a5_11
  • libaec==1.0.4=he6710b0_1
  • lerc==3.0=h295c915_0
  • ld_impl_linux-64==2.35.1=h7274673_9
  • lcms2==2.12=h3be6417_0
  • lame==3.100=h7b6447c_0
  • krb5==1.19.2=hac12032_0
  • kiwisolver==1.3.1=py38h2531618_0
  • kealib==1.4.14=hb50703a_1
  • jxrlib==1.1=h7b6447c_2
  • jupyter_core==4.9.1=py38h06a4308_0
  • json-c==0.13.1=h1bed415_0
  • jpeg==9d=h7f8727e_0
  • jedi==0.18.0=py38h06a4308_1
  • ipython==7.25.0=py38hd0cf306_1
  • intel-openmp==2021.4.0=h06a4308_3561
  • imagecodecs==2021.8.26=py38h4cda21f_0
  • icu==58.2=he6710b0_3
  • hdf5==1.10.6=hb1b8bf9_0
  • hdf4==4.2.13=h3ca952b_2
  • gstreamer==1.14.0=h28cd5cc_2
  • gst-plugins-base==1.14.0=h8213a91_2
  • gnutls==3.6.15=he1e5248_0
  • gmp==6.2.1=h2531618_2
  • glib==2.69.1=h5202010_0
  • giflib==5.2.1=h7b6447c_0
  • geotiff==1.6.0=h21e8280_0
  • geos==3.8.0=he6710b0_0
  • gdal==3.0.2=py38h4694593_1
  • freexl==1.0.6=h27cfd23_0
  • freetype==2.11.0=h70c0345_0
  • fontconfig==2.13.1=h6c09931_0
  • fiona==1.8.13.post1=py38hc820daa_0
  • ffmpeg==4.3=hf484d3e_0
  • expat==2.4.1=h2531618_2
  • dbus==1.13.18=hb2f20db_0
  • cytoolz==0.11.0=py38h7b6447c_0
  • curl==7.80.0=h7f8727e_0
  • cudatoolkit==11.3.1=h2bc3f7f_2
  • cligj==0.7.2=py38h06a4308_0
  • charls==2.2.0=h2531618_0
  • cfitsio==3.470=hf0d0db6_6
  • certifi==2021.10.8=py38h06a4308_0
  • cairo==1.16.0=hf32fb01_1
  • ca-certificates==2021.10.26=h06a4308_2
  • c-ares==1.17.1=h27cfd23_0
  • bzip2==1.0.8=h7b6447c_0
  • brunsli==0.1=h2531618_0
  • brotli==1.0.9=he6710b0_2
  • bottleneck==1.3.2=py38heb32a55_1
  • blosc==1.21.0=h8c45485_0
  • aws-sdk-cpp==1.8.185=hce553d0_0
  • aws-checksums==0.1.9=he6710b0_0
  • aws-c-event-stream==0.1.6=h2531618_5
  • aws-c-common==0.4.57=he6710b0_1
  • _openmp_mutex==4.5=1_gnu

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant