Skip to content

Instantly share code, notes, and snippets.

@MartGro
Created September 13, 2022 15:13
Show Gist options
  • Save MartGro/c0541946bb751609eed9c0b81621db2c to your computer and use it in GitHub Desktop.
Save MartGro/c0541946bb751609eed9c0b81621db2c to your computer and use it in GitHub Desktop.
name: py8
channels:
- conda-forge
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- boost-cpp=1.70.0=ha2d47e9_1
- bzip2=1.0.8=h7f98852_4
- c-ares=1.18.1=h7f98852_0
- ca-certificates=2022.6.15.1=ha878542_0
- cairo=1.16.0=h19f5f5c_2
- certifi=2022.6.15.1=pyhd8ed1ab_0
- cfitsio=3.470=hb418390_7
- curl=7.84.0=h5eee18b_0
- expat=2.4.8=h27087fc_0
- fontconfig=2.13.1=h6c09931_0
- freetype=2.10.4=h0708190_1
- freexl=1.0.6=h7f98852_0
- gdal=3.4.1=py38h2c27f0e_0
- geos=3.8.0=he6710b0_0
- geotiff=1.7.0=hd69d5b1_0
- giflib=5.2.1=h36c2ea0_2
- glib=2.69.1=h4ff587b_1
- hdf4=4.2.13=h3ca952b_2
- hdf5=1.10.6=nompi_h6a2412b_1114
- icu=58.2=hf484d3e_1000
- jpeg=9e=h166bdaf_1
- json-c=0.13.1=hbfbb72e_1002
- kealib=1.4.14=hb50703a_1
- keyutils=1.6.1=h166bdaf_0
- krb5=1.19.3=h3790be6_0
- ld_impl_linux-64=2.38=h1181459_1
- libblas=3.9.0=15_linux64_openblas
- libcblas=3.9.0=15_linux64_openblas
- libcurl=7.84.0=h91b91d3_0
- libdap4=3.19.1=h6ec2957_0
- libedit=3.1.20191231=he28a2e2_2
- libev=4.33=h516909a_1
- libffi=3.3=he6710b0_2
- libgcc-ng=11.2.0=h1234567_1
- libgdal=3.4.1=h05199a0_1
- libgfortran-ng=12.1.0=h69a702a_16
- libgfortran5=12.1.0=hdcd56e2_16
- libgomp=11.2.0=h1234567_1
- libkml=1.3.0=h4fcabce_1010
- liblapack=3.9.0=15_linux64_openblas
- libnetcdf=4.8.1=h42ceab0_1
- libnghttp2=1.46.0=hce63b2e_0
- libopenblas=0.3.20=pthreads_h78a6416_0
- libpng=1.6.37=h21135ba_2
- libpq=12.9=h16c4e8d_3
- libspatialite=4.3.0a=hbedb2dc_20
- libssh2=1.10.0=ha56f1ee_2
- libstdcxx-ng=11.2.0=h1234567_1
- libtiff=4.2.0=h2818925_1
- libuuid=1.0.3=h7f8727e_2
- libwebp-base=1.2.2=h7f8727e_0
- libxcb=1.15=h7f8727e_0
- libxml2=2.9.14=h74e7548_0
- libzip=1.8.0=h5cef20c_0
- lz4-c=1.9.3=h9c3ff4c_1
- ncurses=6.3=h5eee18b_3
- numpy=1.22.3=py38h99721a1_2
- openjpeg=2.3.1=hf7af979_3
- openssl=1.1.1q=h7f8727e_0
- pcre=8.45=h9c3ff4c_0
- pip=22.1.2=py38h06a4308_0
- pixman=0.40.0=h36c2ea0_0
- poppler=0.89.0=h669c267_1
- poppler-data=0.4.11=hd8ed1ab_0
- proj=6.2.1=hc80f0dc_0
- python=3.8.13=h12debd9_0
- python_abi=3.8=2_cp38
- readline=8.1.2=h7f8727e_1
- setuptools=63.4.1=py38h06a4308_0
- sqlite=3.39.2=h5082296_0
- tiledb=2.3.3=h1132f93_2
- tk=8.6.12=h1ccaba5_0
- wheel=0.37.1=pyhd3eb1b0_0
- xerces-c=3.2.3=h780794e_0
- xz=5.2.5=h7f8727e_1
- zlib=1.2.12=h5eee18b_3
- zstd=1.5.2=ha4553b6_0
- pip:
- absl-py==1.2.0
- affine==2.3.1
- attrs==22.1.0
- click==8.1.3
- click-plugins==1.1.1
- cligj==0.7.2
- cssselect2==0.6.0
- dill==0.3.5.1
- ezdxf==0.18.1
- freetype-py==2.3.0
- hsluv==5.0.3
- lxml==4.9.1
- ortools==9.4.1874
- pillow==9.2.0
- protobuf==4.21.5
- pyopengl==3.1.6
- pyqt5==5.15.7
- pyqt5-qt5==5.15.2
- pyqt5-sip==12.11.0
- pyserial==3.5
- pyyaml==6.0
- qrcode==7.3.1
- rasterio==1.3.2
- reportlab==3.6.11
- rtree==1.0.0
- shapely==1.8.4
- simplejson==3.17.6
- six==1.16.0
- snuggs==1.4.7
- svg-path==6.2
- svglib==1.4.1
- tinycss2==1.1.1
- typing-extensions==4.3.0
- vispy==0.6.6
- webencodings==0.5.1
prefix: /home/martin/miniconda3/envs/py8
1) Download FlatCAM_beta_8.994_sources
2) Python 3.8
3) Manually install gdal from conda
4) Bug fixes:
- Vector bug fix
https://bitbucket.org/jpcgt/flatcam/issues/477/no-module-named-ezdxfmathvector-in-v8994
##########################
I think that a simple way to fix this, keeping the backward compatibility with the older versions of ezdxf, is to change the line 10 of the file appParsers/ParseDXF.py from
from ezdxf.math.vector import Vector as ezdxf_vector
to
try:
from ezdxf.math.vector import Vector as ezdxf_vector
except ImportError:
from ezdxf.math import Vec3 as ezdxf_vector
########################
-- visuals markers bugfix:
https://gist.github.com/natevw/3e6fc929aff358b38c0a
########
pip install vispy==0.6.6
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment